Commit Graph

1637 Commits

Author SHA1 Message Date
Chris Lord
92a8e8eb5b 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 (陳侃如)
c162c0d48f Bug 791711 - Invalidate again if the SharedImageID was removed. r=nical 2012-10-20 08:18:31 +08:00
Chris Lord
f417dde98c Bug 802143 - Clarify coordinate spaces in ReusableTileStoreOGL::DrawTiles. r=bgirard 2012-10-18 12:59:17 +01:00
Chris Lord
ba0b96675c 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
ae19046b6a Bug 802518; add Painted() to BasicShadowableCanvasLayer::Paint; r=jgilbert DONTBUILD 2012-10-18 21:40:32 +13:00
Nicholas Cameron
c6451f58a1 Back out changeset db4fd6efba17 for wrong bug number r=me 2012-10-18 21:39:15 +13:00
Chris Jones
f085790e09 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
40b388f762 Bug 803518; add Painted() to BasicShadowableCanvasLayer::Paint; r=jgilbert
--HG--
extra : rebase_source : 2cad76436370ec2bf1d52208a732e638e62435d5
2012-10-18 11:17:32 +13:00
Matt Woodrow
c266c7fcf4 Bug 802321 - Use FuzzyEquals to compare matrices in LayerTreeInvalidation. r=roc 2012-10-17 21:00:00 +13:00
Benoit Girard
cfdf0a021b Back out b7f31a736800 for mochitest failures
--HG--
extra : rebase_source : 9f77f07db004fe11a20533c0ad017cef825a1a8b
2012-10-15 16:57:43 -04:00
Benoit Girard
6fc234d810 Back out d5496f32f2e4 for mochitest failures
--HG--
extra : rebase_source : 1e0caa0ae6d2c1bec971fde75c348f69e6cc63fe
2012-10-15 16:57:06 -04:00
Benoit Girard
7278b49e9c 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
c78c87a1ca back out 621cfd13ceaf for build failures 2012-10-15 13:34:42 -04:00
Matt Joras
db700742e9 Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar 2012-10-15 13:02:21 -04:00
Benoit Girard
ec26b16506 Bug 796117 - New Mobile tilestore tiles will now replace equivalent tiles. r=Cwiiis 2012-10-12 17:50:08 -04:00
Oleg Romashin
5aa9617314 Bug 801460 - IDXGIFactory2 not declared build errors with --enable-metro. r=bas.schouten 2012-10-14 23:19:13 -07:00
Chris Lord
dca6278f92 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
dba95137af 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
5bf1712318 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
fcce8cbd82 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
58b2b67062 Merge mozilla-central to mozilla-inbound 2012-10-12 12:22:14 +01:00
Ed Morley
730f7084d0 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-10-12 11:59:59 +01:00
Nicholas Cameron
ab7f6035bf Bug 734668; remove Thebes canvas. r=roc
--HG--
extra : rebase_source : 57b08c33f72cd611deb30dc1639060a719747849
2012-10-12 22:42:51 +13:00
Chris Jones
b00b1e25b0 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
07b8aa36d6 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
5a7e84e7fe Bug 795594 - Add workaround for MSVC x64 compiler bug. r=roc 2012-10-10 15:17:30 +09:00
Edwin Flores
efd294e673 Bug 794061 - Let OMX hardware decoded video frames be copied to canvas r=kanru 2012-10-09 17:06:35 +13:00
Ed Morley
29308c09dd Bug 798419 - Fix incorrect spellings of success(ful) in test output; r=me 2012-10-05 17:48:15 +01:00
Chris Lord
cea8d6a6c4 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
af307e1729 Bug 724666 - Add pref for accelerated canvas on mac. r=jrmuizel 2012-07-31 18:48:40 -04:00
Nicholas Cameron
56e57fe121 Bug 796182; fix invalidation on Mac with OMTC; r=cjones 2012-10-04 20:45:48 +13:00
Chris Jones
461d5e2250 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
adcf7e6a53 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
b99559ce8f 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
1e2b3a8245 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
5a509f3cc7 Merge m-c to inbound. 2012-10-03 22:24:20 -04:00
Ryan VanderMeulen
c7df9c8a33 Backout 0cd12dcf7f8f, 5ff5e81e6de6, and 0ae09da96f63 (bug 740580) due to bug 797391. 2012-10-03 22:13:14 -04:00
Benoit Girard
4ac759dafb Bug 797359 - Increase size of tile debug overlay. r=Cwiiis 2012-10-03 10:56:41 -04:00
Benoit Girard
27b65fc354 Bug 796939 - Don't use the SinglePaintBuffer if only painting one tile. r=Cwiis 2012-10-03 10:28:04 -04:00
Benoit Girard
748056404b 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
a03cdf3a7b Bug 797393 - Fix FrameMetrics == operator. r=roc 2012-10-03 19:51:38 -04:00
Ehsan Akhgari
7d3a3034c2 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
043258e439 Bug 797604 - Make floor_div in TiledLayerBuffer.h static inline; r=jrmuizel 2012-10-03 18:50:20 -04:00
Chris Jones
263dc7d01e Back out bug 790505 for leaking 2012-10-03 00:21:08 -07:00
Chris Jones
42d62c9836 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
b65e8574f8 Bug 740580 - Add support for Azure DrawTargets to BasicLayers. r=Bas 2012-10-02 22:09:12 -04:00
Benoit Girard
8be01d10c3 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
5d2d37d5fb Back out 17f942846b9f (bug 795811) for causing startup crashes. 2012-10-02 01:29:53 -07:00
David Zbarsky
cc5f5cf37b 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 (陳侃如)
5c4f1982a1 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