Commit Graph

6128 Commits

Author SHA1 Message Date
Benoit Jacob
59a3487ccc Bug 813783 - don't create a global context at all #ifdef ANDROID, including B2G - r=cjones 2012-11-20 21:45:13 -05:00
Jonathan Watt
3d7cc44fd1 Bug 802440 - Some elements are invalidated when other elements are scrolled off the screen. r=roc. 2012-11-21 02:23:57 +00:00
Justin Lebar
b37e42c834 Bug 812957 - Follow-up: Replace void\n* with void*\n. r=oops DONTBUILD 2012-11-19 23:14:14 -05:00
Nicholas Nethercote
671d8d20c1 Bug 812957 - Add memory reporter for Freetype. r=karlt,jlebar 2012-11-19 22:00:19 -05:00
Ehsan Akhgari
f111e7c0fb Merge mozilla-central into mozilla-inbound 2012-11-19 17:07:53 -05:00
Chris Jones
0263e5a9c4 Bug 804852: Support for the hwc implementation of Composer2D. r=mattwoodrow,mwu,roc sr=roc
This is a rollup of the following patches

part 0: Add a dynamic cast to ColorLayer*

part 1: Add a Composer2D interface to enable implementations to more efficiently compose layer trees

part 2: Let widgets expose Composer2Ds, if they have them

part 3: Expose a layers ogl "friend" API that Composer2D will consume

part 4: Hook Composer2D into the LayerManagerOGL rendering pipeline

part 5: Implement all the goop to let widget/gonk use a Composer2D (HwcComposer2D)
2012-11-19 09:58:38 -08:00
Ed Morley
56142d1801 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-11-19 15:35:06 +00:00
Jonathan Kew
28b9f823ec bug 811312 - part 2 - fold CGFontEntry subclass into MacOSFontEntry. r=jdaggett 2012-11-19 10:22:10 +00:00
Jonathan Kew
3a52dd6d41 bug 811312 - part 1 - remove the ATSFontEntry class (not needed on 10.6 and later). r=jdaggett 2012-11-19 10:01:43 +00:00
Jonathan Kew
031ec941d4 bug 801410 - update harfbuzz to release 0.9.6 plus recent commits (to upstream 977f1740..c2ec7c74). r=jdaggett,joe 2012-11-19 09:35:39 +00:00
Nicolas Silva
499651a424 b=811115 - remove MOZ_EGL_XRENDER_COMPOSITE dead code. r=jgilbert 2012-11-18 16:47:57 +01:00
Nicolas Silva
e4f96fc0f6 Bug 806428 - Do not abort when a ThebesLayer's size changes when previous size was (0,0). r=BenWa 2012-11-15 07:23:13 +01:00
Jeff Muizelaar
cf282fc37b Bug 813071. Remove unncessary AOSP License block. r=gerv
This code is the same as the public domain code at
"Bit Twiddling Hacks"

--HG--
extra : rebase_source : 813c7bec84250227bee13a51e2f2ca23c628055b
2012-11-19 13:27:41 -05:00
Ryan VanderMeulen
6d8db1611a Backed out changeset 224fe2a12a04 (bug 779029) for Windows reftest failures. 2012-11-15 21:34:14 -05:00
Yury
fc06b33fb9 Bug 812039 - mozIsPointInPath leaks CGPath objects. r=jmuizelaar 2012-11-15 20:34:57 -05:00
Jonathan Kew
94659d64b3 bug 811382 - update OTS library to r.95. r=jdaggett 2012-11-15 17:04:57 -08:00
Bas Schouten
3dfe9e7a7b Bug 779029: Try to respect EXTEND_NONE when masking. r=jrmuizel 2012-11-16 00:30:08 +00:00
Daniel Holbert
dc4c4f689d (no bug) fix typo in header comment for AsyncPanZoomController::CalculateIntrinsicScale(). DONTBUILD (comment-only) 2012-11-15 09:16:03 -08:00
Jeff Muizelaar
7b6c5f3e23 Bug 811919. Include the pattern transform when painting patterns in DrawTargetCG. r=benwa
This fixes a lot of azure content bugs.

