Commit Graph

1832 Commits

Author SHA1 Message Date
Matt Woodrow
d79e024902 Bug 791644 - Refactor nsDisplayTransform::GetResultingTransformMatrix into two functions with less optional parameters. r=roc 2012-09-18 10:34:21 +12:00
Chris Lord
f157f692e5 Bug 818169 - Add a pref to configure resolution of low precision buffer. r=bgirard 2012-12-05 17:10:41 +00:00
Nicolas Silva
5e6401deba b=811730 - Take skip into account when copying video frames into shared memory. r=cpeterson 2012-12-04 11:36:33 +01:00
Ryan VanderMeulen
73f2cb97af Backed out changeset 65f06a1e7b1b (bug 799401) for Windows build bustage. 2012-12-04 21:43:52 -05:00
Anthony Jones
d4d4a663f1 Bug 799401 - Throttle APZC paint requests. r=cjones 2012-12-04 21:00:38 -05:00
Chris Lord
36d127329a Bug 818025 - Fix BasicTiledThebesLayer fast path. r=bgirard
When disabling low precision and progressive rendering, BasicTiledThebesLayer
takes a fast path that avoids a lot of region operations, transformation and
iterations. Unfortunately, it also forgets to check if the mask layer exists
before trying to draw it, which causes an immediate crash in most cases.
2012-12-04 15:24:24 +00:00
Mats Palmgren
60ccae9fe3 Bug 817574 - Replace NS_ABS with std::abs. r=roc 2012-12-04 13:33:33 +01:00
Chris Jones
22e24dcf2b Bug 813372: Guard against TiledTextureImage with dimensions of 0. r=mattwoodrow a=blocking-basecamp 2012-12-04 00:39:21 -08:00
Chris Jones
09dfcb2bb1 Bug 813356: Skip subtrees with null roots during resolution. r=roc a=blocking-basecamp 2012-12-03 12:45:42 -08:00
Anthony Jones
f9f890b7d6 Bug 798194 - Fix problem with resizing the composition bounds. r=roc 2012-12-02 20:33:53 -05:00
Chris Lord
77c6546972 Bug 814437 - Address review comments that were missed. r=bgirard
In my haste, I forgot to address review comments before pushing. This
corrects indentation in PanningPerf.java, moves GetValidLowPrecisionRegion from
Layer to TiledLayerComposer and corrects checkerboard measurement when there
isn't a low precision buffer and when the display ports don't cover the screen.
2012-11-30 23:11:37 +00:00
Ehsan Akhgari
48c687113c Backed out changeset 5368aced79b3 (bug 814437) because it breaks Android builds 2012-11-30 15:41:08 -05:00
Chris Lord
b2b8133657 Bug 814437 - Address review comments that were missed. r=bgirard
In my haste, I forgot to address review comments before pushing. This
corrects indentation in PanningPerf.java, moves GetValidLowPrecisionRegion from
Layer to TiledLayerComposer and corrects checkerboard measurement when there
isn't a low precision buffer and when the display ports don't cover the screen.
2012-11-30 19:52:17 +00:00
Daniel Holbert
c5a90eaf89 Bug 816885: Guard GetDisplayportCoverage() in LayerManagerOGL.cpp with #ifdef MOZ_ANDROID_OMTC, since it's only used in #ifdef-guarded code. r=Cwiiis 2012-11-30 09:59:00 -08:00
Michael Wu
be51825214 Bug 774458 - Only send clicks on confirmed single taps, r=cjones 2012-11-29 21:26:11 -05:00
Matt Woodrow
56ba57d515 Bug 810302 - Don't try to draw layers with a singular transform on BasicLayers. r=roc 2012-11-30 11:11:04 +13:00
Boris Zbarsky
53f339800c Bug 815671 part 4. Remove some array copying in gfx code. r=roc 2012-11-29 11:14:13 -05:00
Chris Lord
c03d30e218 Bug 814864 - Reconcile frame resolution difference in layer rendering. r=bgirard
Reconcile the difference when rendering a buffer that has a different frame
resolution to the primary buffer. This is handy for low precision buffers that
are updated at a different rate to primary buffers.
2012-11-29 13:08:41 +00:00
Chris Lord
7e85fd7d95 Bug 814864 - Do high precision updates before low precision updates. r=bgirard
Rather than interleaving high and low precision updates, do low after high.
This patch also refactors the code somewhat so that we don't needlessly
recalculate the values required for repeated transactions.
2012-11-29 13:08:40 +00:00
Chris Lord
0997087f82 Bug 814437 - Fix checkerboard measurement when using a critical displayport. r=bgirard
The checkerboard measurement depended on the displayport coverage of the
viewport, which was calculated in LayerRenderer. When using a critical
displayport, this value changes, but this was not being accounted for.

