Commit Graph

5175 Commits

Author SHA1 Message Date
Mason Chang
a2d6748143 Bug 552020. Part 2. Enable Vsync Profiler Markers across platforms. r=benwa 2014-11-14 08:31:04 -08:00
Kartikaya Gupta
2d6a90bc16 Bug 1090398 - Require APZC target confirmation before input blocks are ready for handling. r=botond
For proper hit-testing we need to deal with situations where the initial touch
input falls on a dispatch-to-content region of an APZC, and the main thread
later tells us that it actually hit another APZC. This patch allows input blocks
to have an "unconfirmed" APZC target for the initially-found target that can
then be replaced with a different target. Input blocks without a confirmed
target are not ready for processing.
2014-11-14 07:40:15 -05:00
Kartikaya Gupta
c863f93511 Bug 1090398 - Distinguish the various outcomes of APZ hit testing more explicitly. r=botond
Previously we output of APZ hit testing was an APZC instance and an "in
overscroll" flag. Now we need to also distinguish between the hit region and the
dispatch-to-content region for an APZC, so this patch introduces an enum that
makes this more explicit.
2014-11-14 07:40:15 -05:00
Kartikaya Gupta
f04a46f6fa Bug 1090398 - Workaround for scrollinfo layers not yet having event regions set up correctly. r=botond
Until bug 1082594 is fixed, the area occupied by inactive scrollable subframes
don't get added to their layer's dispatch-to-content region. Therefore the APZ
code doesn't know what area corresponds to the subframe, even though it knows
there is a subframe because of the scrollinfo layer. This change inserts a small
workaround to deal with the scrollinfo layers specially, so that the composition
bounds from the scrollinfo layer is used to obtain the area. Once bug 1082594
is fixed this can probably be removed.
2014-11-14 07:40:15 -05:00
Kartikaya Gupta
ef3e0582eb Bug 1090398 - Small refactoring that adds ParentLayerPixel::ToUntyped. r=botond 2014-11-14 07:40:14 -05:00
Kartikaya Gupta
394a46d78d Bug 1090398 - Add support for using the layer event regions for hit testing. r=botond
When the event-regions are provided by layout, use them to populate the APZ-side
hit testing regions. The existing code is still used when event-regions are not
provided by layout.
2014-11-14 07:40:14 -05:00
Kartikaya Gupta
6a591da0b8 Bug 1090398 - Use EventRegions objects instead of nsIntRegions for tracking APZ hit-test areas. r=botond
This simply swaps out the existing nsIntRegion used in APZ hit-testing for
an EventRegion object. The dispatch-to-content region inside the EventRegions
is kept empty, and there are no functional changes here.
2014-11-14 07:40:14 -05:00
Carsten "Tomcat" Book
0627ebf5ec Backed out changeset 80f873bf8adc (bug 1036682) for test bustage 2014-11-14 12:32:47 +01:00
Nicolas Silva
6322eded61 Bug 1036682 - Check that the ipdl connection is not lost before sending messages. r=bjacob 2014-11-14 11:25:16 +01:00
Carsten "Tomcat" Book
9a3e3d4bb8 Backed out changeset 48667a14f94d (bug 1092360) for test bustage / crashes on a CLOSED TREE 2014-11-14 08:14:22 +01:00
Benoit Girard
c0cfe730fd Bug 1092360 - Avoid redundant framebuffer switches. r=jrmuizel 2014-11-12 17:39:17 -05:00
Matt Woodrow
1cf5fa276f Bug 1097441 - Followup bustage fix on a CLOSED TREE 2014-11-14 17:30:02 +13:00
Matt Woodrow
b3a148dcdd Bug 1097441 - Initialize mSize on BufferTextureHost. r=nical 2014-11-13 10:44:42 +13:00
Nicholas Nethercote
bdbe90d931 Bug 1098185 - Initialize some more fields in ShadowLayerForwarder when Valgrind is enabled. r=mattwoodrow.
--HG--
extra : rebase_source : 0063948d7a657421005535c8faad68e69b1a5fcf
2014-11-13 01:15:25 -08:00
Jeff Muizelaar
3b935d0a21 Bug 1089364. Avoid trying to resize the swap chain to a negative size. r=bas
This was causing GetBuffer to return DXGI_ERROR_INVALID_CALL

