Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Issue 206243003: Simplify CompositingReasonFinder::requiresCompositingForFrame (Closed)

Created:
6 years, 9 months ago by abarth-chromium
Modified:
6 years, 9 months ago
Reviewers:
Ian Vollick, ojan
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink, esprehn
Visibility:
Public.

Description

Simplify CompositingReasonFinder::requiresCompositingForFrame This CL removes an optimization whereby 0x0 iframes wouldn't get a composited layer even if they would otherwise have been composited. This optimization was causing a bunch of awkwardness because it introduced a dependency on layout information in the CompositingReasonFinder, which caused the reason finder to need to set a dirty bit in the RenderLayerCompositor. This CL also prepares us to remove requiresCompositingForFrame into a RenderPart-specific override of additionalCompositingReasons (after https://codereview.chromium.org/197533013/ lands). This CL also changes RenderLayerCompositor::enableCompositingMode to notify iframes when the root layer is destroyed as well instead of relying upon the CompositingReasonFinder to write the dirty bit. R=vollick@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169679

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -41 lines) Patch
M LayoutTests/compositing/iframes/iframe-size-to-zero.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/compositing/iframes/iframe-size-to-zero-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositingReasonFinder.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositingReasonFinder.cpp View 2 chunks +3 lines, -27 lines 0 comments Download
M Source/core/rendering/compositing/RenderLayerCompositor.cpp View 1 chunk +11 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
abarth-chromium
6 years, 9 months ago (2014-03-20 18:05:12 UTC) #1
Ian Vollick
On 2014/03/20 18:05:12, abarth wrote: lgtm!
6 years, 9 months ago (2014-03-20 18:20:15 UTC) #2
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-20 18:22:21 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/206243003/1
6 years, 9 months ago (2014-03-20 18:22:31 UTC) #4
ojan
The 0x0 bit came from https://bugs.webkit.org/show_bug.cgi?id=34009. It seems like some real sites hit this: https://bugs.webkit.org/show_bug.cgi?id=34009#c4. ...
6 years, 9 months ago (2014-03-20 18:43:48 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 19:18:21 UTC) #6
commit-bot: I haz the power
List of reviewers changed. ojan@chromium.org did a drive-by without LGTM'ing!
6 years, 9 months ago (2014-03-20 19:18:22 UTC) #7
abarth-chromium
On 2014/03/20 18:43:48, ojan wrote: > The 0x0 bit came from https://bugs.webkit.org/show_bug.cgi?id=34009. It seems > ...
6 years, 9 months ago (2014-03-20 19:23:43 UTC) #8
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-20 19:23:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/206243003/1
6 years, 9 months ago (2014-03-20 19:23:56 UTC) #10
commit-bot: I haz the power
Change committed as 169679
6 years, 9 months ago (2014-03-20 19:24:28 UTC) #11
ojan
6 years, 9 months ago (2014-03-20 19:33:06 UTC) #12
Message was sent while issue was closed.
On 2014/03/20 19:23:43, abarth wrote:
> On 2014/03/20 18:43:48, ojan wrote:
> > The 0x0 bit came from https://bugs.webkit.org/show_bug.cgi?id=34009. It
seems
> > like some real sites hit this:
> https://bugs.webkit.org/show_bug.cgi?id=34009#c4.
> 
> The world was different then.  Now we run in compositing mode all the time, so
> producing a 0x0 graphics layer isn't such a big deal.

Since we expand the absoluteBounds to 1x1 in the overlap testing, this can mean
that we create extra layers due to overlapping the 0x0 layer. But maybe we
should worry about that if we see it on real pages? Also, maybe we should fix
overlap testing to not expand empty rects to 0x0.

In either case, I didn't intend to block the CQ. Was just trying to drive-by
comment. Silly rietveld. :(

Powered by Google App Engine
This is Rietveld 408576698