We have all the context we need for this Gecko-side, so move this code into
LayerManagerOGL::ComputeRenderIntegrity and account for displayport coverage
correctly.
2012-11-29 12:03:38 +00:00
Chris Lord
3d5740023e Bug 814437 - Count low precision rendering 0.5x towards checkerboarding. r=bgirard 2012-11-29 12:03:27 +00:00
Benjamin Chen
4bc6260040 Bug 804985 - [browser] don't try to zoom out wider than the page width r=cjones
1. bring the zoom factor into BrowserElementScrollng.js
2. fix the zoom ratio in AsyncPanZoomController::ZoomToRect
3. fix the relation between _isRectZoomedIn and AsyncPanZoomController::ZoomToRect
4. zoom it out if the rect reach the device maximal zoom ratio
2012-11-28 17:18:12 +08:00
Cervantes Yu
f436443f50 Bug 806596 - Don't fire double tap if the delayed task to timeout the 1st tap fails to run in time. r=roc 2012-11-28 22:46:50 -05:00
Jeff Gilbert
5ea164ca57 Bug 811958 - Fix and move ShateType type - r=bgirard 2012-11-26 14:23:27 -08:00
Jeff Gilbert
9c9ac2fca3 Bug 811958 - Pull GLContext out of Cocoa stuff - r=bgirard 2012-11-26 14:23:27 -08:00
Jeff Gilbert
144687e59c Backed out csets 807f2c3df974, 1637c39b4ed6, ec29e09a270e (bug 811958) for burning android 2012-11-26 13:48:20 -08:00
Jeff Gilbert
6db824094c Bug 811958 - Fix and move ShareType type - r=bgirard 2012-11-26 12:51:57 -08:00
Jeff Gilbert
7cf8b80673 Bug 811958 - Pull GLContext out of Cocoa stuff - r=bgirard 2012-11-26 12:51:57 -08:00
Oleg Romashin
962c7d9b70 Bug 814979 - Fennec build fails with Mer SDK: invalid inclusion of GLXLibrary.h. r=glandium,mattwoodrow 2012-11-26 00:08:22 -08:00
Chris Pearce
27142adde4 Bug 814541 - Silence warnings in gfx/layers/d3d9/Nv3DVUtils.cpp. r=Bas 2012-11-23 15:21:20 +13:00
David Zbarsky ext:(%2C%20David%20Baron%20%3Cdbaron%40dbaron.org%3E%2C%20Chris%20Jones%20%3Cjones.chris.g%40gmail.com%3E)
a8ed311e40 Bug 788409: When the compositor runs past the end of an animation, just fill forwards until the main thread catches up. r=dbaron a=blocking-basecamp 2012-11-22 15:49:06 -08:00
Andrea Marchesini
7791d789d4 Bug 808266 - Add memory reporter for GrallocBufferActor. r=cjones 2012-11-22 08:39:56 -05:00
Chris Lord
11a5503d3c Bug 783368 - Add a pref to control low precision tile rendering. r=bgirard
Add pref 'layers.low-precision-buffer', enabled on mobile/android.
2012-11-21 22:34:20 +00:00
Chris Lord
daa0c0b91b Bug 783368 - Uncouple low precision updates from standard. r=bgirard
Allow low precision updates to happen regardless of the state of the unscaled
tile buffer.
2012-11-21 22:34:20 +00:00
Chris Lord
7f5b805f96 Bug 783368 - Fix progressive tile update coherency issues. r=bgirard
Fix some progressive tile updating coherency issues caused by aborting at
inopportune times and tile draw ordering.
2012-11-21 22:34:19 +00:00
Chris Lord
dcd77547c6 Bug 783368 - Send the correct display port when rendering low precision. r=kats,bgirard
When doing a low precision update, send the display-port instead of the
critical display port so that more appropriate cancelling decisions can be
made.
2012-11-21 22:34:19 +00:00
Chris Lord
b4f19d1caf Bug 783368 - Don't duplicate high precision rendering in low precision region. r=bgirard
Don't render valid high precision region in the low precision buffer.
2012-11-21 22:34:19 +00:00
Chris Lord
f068580516 Bug 783368 - Add a low precision buffer to tiled thebes layers. r=bgirard,kats
If there is a critical display port set, render the area outside it into a
lower precision buffer.
2012-11-21 22:34:19 +00:00
Chris Lord
221843e04f Bug 783368 - Disable ReusableTileStoreOGL by default. r=blassey
Add layers.reuse-invalid-tiles to control use of the reusable tile store and
disable it by default.
2012-11-21 22:34:19 +00:00
Chris Lord
dced911b41 Bug 783368 - Add resolution to TiledLayerBuffer. r=bgirard
Add the concept of resolution to TiledLayerBuffer and add support for it in
BasicTiledThebesLayer and TiledThebesLayerOGL.
2012-11-21 22:34:18 +00:00
Chris Lord
4e2898c1cf Bug 783368 - Prefer the critical display port, when set, in basic tiled layers. r=bgirard
If a critical display port is set, only validate content within it when using
basic tiled layers.
2012-11-21 22:34:18 +00:00
Chris Lord
49699652e2 Bug 783368 - Add critical display port content property. r=roc
Add a property to represent a sub-rectangle of the display port that is
considered 'critical' to render correctly.
2012-11-21 22:34:18 +00:00
Ehsan Akhgari
abcfaa316e Backed out 11 changesets (bug 783368) because of build bustage on a CLOSED TREE
Backed out changeset 2bc4310263c4 (bug 783368)
Backed out changeset a35c83a8d99d (bug 783368)
Backed out changeset afb9b2a661ba (bug 783368)
Backed out changeset 3926f510f9be (bug 783368)
Backed out changeset 9d1fe200ff87 (bug 783368)
Backed out changeset b6e4f88f5730 (bug 783368)
Backed out changeset bc53f7dba7c6 (bug 783368)
Backed out changeset 1948fa2fccc1 (bug 783368)
Backed out changeset 9af163388fd1 (bug 783368)
Backed out changeset 7a2256e1aa7c (bug 783368)
Backed out changeset 4da1958a9885 (bug 783368)
2012-11-21 14:57:02 -05:00
Chris Lord
9ec8b6a2e5 Bug 783368 - Add a pref to control low precision tile rendering. r=bgirard
Add pref 'layers.low-precision-buffer', enabled on mobile/android.
2012-11-21 19:16:53 +00:00
Chris Lord
ebcd7b9479 Bug 783368 - Uncouple low precision updates from standard. r=bgirard
Allow low precision updates to happen regardless of the state of the unscaled
tile buffer.
2012-11-21 19:16:53 +00:00
Chris Lord
f56c6a2dd4 Bug 783368 - Fix progressive tile update coherency issues. r=bgirard
Fix some progressive tile updating coherency issues caused by aborting at
inopportune times and tile draw ordering.
2012-11-21 19:16:52 +00:00
Chris Lord
2cf7007f77 Bug 783368 - Send the correct display port when rendering low precision. r=kats,bgirard
When doing a low precision update, send the display-port instead of the
critical display port so that more appropriate cancelling decisions can be
made.
2012-11-21 19:16:52 +00:00
Chris Lord
5b0bde0e57 Bug 783368 - Don't duplicate high precision rendering in low precision region. r=bgirard
Don't render valid high precision region in the low precision buffer.
2012-11-21 19:16:52 +00:00
Chris Lord
c341a5ec2a Bug 783368 - Add a low precision buffer to tiled thebes layers. r=bgirard,kats
If there is a critical display port set, render the area outside it into a
lower precision buffer.
2012-11-21 19:16:52 +00:00
Chris Lord
53df955001 Bug 783368 - Disable ReusableTileStoreOGL by default. r=blassey
Add layers.reuse-invalid-tiles to control use of the reusable tile store and
disable it by default.
2012-11-21 19:16:52 +00:00
Chris Lord
231a433699 Bug 783368 - Add resolution to TiledLayerBuffer. r=bgirard
Add the concept of resolution to TiledLayerBuffer and add support for it in
BasicTiledThebesLayer and TiledThebesLayerOGL.
2012-11-21 19:16:51 +00:00
Chris Lord
6ae9b705d9 Bug 783368 - Prefer the critical display port, when set, in basic tiled layers. r=bgirard
If a critical display port is set, only validate content within it when using
basic tiled layers.
2012-11-21 19:16:51 +00:00
Chris Lord
78b87d6c47 Bug 783368 - Add critical display port content property. r=roc
Add a property to represent a sub-rectangle of the display port that is
considered 'critical' to render correctly.
2012-11-21 19:16:51 +00:00
Jonathan Watt
03a812f65b Bug 802440 - Some elements are invalidated when other elements are scrolled off the screen. r=roc. 2012-11-21 02:23:57 +00:00
Chris Jones
8c1774d31e 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
Nicolas Silva
0b59dd32e0 b=811115 - remove MOZ_EGL_XRENDER_COMPOSITE dead code. r=jgilbert 2012-11-18 16:47:57 +01:00
Nicolas Silva
064dc74d8e 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
Daniel Holbert
cc5f3de1d7 (no bug) fix typo in header comment for AsyncPanZoomController::CalculateIntrinsicScale(). DONTBUILD (comment-only) 2012-11-15 09:16:03 -08:00
Jeff Muizelaar
4c788785a7 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
Matt Woodrow
bcdaf96109 Bug 805197 - Compute a region in LayerTreeInvalidation. r=roc 2012-11-12 10:31:15 -08:00
Nicholas Cameron
1f29551184 Bug 782311; put back D3D10_RESOURCE_MISC_GDI_COMPATIBLE. r=Bas 2012-11-10 11:14:13 -08:00
Ryan VanderMeulen
3b3a4a2c86 Backed out changeset b5c86318a3ee (bug 801918) for various regressions. 2012-11-10 12:09:50 -05:00
Andrea Marchesini
848b592697 Bug 796275 - Context menu fires on wrong target out of process. r=cjones 2012-11-08 14:35:02 -05:00
Benoit Girard
a678c602e4 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
b45039f01f Bug 809904 - Create gralloc images in ImageContainerChild::CreateImage r=nical 2012-11-09 06:44:11 +13:00
Benoit Girard
057737fe06 Bug 809493 - Restore the blend equation state after drawing the underlay. r=joe 2012-11-08 10:10:51 -05:00
Edwin Flores
2480df5b0a Bug 798448 - Add YVU420SP to RGB565 conversion function r=gal 2012-11-08 17:24:02 +13:00
Edwin Flores
3294528a2f Bug 804906 - Plug leak in GonkIOSurfaceImage::GetAsSurface r=doublec 2012-11-08 17:24:01 +13:00
Chris Jones
8a2473fc33 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
3d8c760074 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
Matt Woodrow
b5b0a2f7d2 Bug 808469 - Use gfxQuartzSurface for OMTC drawing on mac. r=cjones 2012-11-07 19:56:56 +13:00
Matt Woodrow
7cbf5162ba Bug 807408 - Cache the temporary surface used when drawing ThebesLayers with BasicLayers. r=jrmuizel 2012-11-07 11:39:35 +13:00
Nicolas Silva
0ee0d2e02b Bug 797893 - Fix trivial warning in ImageBridgeParent.cpp. r=dholbert 2012-10-05 22:46:01 +02:00
Phil Ringnalda
25c4f24ae3 Back out 0d4e09ade336 (bug 808746) for Android reftest bustage 2012-11-05 22:35:59 -08:00
Benoit Girard
84bc9c78d0 Bug 808746 - Properly calculate the tile's origin when avoiding SinglePaintBuffer. r=bjacob 2012-11-05 23:41:58 -05:00
Nicolas Silva
9163020b45 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
Chris Jones
6249aa79ea 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
Jeff Muizelaar
82d19c2b98 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
2bdfa628ee Bug 787812 - Add Nexus S pixels constants. r=kchen 2012-10-27 12:48:18 +02:00
Benoit Girard
9247bfc30f 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
Masayuki Nakano
a31fb1c20e Bug 805761 Fix warning in layers::FrameMetrics::GetScrollOffsetInLayerPixels() r=drs 2012-10-30 10:58:29 +09:00
Chris Lord
b3b5969577 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
5327c7eaab 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
Nicolas Silva
0beab091c2 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
Benoit Girard
5d9fdabc64 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
5ba2ae05c2 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
Matt Joras
2549497ae7 Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar 2012-10-25 16:12:59 -04:00
Chris Lord
59e6d65fb8 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
920793b142 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
3675c89168 Bug 805002 - Flush accelerated Quartz canvas before GL composition. r=BenWa 2012-10-24 18:17:00 +02:00
Chris Lord
f5236acf1f 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
3251aebb84 Bug 804949: Change the way panning works. r=cjones a=blocking-basecamp 2012-10-24 01:37:53 -07:00
Phil Ringnalda
e1e45989af 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 Girard
b91e942f5e Bug 804724 - Add an abort painting marker. r=ehsan
--HG--
extra : rebase_source : 10f327e91b15d673303eb607a361c1c4d14a1e92
2012-10-23 17:18:37 -04:00
Chris Lord
7a4b155c59 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-23 19:30:35 +01:00
Chris Lord
2caf0bb798 Bug 803013 - Maintain coherency when progressively updating visible areas. r=bgirard
When rendering progressively, make sure that any previously visible area that
is still visible is updated at the same time. This helps maintain visual
coherency on pages that invalidate previously visible areas while scrolling,
and when losing layers between updates.