--HG--
extra : rebase_source : be84084aa7753862920ddd7b04fbfb0bd0b54ded
2012-11-14 16:52:02 -08:00
Bas Schouten
da71daaa87 Bug 811850: Fix gfx 2d recording to be 64-bit neutral. r=jrmuizel 2012-11-14 20:55:02 +00:00
Jeff Muizelaar
b2f147f5ac Bug 801918. OpenGL: Avoid doing extra invalidation when unrotating a buffer. r=mwoodrow
This approach ends up calling BlitTextureImage three extra times instead of
changing BlitTextureImage to support rotated buffers.

Supporting rotated buffers in BlitTextureImage is somewhat tricky because of
TiledTextureImage, and calling it three more times shouldn't be too bad (it
should be better than having to repaint)

Unfortunately, the rectangle manipulation code is a bit hairy.

--HG--
extra : rebase_source : a1018a22932675b154b76533f403a1328aa29cb5
2012-11-13 15:09:31 -08:00
Jeff Muizelaar
abde875b55 Bug 809603. Simplify border radius drawing. r=roc
This adds a RoundedRect class that we use to do the offsetting. This class can
probably also be used elsewhere. With this patch we handle the Gmail checkboxes
in a single draw instead of in pieces like we currently do.

--HG--
extra : rebase_source : 8809f12b386eef2ce7364fb98e681fba343efdfe
2012-11-12 17:55:26 -08:00
Brendan Dahl
49dd7a2abe Bug 791466 - Fix direct write cairo scaled font. r=Bas 2012-11-12 11:35:49 -08:00
Matt Woodrow
c39ede05cb Bug 805197 - Compute a region in LayerTreeInvalidation. r=roc 2012-11-12 10:31:15 -08:00
Nicholas Cameron
1e690cd966 Bug 782311; put back D3D10_RESOURCE_MISC_GDI_COMPATIBLE. r=Bas 2012-11-10 11:14:13 -08:00
Justin Lebar
e80ccc6058 Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 10:32:37 -08:00
Ryan VanderMeulen
b0097ea4f1 Backed out changeset b5c86318a3ee (bug 801918) for various regressions. 2012-11-10 12:09:50 -05:00
Ryan VanderMeulen
a9dc8e795f Backed out 12 changesets (bug 806127, bug 802366, bug 806168) for Windows build bustage.
--HG--
rename : dom/indexedDB/test/webapp_clearBrowserData.js => dom/indexedDB/test/test_webapp_clearBrowserData.html
2012-11-09 20:14:40 -05:00
Justin Lebar
37f4a955e5 Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-09 16:37:39 -08:00
Brian R. Bondy
9155d11e55 Bug 797013 - CheckInterfaceSupport fails on some hardware in metrofx. Do not rely on it. r=bas 2012-11-08 21:34:44 -05:00
Nathan Froyd
3520137968 Bug 809967 - include ostream instead of iostream in PathRecording.h to avoid static initializers; r=Bas 2012-11-08 14:22:16 -05:00
Andrea Marchesini
d2e9fb6a55 Bug 796275 - Context menu fires on wrong target out of process. r=cjones 2012-11-08 14:35:02 -05:00
Benoit Girard
b9c37615d2 Bug 809448 - Make ns(Int)Region ToString const. r=bas
--HG--
extra : rebase_source : 3d0916bf70c0fd0681ebb192b8757c44917f6ff5
2012-11-08 14:23:43 -05:00
Benoit Girard
06cb6800a0 Bug 794337 - Properly alias canvas image data when using Quartz compositing. r=jrmuizel
--HG--
extra : rebase_source : fb4c0e1a9bac0ac1cf54ddc23c66756060bbfdab
2012-11-02 16:24:37 -04:00
Edwin Flores
d4b61e8263 Bug 809904 - Create gralloc images in ImageContainerChild::CreateImage r=nical 2012-11-09 06:44:11 +13:00
Benoit Girard
986e390562 Bug 809493 - Restore the blend equation state after drawing the underlay. r=joe 2012-11-08 10:10:51 -05:00
Edwin Flores
d4f885daa6 Bug 798448 - Add YVU420SP to RGB565 conversion function r=gal 2012-11-08 17:24:02 +13:00
Edwin Flores
c9abceda4c Bug 804906 - Plug leak in GonkIOSurfaceImage::GetAsSurface r=doublec 2012-11-08 17:24:01 +13:00
Chris Jones
3b6afccf0e Bug 806029: Have remote content drop their buffers when they're hidden. r=mattwoodrow sr=roc 2012-11-07 19:51:55 -08:00
Jeff Muizelaar
2d52f78c4f Bug 801918. OpenGL: Avoid doing extra invalidation when unrotating a buffer. r=mwoodrow
This approach ends up calling BlitTextureImage three extra times instead of
changing BlitTextureImage to support rotated buffers.

