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

Issue 24921002: Make compositingState explicit (Closed)

Created:
7 years, 2 months ago by shawnsingh
Modified:
7 years, 2 months ago
CC:
blink-reviews, shans, eae+blinkwatch, apavlov+blink_chromium.org, pdr, rjwright, aandrey+blink_chromium.org, dino_apple.com, blink-layers+watch_chromium.org, caseq+blink_chromium.org, Steve Block, alancutter (OOO until 2018), pfeldman+blink_chromium.org, yurys+blink_chromium.org, Timothy Loh, dstockwell, dglazkov+blink, jchaffraix+rendering, devtools-reviews_chromium.org, Eric Willigers, kenneth.christiansen, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, alph+blink_chromium.org, leviw+renderwatch, vsevik+blink_chromium.org, Mike Lawther (Google), f(malita), Stephen Chennney, enne (OOO), ajuma, hartmanng
Visibility:
Public.

Description

Make compositingState explicit (re-land #2 with bogus ASSERT removed) A lot of code uses isComposited() and compositedLayerMapping() as booleans to check the compositing state of a RenderLayer or RenderObject. However, in the code there are actually 3 different states: (1) not composited (paints into CompositedLayerMapping of a composited ancestor) (2) paints into own CompositedLayerMapping (3) has its own CompositedLayerMapping but actually still paints into composited ancestor. Furthermore, upcoming changes to compositing will add a fourth state: (4) paints into a GraphicsLayer that is shared by a group of layers. This patch removes isComposited() boolean check, and replaces it with compositingState() that returns an enum. Most call sites outside of RenderLayer, CompositedLayerMapping, and RenderLayerCompositor have been updated to reflect what states they really intended to check for. Remaining call sites have been replaced with the compositedLayerMapping() accessor for now, which is exactly equivalent to the old isComposited() boolean, and those sites will be updated in follow-up patches. BUG=261605 R=jamesr@chromium.org, jchaffraix@chromium.org, vollick@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159118

Patch Set 1 #

Patch Set 2 : ready for review #

Total comments: 14

Patch Set 3 : addressed first round of reviewer comments #

Total comments: 18

Patch Set 4 : rebased, feedback not yet addressed #

Patch Set 5 : Addressed second round of reviewer feedback #

Total comments: 1

Patch Set 6 : patch for landing #

Patch Set 7 : Patch was reverted, this patch re-lands removing the bogus ASSERT #

Patch Set 8 : re-land try #2 #

Patch Set 9 : path for re-landing try #2 with removed unnecessary comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -118 lines) Patch
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/FrameView.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/page/animation/AnimationBase.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/page/animation/ImplicitAnimation.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/animation/KeyframeAnimation.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M Source/core/rendering/CompositedLayerMapping.cpp View 1 2 3 4 6 chunks +17 lines, -8 lines 0 comments Download
A Source/core/rendering/CompositingState.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 3 4 5 6 2 chunks +13 lines, -5 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 26 chunks +51 lines, -30 lines 0 comments Download
M Source/core/rendering/RenderLayerCompositor.cpp View 1 2 3 4 5 6 7 8 20 chunks +21 lines, -20 lines 0 comments Download
M Source/core/rendering/RenderLayerRepainter.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 2 3 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 5 5 chunks +12 lines, -10 lines 0 comments Download
M Source/core/rendering/RenderTreeAsText.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 3 6 2 chunks +1 line, -6 lines 0 comments Download
M Source/core/rendering/RenderWidget.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/SVGRenderingContext.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/web/LinkHighlight.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/ScrollingCoordinatorChromiumTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
shawnsingh
Dear reviewers - PTAL. (requesting that both of you take a look) boolean isComposited() is ...
7 years, 2 months ago (2013-09-27 09:09:30 UTC) #1
shawnsingh
Ping to reviewers. My layer squashing work is blocked on this, and it gets increasingly ...
7 years, 2 months ago (2013-10-01 19:42:17 UTC) #2
Ian Vollick
Still going through this, but here are my comments so far. https://codereview.chromium.org/24921002/diff/4001/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): ...
7 years, 2 months ago (2013-10-01 19:46:21 UTC) #3
Ian Vollick
The rest seems reasonable. Julien, wdyt? https://codereview.chromium.org/24921002/diff/4001/Source/core/rendering/RenderLayerCompositor.cpp File Source/core/rendering/RenderLayerCompositor.cpp (right): https://codereview.chromium.org/24921002/diff/4001/Source/core/rendering/RenderLayerCompositor.cpp#newcode816 Source/core/rendering/RenderLayerCompositor.cpp:816: void RenderLayerCompositor::computeCompositingRequirements(RenderLayer* ancestorLayer, ...
7 years, 2 months ago (2013-10-02 19:12:25 UTC) #4
shawnsingh
Responses inline. https://codereview.chromium.org/24921002/diff/4001/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/24921002/diff/4001/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode173 Source/core/page/scrolling/ScrollingCoordinator.cpp:173: // squashed layers? For now, keeping this ...
7 years, 2 months ago (2013-10-03 03:04:03 UTC) #5
shawnsingh
+jamesr for OWNERS review in Source/web/
7 years, 2 months ago (2013-10-03 03:05:46 UTC) #6
Julien - ping for review
I think the direction is fine. The patch is gigantic and we are probably missing ...
7 years, 2 months ago (2013-10-03 20:08:35 UTC) #7
shawnsingh
Thanks for review. I'll be back with a new patch here in a day or ...
7 years, 2 months ago (2013-10-04 01:08:49 UTC) #8
shawnsingh
Julien and Ian - PTAL - this patch is likely to meet both your approvals ...
7 years, 2 months ago (2013-10-07 11:45:03 UTC) #9
Julien - ping for review
lgtm If there are any inconsistencies, we will see them in the follow-up patches and ...
7 years, 2 months ago (2013-10-07 18:26:23 UTC) #10
shawnsingh
Jamesr can you please give OWNER review to web/ ? Thanks in advance. The patch ...
7 years, 2 months ago (2013-10-07 20:24:23 UTC) #11
jamesr
../web/.. lgtm
7 years, 2 months ago (2013-10-07 20:49:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/24921002/43001
7 years, 2 months ago (2013-10-07 21:17:21 UTC) #13
commit-bot: I haz the power
Change committed as 159068
7 years, 2 months ago (2013-10-08 00:32:39 UTC) #14
shawnsingh
Committed patchset #7 manually as r159084 (presubmit successful).
7 years, 2 months ago (2013-10-08 04:16:27 UTC) #15
shawnsingh
On 2013/10/08 04:16:27, shawnsingh wrote: > Committed patchset #7 manually as r159084 (presubmit successful). 159068 ...
7 years, 2 months ago (2013-10-08 04:17:41 UTC) #16
Ian Vollick
On 2013/10/08 04:17:41, shawnsingh wrote: > On 2013/10/08 04:16:27, shawnsingh wrote: > > Committed patchset ...
7 years, 2 months ago (2013-10-08 14:57:21 UTC) #17
shawnsingh
7 years, 2 months ago (2013-10-08 15:01:49 UTC) #18
Message was sent while issue was closed.
Committed patchset #9 manually as r159118 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698