Commit Graph

211 Commits

Author SHA1 Message Date
Nicholas Cameron
99fe577cb6 Bug 861727. Refactor CompositorParent a bit. r=BenWa
--HG--
rename : gfx/layers/ipc/CompositorParent.cpp => gfx/layers/composite/AsyncCompositionManager.cpp
rename : gfx/layers/ipc/CompositorParent.h => gfx/layers/composite/AsyncCompositionManager.h
2013-04-28 18:46:30 +12:00
Kartikaya Gupta
ec0ecf5c78 Bug 839641 - Add a syncFrameMetrics code path to push viewport changes from APZC to Java. r=Cwiiis, BenWa 2013-04-26 13:26:39 -04:00
Chris Lord
27ca95544b Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-25 18:47:08 +01:00
Nicolas Silva
09da7b8c04 Bug 856079 - Merge ShadowLayer and LayerComposite (keeping the later). r=nrc 2013-04-25 18:25:33 -04:00
Ryan VanderMeulen
677c5b5128 Backed out changeset 684a5ca2efb7 (bug 858969) for Android M3 failures.
CLOSED TREE
2013-04-25 10:56:54 -04:00
Chris Lord
4852ece00b Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-24 17:06:23 +01:00
Ryan VanderMeulen
39bd320f11 Backed out changeset 4b7de1f2b4a0 (bug 856079) for various test failures.
CLOSED TREE
2013-04-24 11:28:05 -04:00
Nicolas Silva
b614d323b6 Bug 856079 - Merge ShadowLayer and LayerComposite (keeping the later). r=nrc 2013-04-24 15:40:26 -04:00
Nicolas Silva
391cf268bb Bug 863324 - Rename PLayers into PLayerTransaction, r=jrmuizel
--HG--
rename : gfx/layers/ipc/ShadowLayersChild.cpp => gfx/layers/ipc/LayerTransactionChild.cpp
rename : gfx/layers/ipc/ShadowLayersChild.h => gfx/layers/ipc/LayerTransactionChild.h
rename : gfx/layers/ipc/ShadowLayersParent.cpp => gfx/layers/ipc/LayerTransactionParent.cpp
rename : gfx/layers/ipc/ShadowLayersParent.h => gfx/layers/ipc/LayerTransactionParent.h
rename : gfx/layers/ipc/PLayers.ipdl => gfx/layers/ipc/PLayerTransaction.ipdl
2013-04-24 14:42:40 -04:00
Kartikaya Gupta
57ae4c29c2 Bug 860613 - Remove CompositorParent::GetDefaultPanZoomController (patch from romaxa/tatiana). r=BenWa 2013-04-17 17:39:12 -04:00
Nicolas Silva
8a892ea6fb Bug 860463 - Ensure that we propagate Destroy() in the shadow layer tree on CompositorParent::ActorDestroy. r=nrc 2013-04-11 06:14:29 -04:00
Bas Schouten
341383c413 Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.

Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 09:20:52 +00:00
Chris Lord
e2025aa8f2 Bug 716403 - Offset fixed layers so the toolbar doesn't obscure them. r=nrc,kats
Offset fixed layers in the compositor so that the toolbar in Firefox for Android
doesn't obscure them. This does not affect layout, so input on the elements in
said layers will appear broken.
2013-03-07 10:17:33 +00:00
Ryan VanderMeulen
893d8d351a Backed out 9 changesets (bug 716403) for Android 4.0 robocop bustage on a CLOSED TREE. 2013-03-06 16:11:05 -05:00
Chris Lord
3bee7155b6 Bug 716403 - Offset fixed layers so the toolbar doesn't obscure them. r=nrc,kats
Offset fixed layers in the compositor so that the toolbar in Firefox for Android
doesn't obscure them. This does not affect layout, so input on the elements in
said layers will appear broken.
2013-03-06 16:55:59 +00:00
Ed Morley
2e90a500bf Backed out changeset cacb9f3ee44d (bug 840693) 2013-03-04 14:37:43 +00:00
Anthony Jones
fffa15107b Bug 840693 - Change to using gfx:: types in AsyncPanZoomController; r=cjones 2013-03-04 13:25:26 +13:00
Ryan VanderMeulen
5d849d0751 Backed out 8 changesets (bug 716403) for frequent Android mochitest-8 failures on a CLOSED TREE. 2013-03-01 16:09:59 -05:00
Chris Lord
a02bd9b3ba Bug 716403 - Offset fixed layers so the toolbar doesn't obscure them. r=nrc,kats
Offset fixed layers in the compositor so that the toolbar in Firefox for Android
doesn't obscure them. This does not affect layout, so input on the elements in
said layers will appear broken.
2013-03-01 15:46:33 +00:00
Kartikaya Gupta
61377e6e55 Bug 832508 - When resuming Fennec and re-recreating the surface, force a first-paint notification from the compositor. r=Cwiiis 2013-02-04 15:13:17 -05:00
Anthony Jones
8edb03d1df Bug 818482 - Remove rounding of scroll compensation in AZPC. r=roc 2013-01-12 15:24:14 -05:00
Matt Woodrow
f887c4c968 Bug 818575 - Make TransformShadowTree transform all descendant scrollable layers instead of just the first. r=roc 2013-01-10 22:10:20 +13:00
Chris Lord
cf7e552096 Bug 827844 - Fix flickering when layout changes on Firefox/android. r=kats,bgirard
Fix flickering that can occur when the surface size changes due to a layout
change (such as the virtual keyboard appearing/disappearing) on Android.
2013-01-10 17:32:43 +00:00
Nicholas Cameron
a59793e4b2 Backout bug 818575
--HG--
extra : rebase_source : 0a06e4594a98b17befff7d58cd68faa693f3fd91
2013-01-09 18:06:35 +01:00
Kartikaya Gupta
a752c5511f Bug 826300 - Don't block on waiting for a valid surface when trying to resume the compositor; allow resuming to fail gracefully. r=snorp,BenWa 2013-01-10 11:21:10 -05:00
Jeff Muizelaar
0b0dfdfd7a Bug 818575 - Only sync viewport for primary layer. r=cjones
--HG--
extra : rebase_source : 3221f8a45c9fce9cc51d5f59a19ee50886ff892f
2013-01-09 16:49:48 +01:00
Matt Woodrow
6b54cf1a5a Bug 818575 - Make TransformShadowTree transform all descendant scrollable layers instead of just the first. r=roc
--HG--
extra : rebase_source : 2befc9553af0be20643940e8bf71c0f71d13403e
2013-01-10 22:10:20 +13:00
Ed Morley
9da1e1ea9b Backout 645bf43f8f14 (bug 818575) for crashes on Android on a CLOSED TREE 2013-01-10 13:17:12 +00:00
Matt Woodrow
65e2792915 Bug 818575 - Make TransformShadowTree transform all descendant scrollable layers instead of just the first. r=roc 2013-01-10 22:10:20 +13:00
Anthony Jones
d5a5ad8082 Bug 811950 - Refactoring to use gfxPoint and gfxSize more. r=cjones 2012-12-23 10:51:39 -05:00
Chiajung Hung
cb2c3eaf66 Bug 805939: Wait for shadow trees to update orientation before recompositing. r=cjones 2012-11-22 10:40:57 +08:00
Mark Hammond
014d7213d5 Backout cf585138ff25 (bug 805939) for Windows build bustage on a CLOSED TREE 2012-12-21 15:30:02 +11:00
Chiajung Hung
f1e80feb7a Bug 805939: Wait for shadow trees to update orientation before recompositing. r=cjones 2012-11-22 10:40:57 +08:00
Oleg Romashin
a8e1a54334 Bug 823066 - Provide API for CompositorParent to use custom AsyncPanZoomController. r=drs
--HG--
extra : rebase_source : b2bfaa468261d0a270719215c2bf89c361d0145e
2012-12-20 14:37:20 -08: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
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 Lord
bb3f3cc9cd Bug 794200 - Progressive draw tiles in the direction of scrolling. r=bgirard
When scrolling downwards, make sure to fill in tiles from the top, upwards
from the bottom, left from the right and right from the left.
2012-09-26 21:41:56 +01:00
Matt Woodrow
69d5c7c425 Bug 779940: Meter layers transactions in addition to composites. r=cjones 2012-08-07 14:41:29 +12:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
David Zbarsky
06ea1f66f2 Bug 778519 - Don't include Layers.h everywhere Part 2 r=cjones 2012-07-30 17:42:26 -07:00
Oleg Romashin
d4547e7d36 Bug 776550 - Provide API to start Compositor Parent with external thread/messageloop. r=cjones 2012-07-25 12:47:01 -07:00
Chris Jones
cbd13d8e9d Bug 776217: Support gecko-implemented screen rotation with omtc. r=roc 2012-07-24 12:01:09 -07:00
Chris Jones
ef35aa58e9 Bug 750977: Implement glue code for asynchronous panning/zooming. r=jlebar,roc,vingtetun
This is a rollup of three separate patches
 - Add nsIDocShell.asyncPanZoomEnabled. r=jlebar
 - Have BrowserElementChild service repaint requests and handle fallback synchronous scrolling (for now). r=jlebar,vingtetun
 - Glue async pan/zoom logic up between compositing, event dispatch, and repaint requests. r=roc