--HG--
extra : rebase_source : 49e62fd5dda1e28268218cffca4ea1ce7af1b6ea
2014-11-13 10:10:48 -05:00
Jeff Muizelaar
ae06ab96a4 Bug 1097877. Move GLBlitTextureImageHelper from gfx/gl to gfx/layers/opengl. r=nical
The only user is in layers/opengl. This is needed to do better state tracking
in the compositor.

--HG--
rename : gfx/gl/GLBlitTextureImageHelper.cpp => gfx/layers/opengl/GLBlitTextureImageHelper.cpp
rename : gfx/gl/GLBlitTextureImageHelper.h => gfx/layers/opengl/GLBlitTextureImageHelper.h
extra : rebase_source : bba00cbfac9253ca933721659dadbda2bfbe65c5
2014-11-10 14:49:05 -05:00
James Willcox
a11a769191 Bug 1086693 - Part 6: Use generated bindings for AndroidMediaCodec and AndroidSurfaceTexture r=blassey,gcp 2014-11-13 12:47:24 -06:00
Benoit Girard
48140f14fe Bug 1094442 - Part 2: Adjust tile size to the stride of the gralloc buffers. r=kats
--HG--
extra : rebase_source : d3386ee007d6429b81aa6d3ffe6c518fb67c7d6a
2014-11-12 17:55:13 -05:00
Benoit Girard
8a1c4934f8 Bug 1094442 - Part 1: Refactor how tile w/h is queried r=kats
--HG--
extra : rebase_source : 70ef00318a718e2ce3149955d2908615d6125cf3
2014-11-12 17:54:29 -05:00
Sotaro Ikeda
4a33624da4 Bug 1091777 - Add TextureClient recycling to CairoImag r=nical 2014-11-13 07:53:49 -08:00
Botond Ballo
27647aabec Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats 2014-11-10 14:35:11 -05:00
Botond Ballo
2124b8b94c Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Botond Ballo
08963b106d Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
This makes APZ behave nicely with most uses of a css transform:scale.

Summary of changes:
  - FrameMetrics::mCumulativeResolution now includes the css-driven resolution
    in addition to the pres-shell resolution.
  - Displayports are now stored in Screen pixels rather than Layer pixels.
    This is what we want anyways (as we'd like the displayport size to remain
    constant as a fraction of the screen size), but it was necessary to make
    this change as part of this patch because continuing to store them in
    Layer pixels in the presence of a css-driven resolution would have
    required a bunch of infrastructure to implement correctly.

Remaining work:
  - Layout painting a scrollable layer at a resolution different from the
    scale induced by the css transform causes problems. These will go away
    with bug 1076192.
  - Different resolutions on the x and y axes are not supported. This is
    tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Douglas Crosher
563e91e13c Bug 1021367 - Assertion failure in GetShaderConfigFor. r=nical 2014-06-09 20:10:28 +10:00
Carsten "Tomcat" Book
f8a9a0cf8d Backed out changeset fbb9dc943109 (bug 1076163) for Android 4.0 Crashes on a CLOSED TREE 2014-11-13 11:47:57 +01:00
Carsten "Tomcat" Book
b4345a9bb4 Backed out changeset 71fe4233208a (bug 1076163) 2014-11-13 11:47:35 +01:00
Carsten "Tomcat" Book
5b163a6b8b Backed out changeset a96930f1e26b (bug 1055741) 2014-11-13 11:47:31 +01:00
Botond Ballo
c54c9d42eb Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats
--HG--
extra : rebase_source : af7323668fb54079e121755660da2121bec3d76b
2014-11-10 14:35:11 -05:00
Botond Ballo
2105a1529d Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Botond Ballo
df8b0f8a7a Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
This makes APZ behave nicely with most uses of a css transform:scale.

Summary of changes:
  - FrameMetrics::mCumulativeResolution now includes the css-driven resolution
    in addition to the pres-shell resolution.
  - Displayports are now stored in Screen pixels rather than Layer pixels.
    This is what we want anyways (as we'd like the displayport size to remain
    constant as a fraction of the screen size), but it was necessary to make
    this change as part of this patch because continuing to store them in
    Layer pixels in the presence of a css-driven resolution would have
    required a bunch of infrastructure to implement correctly.

Remaining work:
  - Layout painting a scrollable layer at a resolution different from the
    scale induced by the css transform causes problems. These will go away
    with bug 1076192.
  - Different resolutions on the x and y axes are not supported. This is
    tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Ryan VanderMeulen