This supersedes the previous method of only doing progressive updates while
scrolling.
2012-10-22 20:18:14 +01:00
Kan-Ru Chen (陳侃如)
b004178115 Bug 791711 - Invalidate again if the SharedImageID was removed. r=nical 2012-10-20 08:18:31 +08:00
Chris Lord
91821fc9ca Bug 802143 - Clarify coordinate spaces in ReusableTileStoreOGL::DrawTiles. r=bgirard 2012-10-18 12:59:17 +01:00
Chris Lord
555a98443f Bug 802143 - Fix calculation of content bounds in ReusableTileStoreOGL. r=bgirard
FrameMetrics changed at some point so that the content rect and scroll offset
are stored pre-multiplied by the render resolution. The display-port calculation
in this function appears to have always been wrong(?)
2012-10-18 12:53:33 +01:00
Nicholas Cameron
c02fbc2f2e Bug 802518; add Painted() to BasicShadowableCanvasLayer::Paint; r=jgilbert DONTBUILD 2012-10-18 21:40:32 +13:00
Nicholas Cameron
274ef633c7 Back out changeset db4fd6efba17 for wrong bug number r=me 2012-10-18 21:39:15 +13:00
Chris Jones
5c2831faf2 Bug 799644: Need to clear areas of rgba buffers we're about to repaint. r=mattwoodrow 2012-10-17 22:44:26 -07:00
Nicholas Cameron
46f96abb92 Bug 803518; add Painted() to BasicShadowableCanvasLayer::Paint; r=jgilbert
--HG--
extra : rebase_source : 2cad76436370ec2bf1d52208a732e638e62435d5
2012-10-18 11:17:32 +13:00
Matt Woodrow
219b2444d2 Bug 802321 - Use FuzzyEquals to compare matrices in LayerTreeInvalidation. r=roc 2012-10-17 21:00:00 +13:00
Benoit Girard
cab00e8f02 Back out b7f31a736800 for mochitest failures
--HG--
extra : rebase_source : 9f77f07db004fe11a20533c0ad017cef825a1a8b
2012-10-15 16:57:43 -04:00
Benoit Girard
0c6e26e826 Back out d5496f32f2e4 for mochitest failures
--HG--
extra : rebase_source : 1e0caa0ae6d2c1bec971fde75c348f69e6cc63fe
2012-10-15 16:57:06 -04:00
Benoit Girard
632a14569f Bug 796117 - Keep tiles cached when changing resolution. r=Cwiiis
--HG--
extra : rebase_source : fdc4bb831c367d2d33dadb75c6d1f9784b97d44d
2012-10-15 15:08:45 -04:00
Benoit Jacob
15decb515e back out 621cfd13ceaf for build failures 2012-10-15 13:34:42 -04:00
Matt Joras
ce980ce123 Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar 2012-10-15 13:02:21 -04:00
Benoit Girard
3dff7c50b2 Bug 796117 - New Mobile tilestore tiles will now replace equivalent tiles. r=Cwiiis 2012-10-12 17:50:08 -04:00
Oleg Romashin
07bb73f5c2 Bug 801460 - IDXGIFactory2 not declared build errors with --enable-metro. r=bas.schouten 2012-10-14 23:19:13 -07:00
Chris Lord
adab118d74 Bug 749063 - Improve progressive tile update draw order. r=bgirard
Now that the region can be more complicated due to tile prioritisation, the
previous code for draw order doesn't work as intended. Robustify/simplify the
code by making it region-based.
2012-10-15 09:33:56 +01:00
Chris Lord
fec9404d96 Bug 749063 - Prioritise visible tiles when progressively updating. r=bgirard
When progressively updating tiles, prioritise tiles that intersect with the
current viewport before off-screen tiles. New content is still prioritised
over stale content.
2012-10-15 09:33:48 +01:00
Chris Lord
bc223170e4 Bug 749063 - Replace shouldAbort with generic callback for progressive updates. r=bgirard
Replace ShouldAbortProgressiveUpdate with ProgressiveUpdateCallback, that
provides more contextual information about how the update will get used.
2012-10-15 09:33:34 +01:00
Matt Woodrow
3584642dca Bug 799956 - Mark BasicLayerManagers that don't retain content as supporting component alpha layers. r=roc 2012-10-15 17:53:37 +13:00
Ed Morley
f71c7a0f14 Merge mozilla-central to mozilla-inbound 2012-10-12 12:22:14 +01:00
Ed Morley
edeb5cd80c Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-10-12 11:59:59 +01:00
Nicholas Cameron
a18fe5707c Bug 734668; remove Thebes canvas. r=roc
--HG--
extra : rebase_source : 57b08c33f72cd611deb30dc1639060a719747849
2012-10-12 22:42:51 +13:00
Chris Jones
c310927390 Bug 795657: Integrate native viewport configuration better into async pan-zoom code. r=jwir3,roc
This is a rollup of the following patches
 - Change the interpretation of FrameMetrics.mZoom to a "resolution-indepedent zoom", instead of a resolution-depedent scale factor. r=roc
 - Remove mention of "meta" from TabChild. r=roc
 - Remove some useless logging. r=roc
 - Tag FrameMetrics with its composition bounds at paint time. r=roc
 - Add a helper to calculate the render resolution for a FrameMetrics. r=roc
 - Add a helper to compute the approximate CSS dimensions a FrameMetrics will cover during composition. r=roc
 - BrowserElementScrolling doesn't actually care about zoom or resolution. r=roc
 - Accept the viewport that content has calculated, when it's received the latest widget geometry update. r=roc
 - Mechanically separate uses of zoom/resolution based on new definitions. r=roc
 - Convert GetViewportInfo()'s resolution-dependent scale into resolution-indepedent zoom. r=roc
 - Reinterpret defaultZoom == 0.0 as "intrinsic scale". r=jwir3,roc