--HG--
rename : b2g/chrome/content/webapi.js => dom/browser-element/BrowserElementScrolling.js
2012-07-19 23:48:27 -07:00
Chris Jones
9af2a80734 Bug 745148, part 9: Hook up the pieces and enable direct compositor. r=roc 2012-07-17 16:59:45 -07:00
Chris Jones
df4d81a2c8 Bug 745148, part 8: Implement the little boilerplate-y bits and pieces needed for cross-process compositor. r=ajuma,BenWa 2012-07-17 16:59:45 -07:00
Chris Jones
52df2c5fbb Bug 745148, part 6: Allow layer trees to be given IDs so that the referent can be used in another context. r=ajuma sr=roc 2012-07-17 16:59:45 -07:00
Chris Jones
30ad2db6df Bug 745148, part 5: Pass the layer tree to ShadowLayersUpdate(). r=ajuma 2012-07-17 16:59:44 -07:00
Nicolas Silva
1ada2b604f Bug 598868: Add support for pushing video frames directly to the compositor thread, bypassing the content thread. r=cjones 2012-07-13 15:38:09 -04:00
Nicolas Silva
049d5a6366 Bug 763234 - Use only one compositor thread with OMTC. r=cjones 2012-07-13 11:25:29 -04:00
Chris Lord
6a63c42f88 Bug 758620 - Respect the Layers' anchor points in CompositorParent. r=ajuma
When asynchronously zooming, respect a Layer's anchor point so that it stays in
the correct position.
2012-06-27 16:44:22 +01:00
Ed Morley
ef4179d2d4 Backout de70e79ced32, ddd519d0767e, 9b952d924953 & 03efce585669 (bug 758620) for reftest failures 2012-06-26 16:13:33 +01:00
Chris Lord
b05770560f Bug 758620 - Respect the Layers' anchor points in CompositorParent. r=ajuma
When asynchronously zooming, respect a Layer's anchor point so that it stays in
the correct position.
2012-06-26 14:43:18 +01:00
Kartikaya Gupta
6435bb7e6d Bug 753444 - Remove device-space page rect from setPageRect as it is not needed. r=jrmuizel 2012-06-13 13:49:40 -04:00
Ali Juma
49da2fba06 Bug 759162 - Part 2: Make CompositorParent::ScheduleResumeOnCompositorThread block until the compositor resumes. r=bgirard 2012-05-29 13:49:03 -04:00
Benoit Girard
3a5ea8ad58 Bug 759181 - Disable COMPOSITOR_PERFORMANCE_WARNING. r=ajuma 2012-05-28 17:28:31 -04:00
Kartikaya Gupta
8a9a864a95 Bug 748384 - Propagate page bounds and CSS page bounds in via compositor. r=Cwiiis,ajuma,mats 2012-05-23 10:51:39 -04:00
Kartikaya Gupta
0f2c633486 Bug 748384 - Back out 330e9c52f9ac, 9ba1078559fe, 2ed39c12d792, f53f05ecacd5 for build bustage. r=bustage 2012-05-23 11:08:19 -04:00
Kartikaya Gupta
6ab5f951cd Bug 748384 - Propagate page bounds and CSS page bounds in via compositor. r=Cwiiis,ajuma,mats 2012-05-23 10:51:39 -04:00
Chris Lord
9c0244da52 Bug 607417 - Reconcile async scrolling for fixed position layers. r=ajuma
Untranslate fixed position layers when doing async scrolling so that they don't
jump about as content re-renders them in the correct place.
2012-05-23 09:36:39 +01:00
Nicholas Cameron
1ee2935580 Bug 753784; allow access to the max texture size from FrameLayerBuilder. r=roc 2012-05-22 19:15:16 -04:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Vladimir Vukicevic
0bbadb8659 b=752368; [android] random black screen when opening links from other apps; r=bgirard,ajuma,kats 2012-05-09 22:32:54 -04:00
Phil Ringnalda
528e055ee2 Back out 3502d9840d98 (bug 752368) for robo* failure 2012-05-09 22:26:52 -07:00
Vladimir Vukicevic
7eaf529b88 b=752368; [android] random black screen when opening links from other apps; r=bgirard,ajuma 2012-05-09 22:32:54 -04:00
Oleg Romashin
dc77036350 Bug 752643 - Make CompositorParent eglSurface setup available for non-android environment. r=ajuma 2012-05-08 12:40:41 -07:00
Ed Morley
87c7ae65b6 Backout 5c35cd6f3ea4 & ba39b0822992 (bug 607417) for native Android R1 failures 2012-05-04 14:26:09 +01:00
Chris Lord
3f3cd94584 Bug 607417 - Reconcile async scrolling for fixed position layers. r=ajuma
Untranslate fixed position layers when doing async scrolling so that they don't
jump about as content re-renders them in the correct place.