Supporting rotated buffers in BlitTextureImage is somewhat tricky because of
TiledTextureImage, and calling it three more times shouldn't be too bad (it
should be better than having to repaint)

Unfortunately, the rectangle manipulation code is a bit hairy.

--HG--
extra : rebase_source : a1018a22932675b154b76533f403a1328aa29cb5
2012-11-07 21:35:54 -05:00
Bas Schouten
0c44a0904a Bug 509052: Add new, faster blurring code. r=derf 2012-11-07 09:29:54 +01:00
Ed Morley
7955e755b0 Backout e89f1fce980d (bug 509052) for an assortment of timeouts and crashes 2012-11-07 10:47:27 +00:00
Bas Schouten
18e314acfd Bug 509052: Add new, faster blurring code. r=derf 2012-11-07 09:29:54 +01:00
Matt Woodrow
2146637de4 Bug 808469 - Use gfxQuartzSurface for OMTC drawing on mac. r=cjones 2012-11-07 19:56:56 +13:00
Matt Woodrow
f63b23664a Bug 808469 - Make gfxSharedImageSurface take a template parameter for the base surface type. r=cjones
--HG--
rename : gfx/thebes/gfxSharedImageSurface.cpp => gfx/thebes/gfxBaseSharedMemorySurface.cpp
rename : gfx/thebes/gfxSharedImageSurface.h => gfx/thebes/gfxBaseSharedMemorySurface.h
2012-11-07 19:56:54 +13:00
Ryan VanderMeulen
1e6a5f0d3a Backout c3933841e06e (bug 793013) for possible Win7 reftest failures. 2012-11-06 21:27:09 -05:00
Tobias Schneider
8b298f4026 Bug 803124 - Implement mozIsPointInStroke. r=jmuizelaar 2012-10-29 16:54:53 +01:00
Anthony Jones
217bb02bf0 Bug 793013 - Use EnumSet in gfxPlatform instead of 1 << n. r=ncameron 2012-11-06 18:23:13 -05:00
Anthony Jones
3a8e7334df Bug 793013 - Remove unnecessary whitespace. 2012-11-06 18:23:13 -05:00
Jeff Gilbert
6b85c63580 Bug 797120 - GLContext::CanUploadNonPowerOfTwo() should not call AddBoolVarCache() when off the main thread. r=bjacob 2012-11-07 11:39:38 +13:00
Matt Woodrow
f0fabd4a39 Bug 807408 - Cache the temporary surface used when drawing ThebesLayers with BasicLayers. r=jrmuizel 2012-11-07 11:39:35 +13:00
Jonathan Kew
509fb43edc bug 805760 - update graphite2 lib to commit 51e72e74b9a6. r=jdaggett 2012-11-06 18:11:58 +00:00
Nicolas Silva
dcda690370 Bug 797893 - Fix trivial warning in ImageBridgeParent.cpp. r=dholbert 2012-10-05 22:46:01 +02:00
Phil Ringnalda
30fad36dc1 Back out 0d4e09ade336 (bug 808746) for Android reftest bustage 2012-11-05 22:35:59 -08:00
Benoit Girard
8d660d9bcc Bug 808746 - Properly calculate the tile's origin when avoiding SinglePaintBuffer. r=bjacob 2012-11-05 23:41:58 -05:00
Benoit Girard
7fe23ff866 Bug 679527 - Avoid float operation in qcms transforms. r=jrmuizel 2012-10-19 18:23:07 -04:00
Benoit Girard
2f0a721520 Bug 679527 - Use floorf/ceilf in qcms transform function. r=jrmuizel 2012-10-19 16:35:36 -04:00
Benoit Girard
7e6980a486 Bug 679527 - Prefer floorf over floor in qcms. r=jrmuizel 2012-10-19 16:35:24 -04:00
Nicolas Silva
a297627bd6 Bug Bug 773440 - Remove unnecessary frame copies with async-video by stroring video frames in shared memory earlier in the pipeline. r=roc 2012-11-05 11:38:03 +01:00
Jonathan Kew
2d1f625e26 bug 808288 - render missing glyphs as hexboxes in <canvas> text. r=bas 2012-11-04 10:51:03 +00:00
Ed Morley
0c1158c097 Backout 5eec0a5b76ff, 64e143317082 & f356d9b2524c (bug 808288) for reftest failures 2012-11-04 00:53:06 +00:00
Jonathan Kew
aff29a1863 bug 808288 - part 3 - draw missing-glyph hexboxes for <canvas> text, similar to missing glyphs in HTML text. r=bas 2012-11-03 23:01:33 +00:00
Chris Jones
d4ed1a1c10 Bug 807142: Make containers for DisplayRemote behave like leaf layers when we're resolution-scaling. r=mattwoodrow 2012-11-02 00:13:08 -07:00
Andrew Quartey
36ae7e6c05 Bug 792581 - part 23: Replace LL_INIT and LL_UDIVMOD macros. r=ehsan 2012-11-01 20:57:25 -04:00
Tobias Schneider
d12338f402 Bug 806780 - PathSkia::ContainsPoint should use SkPath::contains(x, y). r=jmuizelaar 2012-10-30 10:19:16 +01:00
Brad Lassey
fd0415480e bug 798826 - crash in gfxFT2FontList::FindFonts @ mozilla::scache::StartupCache::WaitOnWriteThread, speculative null check r=jfkthame 2012-11-01 09:31:58 -04:00
Jeff Muizelaar
7cb5d16857 Bug 805689. Don't copy when we don't need subpixel AA. r=mwoodrow
Avoid copying the background for subpixel AA when we aren't using
subpixel AA rendering.
2012-10-31 22:12:26 -04:00
Alexandre Lissy
c41c62ae2a Bug 787812 - Add Nexus S pixels constants. r=kchen 2012-10-27 12:48:18 +02:00
Jacek Caban
015aac00f5 Bug 803063 - Skia cross compilation for Windows fails on case sensitive OS r=gwright
--HG--
extra : rebase_source : 89da358d123edefc2093e5d66f4ab6d326e9ff21
2012-10-31 09:34:07 +01:00
Karl Tomlinson
76513d2702 b=797568 destroy GLXPixmap on Finish r=roc
--HG--
extra : transplant_source : 5%969%9A%B7%97%B2%EC%15%CA%7FPSWP%26Y%9DS%AE
2012-10-31 15:54:20 +13:00
Robert O'Callahan
4b853e748f Bug 804062. Move device-pixels-per-CSS-pixel preference logic into nsIWidget::GetDefaultScale. r=jfkthame
The only behavior change caused by this patch should be that nsDeviceContexts with no widget
(mainly printing, I think), default to a devpixel-per-CSS-pixel ratio of 1.0, ignoring
any prefs set.
2012-10-31 11:31:35 +11:00
Nicholas Cameron
9918b32c5c Bug 801465; DataSourceSurfaceD2D; r=Bas 2012-10-31 12:30:25 +13:00
Benoit Girard
4cb2f77234 Bug 800944 - Use fuzzy float equal to prevent harvesting tiles causing assertion. r=Cwiiis
--HG--
extra : rebase_source : 6878c7d6b4b345feaf46a58a0a61037ab57290c2
2012-10-30 12:08:22 -04:00
Jonathan Kew
9b7556492c bug 806059 - make gfxQuartzNativeDrawing aware of backing scale factor when rendering native widgets. r=smichaud 2012-10-29 09:22:30 +00:00
Nathan Froyd
f9b2a74082 Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Masayuki Nakano
d5a93b094c Bug 805761 Fix warning in layers::FrameMetrics::GetScrollOffsetInLayerPixels() r=drs 2012-10-30 10:58:29 +09:00
Daniel Holbert
f2f61487b3 Bug 795655: Mark "StringFromPtr()" in RecordedEvent.h as inline, not static, so that it doesn't trigger build warnings in cpp files that don't use it. r=bas 2012-10-29 16:15:31 -07:00
Chris Lord
eda62c08cb Bug 796117 - Fix ReusableTileStoreOGL. r=bgirard
Changes to FrameMetrics and progressive tiling caused ReusableTileStoreOGL
to basically not work anymore. Refactor to provide the same function as it did
previously taking into account the platform changes.
2012-10-29 22:46:54 +00:00
Benoit Girard
4203da214f Bug 805792 - Avoid another extra copie when calling RenderTile. r=Cwiiis
* * *
Bug 805907 - Handle memory pressure notification in the TileStore. r=Cwiiis,ehsan

