Commit Graph
648 Commits
Author SHA1 Message Date
Jeff Muizelaar d3bf2d4324 Bug 1048916. Convert a bunch of layers from nsAutoPtr to UniquePtr. r=roc
This makes the ownership of LayerProperties more clear.
2014-08-25 11:09:39 -04:00
Kartikaya Gupta 2383d93a79 Bug 1055605 - Replace MOZ_ANDROID_OMTC with MOZ_WIDGET_ANDROID. r=BenWa 2014-08-22 15:26:56 -04:00
Benoit Girard 87c33450dd Bug 1055821 - Add layer construction logging. r=mattwoodrow 2014-08-22 11:53:24 -04:00
David Zbarsky a219682afb Bug 952977: Switch some uses of gfx3DMatrix in nsLayoutUtils to Matrix4x4 r=nical 2014-08-22 09:40:02 -04:00
Ed Morley 670fe0eaee Backed out changeset 3a61a6eb04d6 (bug 1055821) for build failures 2014-08-22 14:12:01 +01:00
Benoit Girard 1f7c4d6f00 Bug 1055821 - Add layer construction logging. r=mattwoodrow 2014-08-21 13:46:07 -04:00
Markus Stange ea4ce0934f Bug 1055585 - Call nsDisplayList::SetNeedsTransparentSurface when adding a display item that NeedToForceTransparentSurfaceForItem to a layer. r=roc 2014-08-20 17:25:19 +02:00
Matt Woodrow 1760f4f074 Bug 1019693 - Always use tiled thebes layers when we're a descendant of a layer with a critical display port so that the low-resolution drawing area is handled correctly. r=tn 2014-08-08 09:12:01 +12:00
Markus Stange 25139e294b Bug 1050471 - Reset the valid region of a thebes layer if it gets optimized away to a ColorLayer or an ImageLayer. r=roc 2014-08-08 12:47:32 +02:00
Matt Woodrow 38a3e36018 Bug 1045864 - Disable layerized background-attachment:fixed when we're using a software compositor. r=roc 2014-08-05 15:25:00 +12:00
David Zbarsky f7b8b02ee4 Bug 952977: More gfx::Matrix cleanup in FrameLayerBuilder r=nical 2014-08-01 08:31:49 -04:00
Robert O'Callahan 96cbb1ed02 Bug 1042104. Part 2: Set nsDisplayTransform's visible rect appropriately if we're prerendering it. r=tn 2014-07-30 00:09:35 +12:00
Robert O'Callahan bea9df65ce Bug 1042104. Part 1: Cache prerender flag in nsDisplayTransform. r=tn 2014-07-30 00:09:35 +12:00
Robert O'Callahan 6065931bc6 Bug 1041530. Be more careful about contributing opaque areas to the window region. r=mattwoodrow 2014-07-22 23:14:40 +12:00
Botond Ballo 3cafba9791 Bug 989403 - Invalidate inactive layer's region correctly in the presence of a resolution. r=roc 2014-07-25 17:16:29 -04:00
Wes Kocher e230d2b1cf Backed out 11 changesets (bug 952977) for reftest-no-accel failures
Backed out changeset ea2367c19da3 (bug 952977)
Backed out changeset c401c8748eb3 (bug 952977)
Backed out changeset a93e9ff1043b (bug 952977)
Backed out changeset 765b7f67163e (bug 952977)
Backed out changeset 3d8cf4f5777f (bug 952977)
Backed out changeset 8993710a3ab3 (bug 952977)
Backed out changeset 1298c39b745a (bug 952977)
Backed out changeset be0b899fbe5e (bug 952977)
Backed out changeset f69bea1f1feb (bug 952977)
Backed out changeset 1a745777f07e (bug 952977)
Backed out changeset 5ad1d18dfe17 (bug 952977)
2014-07-29 18:58:46 -07:00
David Zbarsky 101c7dfea4 Bug 952977: More gfx::Matrix cleanup in FrameLayerBuilder r=nical 2014-07-29 19:18:52 -04:00
Ed Morley 8ab7d9618d Backed out changeset ed7a32143aeb (bug 1041530) for OS X debug mochitest failures 2014-07-24 16:11:47 +01:00
Robert O'Callahan 9d9f83d92b Bug 1041530. Be more careful about contributing opaque areas to the window region. r=mattwoodrow 2014-07-22 23:14:40 +12:00
Matt Woodrow 840f46c628 Bug 1041894 - Make FindOpaqueBackgroundColorFor check the DisplayItemClip of items before selecting them. r=roc 2014-07-23 18:12:08 +12:00
Matt Woodrow b947e04a0c Bug 1039926 - Exclude clips that have been converted to a mask layer from invalidation. r=roc 2014-07-23 18:03:52 +12:00
Matt Woodrow ca414afb15 Bug 1039926 - Refactor display list invalidation so that the majority happens after we've finished assigning items to ThebesLayers. r=roc 2014-07-23 18:03:24 +12:00
Matt Woodrow c634d8bbcd Bug 1042423 - Part 3: Don't build inactive mask layers. r=roc 2014-07-23 17:21:35 +12:00
Matt Woodrow 166e418d3a Bug 961249 - Don't propagate component alpha layer flattening across force active layers and avoid unnecessary invalidations. r=roc 2014-07-23 10:53:37 +12:00
Timothy Nikkel 2f6dffdc88 Bug 1041510. We should try to flatten display items that don't have children too. r=roc
Scroll info layers in particular never have children and we want to flatten them.
2014-07-22 15:37:26 -05:00
Kartikaya Gupta e480e44f68 Bug 1040906 - Replace the out-param on matrix conversion helpers with a return value. r=Bas 2014-07-22 09:12:14 -04:00
Robert O'Callahan a787b92103 Bug 1022612. Part 45: Increase region complexity limit for mDrawAboveRegion/mVisibleAboveRegion to fix scroll-rounding.html test failure. r=mattwoodrow 2014-07-17 15:41:06 +12:00
Robert O'Callahan 57770a1fe3 Bug 1022612. Part 43: Fix up SuppressComponentAlpha to allow component alpha in inactive layers over opaque parts of the chrome window. r=mattwoodrow 2014-07-15 16:23:37 +12:00
Robert O'Callahan 21b91ec109 Bug 1022612. Part 42: Add opaque regions of ThebesLayer content to the "exclude glass" region. r=mattwoodrow 2014-07-14 12:46:13 +12:00
Robert O'Callahan aa0649262d Bug 1022612. Part 41: Use itemType instead of calling GetType() again. r=mattwoodrow 2014-07-11 13:18:10 +12:00
Robert O'Callahan d26d89d408 Bug 1022612. Part 40: Restrict visible rect of 3D-transformed layers before converting to nsIntRect. r=mattwoodrow 2014-07-11 13:17:47 +12:00
Robert O'Callahan c40683e83e Bug 1022612. Part 34: Skip RecomputeVisibilityForItems in inactive layers. r=mattwoodrow
RecomputeVisibilityForItems for the retained ThebesLayer already recomputes
visibility for all items in that layer, including items nested in other items.
2014-06-23 16:24:14 +12:00
Robert O'Callahan c3ca54a25d Bug 1022612. Part 31: Perform layer-level occlusion culling in FrameLayerBuilder. r=mattwoodrow
We need this to avoid constructing and painting unncecessarily large
ThebesLayers.
2014-06-23 16:24:00 +12:00
Robert O'Callahan 686672cfd0 Bug 1022612. Part 28: Make nsLayoutUtils::GetScrollableFrameFor return null for non-scrolled-frames. r=mattwoodrow 2014-07-09 10:12:41 +12:00
Robert O'Callahan 89460546b7 Bug 1022612. Part 27: Make FrameLayerBuilder responsible for setting all layer visible regions. r=mattwoodrow
Calling Layer::SetVisibleRegion multiple times in a transaction can result in
unnecessary IPC traffic.