2012-10-11 22:46:24 -07:00
Jeff Muizelaar
538087de5f Bug 800031. Include paint time int tab switch telemetry. r=ehsan,dao,bjcaob
This adds a new FX_TAB_SWITCH_TOTAL_MS that should more accurately represent
the user experience of tab switch time than FX_TAB_SWITCH_UPDATE_MS.
FX_TAB_SWITCH_UPDATE_MS is being kept because it gives a good indication of how
much time is being spent in the front end parts vs the painting parts.

This works by measuring the time between beginTabSwitch() and the first call to
LayerManager::PostPresent().
2012-10-11 13:54:27 -04:00
Makoto Kato
fd5c3140ef Bug 795594 - Add workaround for MSVC x64 compiler bug. r=roc 2012-10-10 15:17:30 +09:00
Edwin Flores
189f94352a Bug 794061 - Let OMX hardware decoded video frames be copied to canvas r=kanru 2012-10-09 17:06:35 +13:00
Ed Morley
518e3c5e11 Bug 798419 - Fix incorrect spellings of success(ful) in test output; r=me 2012-10-05 17:48:15 +01:00
Chris Lord
e7de629479 Bug 794130 - Abort drawing if appropriate when using progressive tile updates. r=bgirard,blassey
Add a function to BasicLayerManager to check if it's appropriate to abort an
ongoing progressive update, and add an Android-specific implementation in
mobile/android/base/gfx/GeckoLayerClient.java.