--HG--
extra : rebase_source : 709a9b14b5301bb675e118859090e6fb1c0f26f9
2012-05-04 17:04:15 +12:00
Robert O'Callahan
f1052e524a backing out patches for bug 607417 due to build bustage 2012-05-04 17:29:05 +12:00
Chris Lord
5be389c7d7 Bug 607417 - Reconcile async scrolling for fixed position layers. r=ajuma
Untranslate fixed position layers when doing async scrolling so that they don't
jump about as content re-renders them in the correct place.
2012-05-04 17:04:15 +12:00
Oleg Romashin
f05b4ec09d Bug 750276 - Make CompositorParent transforms not android-only. r=ajuma 2012-04-30 17:03:26 -07:00
Oleg Romashin
ee9dee05a5 Bug 748209 - Allow to create useful CompositorParent subclass. r=ajuma 2012-04-24 09:22:36 -04:00
Oleg Romashin
2c8d04d815 Bug 748209 - Allow compositorParent be created in custom Thread. r=ajuma 2012-04-24 09:22:34 -04:00
Ali Juma
45b0527065 Bug 733596 - Tell the compositor about the new surface size on surface change. r=bgirard a=blocking-fennec 2012-04-20 11:46:30 -04:00
Ali Juma
34cf50ec43 Bug 737437 - Post a task to handle compositor destruction. r=bgirard 2012-03-30 15:43:11 -04:00
Phil Ringnalda
e087dc71b6 Back out 7bffc102114e (bug 737437) for Android native talos bustage 2012-03-29 08:26:58 -07:00
Ali Juma
b197ceb6eb Bug 737437 - Destroy the compositor's layer manager before the CompositorChild gets destroyed. r=cjones 2012-03-29 09:59:22 -04:00
Ali Juma
170d63ff3e Bug 735230 - Part 1: Add Pause and Resume messages to PCompositor. r=bgirard 2012-03-28 18:00:10 -04:00
Kartikaya Gupta
f83cb46c1d Bug 731603 - Propagate a layersUpdated flag to Java for robocop use. r=ajuma 2012-03-20 00:06:56 -04:00
Kartikaya Gupta
3e34d0c2b0 Bug 731603 - Propagate the resolution of the painted content into syncViewportInfo as well. r=Cwiiis 2012-03-20 00:05:45 -04:00
Chris Lord
c456a36f39 Bug 732756 - Fix overdrawing of checkerboard. r=kats
Fix overdrawing of the checkerboard layer by letting layers have a concept of
a display-port, and keeping the root layer's display port in track with
Gecko's.
2012-03-17 15:08:22 +00:00
Ryan VanderMeulen
2f1650c3ae Backout d5b66e64cf44 (bug 732756) to see if it fixes Android crashtests. 2012-03-16 17:17:22 -04:00
Chris Lord
7907635f98 Bug 732756 - Fix overdrawing of checkerboard. r=kats
Fix overdrawing of the checkerboard layer by letting layers have a concept of
a display-port, and keeping the root layer's display port in track with
Gecko's.
2012-03-16 16:30:23 +00:00
Ali Juma
32ba162f31 Bug 725095 - Address GFX review comments. r=joe 2012-03-12 16:32:02 -04:00
Ali Juma
06f63c2380 Bug 732091 - Part 5: Make the compositor notify Java when the page size changes or when a first paint occurs. r=bgirard 2012-03-12 11:50:27 -04:00
Ali Juma
06826ece22 Bug 732091 - Part 3: Pass on the isFirstPaint flag from the PresShell to the compositor via the layer manager. r=tnikkel,bgirard 2012-03-12 11:50:15 -04:00
Ali Juma
51b6a7526f Clean up the compositor's transformation calculations. 2012-02-17 17:58:03 -05:00
Benoit Girard
7a39c42f15 remove dead code 2012-02-14 18:36:33 -05:00
Benoit Girard
2abfa0058f Compositor performance warnings
--HG--
extra : rebase_source : e8b2a0f4c4cb69fb88a478750cecc9f21327e018
2012-02-10 18:06:17 -05:00
Ali Juma
54af353fd7 Code cleanup. 2012-02-09 17:39:04 -05:00
Benoit Girard
0fc7c92286 Build fixes and clean up 2012-02-08 12:08:03 -05:00
Patrick Walton
37bd0b7e1d Have the compositor thread manipulate the layer with a display port if there is one 2012-02-07 22:17:54 -08:00
Benoit Girard
02795249cd Limit composition to every 15 ms, may want to try increasing this value 2012-02-06 13:51:33 -05:00
Benoit Girard
15426bdfef Limit composite events to one at a time 2012-02-06 12:38:23 -05:00
Ali Juma
92e59fd959 Add support for pausing/resuming composition from Java. 2012-02-05 13:33:38 -05:00
Patrick Walton
402747340d Stand up async panning and zooming 2012-02-03 23:31:05 -08:00
Patrick Walton
50c7df015c Poke the compositor to composite on a pan or zoom; stub AndroidBridge::GetViewTransform() 2012-02-03 18:35:58 -08:00
Patrick Walton
9159739ff5 Stub ViewTransform code; unbork the viewport size a bit 2012-02-03 16:39:15 -08:00
Ali Juma
38f425cf74 Implement logic needed for simple async scrolling. 2012-02-01 14:31:34 -05:00
Benoit Girard
2a3688a8df Partial work for android OGLSurfaceView
--HG--
extra : rebase_source : 2c6ce362dd859e9f81a5b4490e2451826259a651
2012-01-26 14:23:13 -05:00
Ali Juma
9b8a32266c Address next set of review comments. 2012-01-16 10:31:16 -05:00
Ali Juma
8b5223756e More handling review comments for Bug 711168. 2012-01-10 18:04:21 -05:00
Ali Juma
f4c33e6ca1 Address review comments from Bug 711168.
--HG--
rename : gfx/layers/ipc/ShadowLayersHost.h => gfx/layers/ipc/ShadowLayersManager.h
2012-01-06 17:52:32 -05:00
Ali Juma
af41b90a2a Clean up Compositor destruction. 2011-12-22 10:59:53 -05:00
Ali Juma
e2f8f1561d Clean up 2011-12-20 15:12:54 -05:00
Ali Juma
6117479177 Fix crash when deleting Compositor parent, and change RPC calls to sync calls.. 2011-12-20 10:37:27 -05:00
Ali Juma
07635403cc Composite only when needed. 2011-12-19 13:17:29 -05:00
Benoit Girard
46c36ce8e7 More clean up. Shutdown down a window no longer crashes 2011-12-16 19:21:51 -05:00
Ali Juma
a5bd408df9 Make shadow layer transformations work. 2011-12-15 15:20:06 -05:00
Ali Juma
42f2a7bb6f imported patch hacking 2011-12-15 15:07:25 -05:00
Ali Juma
62c753efee imported patch PCompositorProgress 2011-12-15 15:07:19 -05:00
Benoit Girard
3723d79344 Part A: Setup PCompositor (in progress) 2011-12-12 10:15:57 -05:00