This patch removes Intersect(childGfxBounds). This is only needed to
restrict the visible region to something sane for 3D transforms, and this will
be fixed up in a later patch.
2014-06-18 15:12:55 +12:00
Robert O'Callahan f2d23aeeea Bug 1022612. Part 21: Remove DidComputeVisibility checking. r=mattwoodrow 2014-06-09 16:48:01 +12:00
Robert O'Callahan 9e2dab2fef Bug 1022612. Part 20: Do the business. r=mattwoodrow 2014-06-09 16:48:01 +12:00
Robert O'Callahan dee0cd4561 Bug 1022612. Part 15.5: Use GetVisibleRectForChildren instead of GetVisibleRect. r=mattwoodrow 2014-07-15 23:49:38 +12:00
Robert O'Callahan 2e0072cfe2 Bug 1022612. Part 14: Don't compute a final transparent region anymore. r=mattwoodrow
Computing this via FrameLayerBuilder is some work and we don't really have to.

SuppressComponentAlpha will be true in more cases. This will be OK as long as
text in the chrome window is over opaque content in the same ThebesLayer. We
will miss some edge cases such as text in 'opacity' with no opaque background.
This should be OK.
2014-06-09 16:48:00 +12:00
Robert O'Callahan e4425f16a2 Bug 1022612. Part 13: Set mDidComputeVisibility in ProcessDisplayItems. r=mattwoodrow 2014-07-07 17:46:28 +12:00
Robert O'Callahan c44679289c Bug 1022612. Part 12: Propagate NeedsTransparentSurface in ProcessDisplayItems. r=mattwoodrow 2014-06-09 16:48:00 +12:00
Robert O'Callahan 16c125cbdd Bug 1022612. Part 11: Set opaque flag on nsDisplayList if we find an opaque item that covers the whole list. r=mattwoodrow
This is less general than what nsDisplayItem::ComputeVisibility does. This means
if multiple opaque items together cover the list bounds, but not individually,
we won't mark the list as opaque. I think that should be OK.
2014-06-09 16:48:00 +12:00
Robert O'Callahan a521d8328a Bug 1022612. Part 10: Implement merging and flattening in ProcessDisplayItems. r=mattwoodrow
BuildContainerLayerFor now has to be able to mutate the passed-in display item
list.
2014-06-09 16:48:00 +12:00
Matt Woodrow 1fdc226af0 Bug 1039145 - Part 1: Clean up AreComponentAlphaLayersEnabled. r=roc 2014-07-18 18:48:23 +12:00
Matt Woodrow 48effa20b5 Bug 1023677 - Don't flatten active transform layers. r=roc 2014-07-18 18:48:23 +12:00
Matt Woodrow a95a955d3d Bug 1023677 - Don't set mSupportComponentAlphaChildren unless we actually have them. r=roc 2014-07-18 18:48:23 +12:00
Matt Woodrow 7c92e0ade7 Bug 1023677 - Don't repeat layer building if there was only a single layer. r=roc 2014-07-18 18:48:22 +12:00
Carsten "Tomcat" Book d10cdacc30 Backed out changeset 3c5f96882e6c (bug 1023677) 2014-07-18 10:45:29 +02:00
Carsten "Tomcat" Book ae03105a25 Backed out changeset 84df2aaf5e2a (bug 1023677) 2014-07-18 10:45:27 +02:00
Carsten "Tomcat" Book 081b71c63e Backed out changeset d03cb12a166e (bug 1023677) 2014-07-18 10:45:26 +02:00