--HG--
extra : rebase_source : 976deda3ab13c2e178f9a6922b7c17c294175fad
2012-10-29 18:10:45 -04:00
Jacek Szpot
bea8356b2c Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Nicolas Silva
adf5395310 Bug 792252 - Clean up ImageContainerChild (before implementing SharedPlanarYCbCrImage to remove the extra video frame copy). r=kanru 2012-10-29 16:08:06 +01:00
Bas Schouten
e52a32f0ff Bug 805831: Add a cache for border corner gradients. r=joedrew 2012-10-27 06:32:52 +02:00
Phil Ringnalda
8ef69d2aac Back out fbd8fdb7c544 (bug 805831) for build failures 2012-10-26 21:53:41 -07:00
Bas Schouten
688168bfaf Bug 805831: Add a cache for border corner gradients. r=joedrew 2012-10-27 06:32:52 +02:00
Benoit Girard
37d3385e8d Bug 805792 - Avoid another extra copie when calling RenderTile. r=Cwiiis
--HG--
rename : layout/style/test/test_viewport_units.html => layout/style/test/test_rem_unit.html
extra : rebase_source : 3b18b7c42691b655264b615044e28cb448fde7a6
2012-10-26 10:44:48 -04:00
Benoit Girard
5954e48580 Bug 805792 - Avoid extra copies when calling RenderTile. r=Cwiiis
--HG--
rename : toolkit/components/passwordmgr/test/auth2/authenticate.sjs => toolkit/components/passwordmgr/test/authenticate.sjs
extra : rebase_source : 30755a7e578743530c51f6f1953ca25bf5c0e149
2012-10-26 09:38:44 -04:00
Jacek Caban
09b0dc834b Bug 803066 - graphite2 fails to cross compile for Windows from case sensitive OS r=jfkthame 2012-10-26 10:48:06 +02:00
Matt Joras
cb9f8ae9e7 Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar 2012-10-25 16:12:59 -04:00
Chris Lord
2bdabb168c Bug 805014 - Disable progressive tiles when a shadow target is set. r=bgirard
The testing framework doesn't react well to paints not coming in synchronously.
Disable progressive tile painting when a shadow target is set on the layer
manager for now.
2012-10-25 17:27:08 +01:00
Chris Lord
ea24fe8f7e Bug 805028 - Add LayerManagerOGL::ComputeRenderIntegrity. r=bgirard
Add a function to LayerManagerOGL that can compute how much of the last
rendered area was incomplete (i.e. is pending update when progressive tile
drawing is enabled).
2012-10-25 17:23:42 +01:00
Markus Stange
19d18b4803 Bug 770524 - Fix FuzzyEqual to not return false for equal floats which are smaller than -2048.0f. r=roc 2012-10-25 12:54:15 +02:00
Anthony Jones
66ba4ec646 Bug 796418 - Check cairo matrix before drawing. r=joe 2012-10-24 22:03:21 -04:00
Matt Woodrow
e813ffaf37 Bug 775228. r=joe 2012-10-25 12:04:41 +13:00
Benoit Jacob
d39687ef3f Bug 793126 - import ANGLE r1278 to get the fix for ANGLE bug 350, a WebGL crasher - r=jgilbert 2012-10-24 16:26:54 -04:00
Markus Stange
92957d10b7 Bug 805002 - Flush accelerated Quartz canvas before GL composition. r=BenWa 2012-10-24 18:17:00 +02:00
Chris Lord
e22cbeea8a Bug 803013 - Update valid region progressively with tiles. r=bgirard
When updating tiles progressively, make sure the valid region is also updated
progressively to avoid flickering.
2012-10-24 15:49:03 +01:00
Doug Sherk
20620b38aa Bug 804949: Change the way panning works. r=cjones a=blocking-basecamp 2012-10-24 01:37:53 -07:00
Jonathan Kew
000afaf24f bug 803347 - update graphite2 lib to upstream commit 4ddfa0f51098. r=jdaggett 2012-10-24 09:20:13 +01:00
Phil Ringnalda
d6c4126193 Backout 8cc37887f621 and b6bd9f564650 (bug 795259) and 8b9c7bf80449 (bug 803013) to investigate the effect on Android reftest-1 and -4 permaorange 2012-10-23 23:35:13 -07:00
Benoit Jacob
1df855d53e Bug 801158 - update ANGLE README.mozilla with detailed update instructions to help someone else learn how to do ANGLE updates - no review, DONTBUILD 2012-10-23 18:31:31 -04:00