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

Issue 58543002: Use a boolean hasCompositedLayerMapping() accessor instead of the pointer (Closed)

Created:
7 years, 1 month ago by shawnsingh
Modified:
7 years, 1 month ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, pdr, aandrey+blink_chromium.org, vsevik+blink_chromium.org, caseq+blink_chromium.org, bemjb+rendering_chromium.org, yurys+blink_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, kenneth.christiansen, loislo+blink_chromium.org, zoltan1, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, alph+blink_chromium.org, leviw+renderwatch, blink-layers+watch_chromium.org, pfeldman+blink_chromium.org, f(malita), Stephen Chennney
Visibility:
Public.

Description

Use a boolean hasCompositedLayerMapping() accessor instead of the pointer In order to add the ability to paint multiple RenderLayers into one composited layer backing, we need to complexity the possible "states" that a RenderLayer identifies as its compositingState. There are many places in code that still use compositedLayerMapping() as a boolean accessor to indicate compositingState, but doing so now is already inadequate, and with layer squashing, it may even be wrong in many places. To gradually evolve the codebase away from the compositedLayerMapping() accessor as a boolean, it is helpful to create a boolean accessor, hasCompositedLayerMapping(). The purpose of doing this is to more easily distinguish between places in code where compositedLayerMapping() is actually used as an object versus places where it is used as a boolean. BUG=261605 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161973

Patch Set 1 #

Patch Set 2 : re-upload just in case #

Patch Set 3 : rebased #

Total comments: 1

Patch Set 4 : Uses a wrapper around the pointer that can't be coerced to a boolean. #

Total comments: 1

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : Update comment for hasCompositedLayerMapping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -130 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 6 chunks +16 lines, -10 lines 0 comments Download
M Source/core/rendering/CompositedLayerMapping.cpp View 1 2 3 4 5 6 5 chunks +19 lines, -35 lines 0 comments Download
A Source/core/rendering/CompositedLayerMappingPtr.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 16 chunks +19 lines, -19 lines 0 comments Download
M Source/core/rendering/RenderLayerCompositor.cpp View 1 2 3 23 chunks +37 lines, -37 lines 0 comments Download
M Source/core/rendering/RenderLayerModelObject.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerRepainter.cpp View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderTreeAsText.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/SVGRenderingContext.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/LinkHighlight.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/ScrollingCoordinatorChromiumTest.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
shawnsingh
Glenn, can you please take the first look so that Ian can rubberstamp it when ...
7 years, 1 month ago (2013-11-04 22:20:56 UTC) #1
hartmanng
non-OWNER lgtm https://codereview.chromium.org/58543002/diff/80001/Source/core/rendering/RenderLayerCompositor.cpp File Source/core/rendering/RenderLayerCompositor.cpp (right): https://codereview.chromium.org/58543002/diff/80001/Source/core/rendering/RenderLayerCompositor.cpp#newcode458 Source/core/rendering/RenderLayerCompositor.cpp:458: ASSERT(compositedLayerMapping); Personally, I'd just take this out ...
7 years, 1 month ago (2013-11-04 22:56:09 UTC) #2
shawnsingh
Ian has taken over this patch and is working on this here - https://codereview.chromium.org/59063003/
7 years, 1 month ago (2013-11-12 09:57:01 UTC) #3
Ian Vollick
On 2013/11/12 09:57:01, shawnsingh wrote: > Ian has taken over this patch and is working ...
7 years, 1 month ago (2013-11-12 21:02:06 UTC) #4
shawnsingh
LGTM with one nit https://codereview.chromium.org/58543002/diff/150001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/58543002/diff/150001/Source/core/testing/Internals.cpp#newcode1275 Source/core/testing/Internals.cpp:1275: if (searchRoot->compositingState() == PaintsIntoOwnBacking && ...
7 years, 1 month ago (2013-11-12 21:12:50 UTC) #5
hartmanng
slgtm modulo Shawn's comment
7 years, 1 month ago (2013-11-12 21:20:51 UTC) #6
Ian Vollick
On 2013/11/12 21:12:50, shawnsingh wrote: > LGTM with one nit > > https://codereview.chromium.org/58543002/diff/150001/Source/core/testing/Internals.cpp > File ...
7 years, 1 month ago (2013-11-12 22:06:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/58543002/500001
7 years, 1 month ago (2013-11-12 22:06:57 UTC) #8
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=11115
7 years, 1 month ago (2013-11-12 22:33:32 UTC) #9
Ian Vollick
On 2013/11/12 22:33:32, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 1 month ago (2013-11-13 00:34:35 UTC) #10
jamesr
Can you have a /core/ owner take a look at those parts of the patch ...
7 years, 1 month ago (2013-11-13 00:38:36 UTC) #11
Ian Vollick
On 2013/11/13 00:38:36, jamesr wrote: > Can you have a /core/ owner take a look ...
7 years, 1 month ago (2013-11-13 14:48:18 UTC) #12
enne (OOO)
I think it would be clearer to just go directly to compositingState and don't really ...
7 years, 1 month ago (2013-11-13 20:55:54 UTC) #13
Ian Vollick
On 2013/11/13 20:55:54, enne wrote: > I think it would be clearer to just go ...
7 years, 1 month ago (2013-11-13 23:21:39 UTC) #14
jamesr
/web/ lgtm
7 years, 1 month ago (2013-11-14 00:47:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/58543002/590001
7 years, 1 month ago (2013-11-14 02:34:21 UTC) #16
commit-bot: I haz the power
7 years, 1 month ago (2013-11-14 03:33:58 UTC) #17
Message was sent while issue was closed.
Change committed as 161973

Powered by Google App Engine
This is Rietveld 408576698