--HG--
extra : rebase_source : edbd20acb53660340d52265591849aacafd179c4
2012-10-04 14:45:16 -04:00
Benoit Girard
8aed17295d Bug 724666 - Add pref for accelerated canvas on mac. r=jrmuizel 2012-07-31 18:48:40 -04:00
Nicholas Cameron
ee97d8eaae Bug 796182; fix invalidation on Mac with OMTC; r=cjones 2012-10-04 20:45:48 +13:00
Chris Jones
4f1344c6d2 Bug 780920, part 3: The ultimate compositor has to draw to the readback surface; shadow layers doesn't have access to all the needed rendering state. r=roc 2012-10-04 00:05:24 -07:00
Chris Jones
9582a20f31 Bug 780920, part 1: LayerManagerOGL needs to account for the world transform when reading back into a non-default target. r=roc 2012-10-04 00:05:23 -07:00
Daniel Holbert
4b869cc3a8 Bug 797666: Add unsigned cast in assertion within TiledLayerBuffer::Update(), to fix build warning. r=BenWa 2012-10-03 22:31:59 -07:00
Chris Jones
ca39444b15 Bug 790505, part 3: Add API for scheduling a shadowable-layer mutation to be applied at the next layers transaction. r=mattwoodrow,roc 2012-10-02 22:55:50 -07:00
Ryan VanderMeulen
84b001d90c Merge m-c to inbound. 2012-10-03 22:24:20 -04:00
Ryan VanderMeulen
c0d8585b0b Backout 0cd12dcf7f8f, 5ff5e81e6de6, and 0ae09da96f63 (bug 740580) due to bug 797391. 2012-10-03 22:13:14 -04:00
Benoit Girard
2153a3688f Bug 797359 - Increase size of tile debug overlay. r=Cwiiis 2012-10-03 10:56:41 -04:00
Benoit Girard
6bd7b01ce6 Bug 796939 - Don't use the SinglePaintBuffer if only painting one tile. r=Cwiis 2012-10-03 10:28:04 -04:00
Benoit Girard
f0ee89a810 Bug 796084 - Remove reference to java compositor in comments. r=Cwiiis, DONTBUILD because comment only
--HG--
extra : rebase_source : 219138ec908b089e62f1394358a87a921e379383
2012-10-02 09:46:01 -04:00
Chris Lord
821878a16a Bug 797393 - Fix FrameMetrics == operator. r=roc 2012-10-03 19:51:38 -04:00
Ehsan Akhgari
b9605eaf78 Bug 797614 - Silence the warning about assignment in the condition in BasicTiledThebesLayer.cpp; r=jrmuizel
--HG--
extra : rebase_source : 2318567420c513555e2c8ee3cebfa5ff16eeaa3b
2012-10-03 19:36:10 -04:00
Ehsan Akhgari
fd8ffe4dd2 Bug 797604 - Make floor_div in TiledLayerBuffer.h static inline; r=jrmuizel 2012-10-03 18:50:20 -04:00
Chris Jones
17867c12a8 Back out bug 790505 for leaking 2012-10-03 00:21:08 -07:00
Chris Jones
fafda90217 Bug 790505, part 2: Add API for scheduling a shadowable-layer mutation to be applied at the next layers transaction. r=mattwoodrow,roc 2012-10-02 22:55:50 -07:00
George Wright
950c2e8a90 Bug 740580 - Add support for Azure DrawTargets to BasicLayers. r=Bas 2012-10-02 22:09:12 -04:00
Benoit Girard
0dfaad9d0e bug 795310 - Uninitialised value use in mozilla::layers::BasicTiledThebesLayer::PaintThebes r=cwiiis
--HG--
extra : rebase_source : e5c219ce278714699a1bcddf6c98fd2e3c5d7a8f
2012-10-02 14:14:47 -07:00
Chris Jones
40667015b0 Back out 17f942846b9f (bug 795811) for causing startup crashes. 2012-10-02 01:29:53 -07:00
David Zbarsky
83dc4acb46 Bug 795811 - Make GetPrimaryScrollableLayer() return null on all configurations except MOZ_WIDGET_ANDROID r=cjones 2012-10-02 00:19:56 -04:00
Kan-Ru Chen (陳侃如)
c976f43057 Bug 788408 - Part 2. Use glReadPixels to read back when back buffer isn't RGBA compatible. r=jgilbert 2012-10-02 10:42:13 +08:00
Anthony Jones
e464d5aa1b Bug 793085 - Remove UseAzureContentDrawing() in favour of SupportsAzureContent(). r=ncameron 2012-10-01 22:12:13 -04:00
Benoit Girard
c8f1bc0779 Bug 796084 - Rename MOZ_JAVA_COMPOSITOR -> MOZ_ANDROID_OMTC. r=blassey 2012-10-01 16:01:35 -04:00
Ed Morley
d5d2156e17 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-10-01 14:02:06 +01:00
Matt Woodrow
603381f065 Bug 795694 - Invalidate changed visible regions of layers. r=roc 2012-10-01 16:38:46 +13:00
David Zbarsky
0f0ea1fc19 Bug 790508: SampleAnimations should walk the layer tree from the root instead of from the primary scrollable layer r=cjones 2012-10-01 02:13:49 -04:00