289fc4870b Backed out changeset 92295f515d2d (bug 1091777) for bustage. 2014-11-12 21:09:40 -05:00
Sotaro Ikeda
34dd2a5f5b Bug 1091777 - Add TextureClient recycling to CairoImag r=nical 2014-11-12 17:47:10 -08:00
Sotaro Ikeda
c82676630f Bug 1095639 - Re-enable acquire fence delivery on gonk r=nical 2014-11-12 07:55:31 -08:00
Kartikaya Gupta
7f62901778 Bug 1091296 - When applying the APZ transform on a layer, make sure not to clobber any existing OMTA transform. r=mattwoodrow
--HG--
extra : rebase_source : 9662fbdea917d63a1205660979cbb5c6f861ba02
2014-11-11 10:54:02 -05:00
Kartikaya Gupta
5f8e28d976 Bug 1091296 - Remove the redundant code for clearing async transforms per frame of composition. r=mattwoodrow
We already reset the shadow transform to the layer transform in
SetShadowProperties() before compositing every frame, so this is redundant.

--HG--
extra : rebase_source : bef51e6a918ffaab134a4b53fb6f2ec6c45d9d6d
2014-11-11 10:53:57 -05:00
Kartikaya Gupta
59e09f0613 Bug 1091296 - Refactor the pre- and post-scale cancellation code into a helper method. r=mattwoodrow
--HG--
extra : rebase_source : c06309a16a13673eb59bb98c9dfd4d5c4846aad5
2014-11-11 10:53:44 -05:00
Brian Birtles
50be117679 Bug 1095315 - Fix the order of applying pending updates and getting the effective transform in BasicLayerManager; r=mattwoodrow 2014-11-11 11:01:28 +09:00
Kartikaya Gupta
985540ecef Bug 1072093 - Support progressive-paint on OS X 10.7 or later. r=BenWa 2014-11-07 14:17:14 -05:00
Kartikaya Gupta
0d8a3614cc Bug 1093686 - Add some debug logging code for PositionedEventTargeting.cpp. r=roc 2014-11-06 08:05:51 -05:00
Milan Sreckovic
2d3468d332 Bug 1092262 - Doxygen docs for APZ prefs. r=kats 2014-11-05 11:04:32 -05:00
Andrew Osmond
8e71e7800f Bug 1077301 - Ensure EGL images are released when destroying the texture. r=nical 2014-11-05 08:17:00 +01:00
Sotaro Ikeda
b299248ef3 Bug 1093728 - Add AddTextureClient() to CanvasClientSharedSurface::Update() r=nical 2014-11-05 08:15:48 -08:00
Robert O'Callahan
628c45fc97 Bug 1080205. Part 2: Add test. r=tn
--HG--
extra : rebase_source : 9f8a41ae255e132e572fdb5012f851554fde69d9
2014-10-30 16:33:55 +13:00
Robert O'Callahan
bd30ce7c71 Bug 1083635. Part 5: ClientLayerManager::BeginTransactionWithTarget should assert if we're not going to take a snapshot. r=mattwoodrow
--HG--
extra : rebase_source : 07cea353735743670cc82031bcbe738932f56829
2014-10-21 10:32:10 +13:00
Benoit Girard
0470baff84 Bug 1089380 - Remove ClipRectInLayersCoordinates. r=mattwoodrow
--HG--
extra : rebase_source : d20c08c804f45f2a6baee9063d0e73bf755054ae
2014-10-31 16:34:30 -04:00
Phil Ringnalda
810325008f Back out 293c48ec288c (bug 1086642) for Android and OS X 10.8 ONLY NOT SEEN ON 10.6 bustage
CLOSED TREE
2014-11-03 20:44:19 -08:00
Matt Woodrow
8b2961342c Bug 1086642 - Simplify invalid reigon by area. r=jrmuizel 2014-11-04 15:12:06 +13:00
Benoit Girard
4cb4693be0 Backout 60fe2b1ab1ba for split-opacity-layers-1.html reftest failure.
--HG--
extra : rebase_source : 83a753f924f85b90e2d5ad07877dc3ebdbc1b8df
2014-11-03 13:37:54 -05:00
Benoit Girard
16fdd79d33 Bug 1089380 - Remove ClipRectInLayersCoordinates. r=mattwoodrow
--HG--
extra : rebase_source : 6793ed284fa8190c0d4e43e189ca4eb2d020d4f0
2014-10-31 16:34:30 -04:00
Jacek Caban
4129770618 Bug 1092130 - Fixed build errors found by mingw after bug 1076698 landed (-Werror=missing-braces errors). r=cpearce 2014-11-03 10:28:52 +01:00