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

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed)

Created:
7 years, 7 months ago by shawnsingh
Modified:
7 years, 7 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, leviw+renderwatch, abarth-chromium, danakj, Rik, jchaffraix+rendering, Stephen Chennney, jeez, pdr.
Visibility:
Public.

Description

Plumb CompositingReason from Blink to compositor. This is the blink-side patch. (1) adds a few more compositing reasons that represent some of the internal hierarchy in RenderLayerBacking. (2) does the plumbing BUG=240946 R=enne@chromium.org, jamesr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151039

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed reviewer feedback #

Total comments: 1

Patch Set 3 : Version with compositing reasons initialized on creation #

Total comments: 4

Patch Set 4 : rearranged reasons to hold us over with 32 reasons for now #

Total comments: 4

Patch Set 5 : Addressed feedback #

Patch Set 6 : Addressed reviewer feedback, keeping the forwarding include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -39 lines) Patch
M Source/Platform/Platform.gypi View 5 1 chunk +1 line, -0 lines 0 comments Download
A Source/Platform/chromium/public/WebCompositingReasons.h View 1 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/WebKit/chromium/src/AssertMatchingEnums.cpp View 1 2 3 5 3 chunks +36 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/GraphicsLayer.h View 1 5 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/GraphicsLayer.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 3 1 chunk +29 lines, -20 lines 0 comments Download
M Source/core/rendering/RenderLayerBacking.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerBacking.cpp View 1 2 3 16 chunks +26 lines, -14 lines 0 comments Download
M Source/core/rendering/RenderLayerCompositor.cpp View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
A public/platform/WebCompositingReasons.h View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M public/platform/WebLayer.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
shawnsingh
Working prototype. Still need to add the #if guards mechanism for the actual patch for ...
7 years, 7 months ago (2013-05-15 00:57:09 UTC) #1
jamesr
https://codereview.chromium.org/15181006/diff/1/Source/Platform/chromium/public/WebCompositingReasons.h File Source/Platform/chromium/public/WebCompositingReasons.h (right): https://codereview.chromium.org/15181006/diff/1/Source/Platform/chromium/public/WebCompositingReasons.h#newcode13 Source/Platform/chromium/public/WebCompositingReasons.h:13: * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ...
7 years, 7 months ago (2013-05-17 00:10:20 UTC) #2
jamesr
What do you intend to do with the reasons on the chromium side?
7 years, 7 months ago (2013-05-17 00:17:54 UTC) #3
shawnsingh
On 2013/05/17 00:17:54, jamesr wrote: > What do you intend to do with the reasons ...
7 years, 7 months ago (2013-05-17 02:35:16 UTC) #4
nduca
how're we doing here, do we have consensus on this being useful?
7 years, 7 months ago (2013-05-18 00:44:14 UTC) #5
shawnsingh
On 2013/05/18 00:44:14, nduca wrote: > how're we doing here, do we have consensus on ...
7 years, 7 months ago (2013-05-20 20:38:06 UTC) #6
shawnsingh
Enne, can you PTAL? This is the blink-side of the compositing reasons. (You had already ...
7 years, 7 months ago (2013-05-21 20:11:54 UTC) #7
enne (OOO)
https://codereview.chromium.org/15181006/diff/7001/Source/core/rendering/RenderLayerBacking.cpp File Source/core/rendering/RenderLayerBacking.cpp (right): https://codereview.chromium.org/15181006/diff/7001/Source/core/rendering/RenderLayerBacking.cpp#newcode355 Source/core/rendering/RenderLayerBacking.cpp:355: m_ancestorClippingLayer->setCompositingReasons(CompositingReasonLayerForClip); What about just setting these reasons when you ...
7 years, 7 months ago (2013-05-21 20:19:28 UTC) #8
shawnsingh
On 2013/05/21 20:19:28, enne wrote: > https://codereview.chromium.org/15181006/diff/7001/Source/core/rendering/RenderLayerBacking.cpp > File Source/core/rendering/RenderLayerBacking.cpp (right): > > https://codereview.chromium.org/15181006/diff/7001/Source/core/rendering/RenderLayerBacking.cpp#newcode355 > ...
7 years, 7 months ago (2013-05-21 20:36:21 UTC) #9
enne (OOO)
Maybe that's true only for RenderLayerBacking::m_graphicsLayer. However, the foreground layer will always be composited for ...
7 years, 7 months ago (2013-05-21 23:00:03 UTC) #10
shawnsingh
On 2013/05/21 23:00:03, enne wrote: > Maybe that's true only for RenderLayerBacking::m_graphicsLayer. However, the > ...
7 years, 7 months ago (2013-05-22 00:45:06 UTC) #11
enne (OOO)
https://codereview.chromium.org/15181006/diff/18001/Source/core/rendering/RenderLayerBacking.cpp File Source/core/rendering/RenderLayerBacking.cpp (right): https://codereview.chromium.org/15181006/diff/18001/Source/core/rendering/RenderLayerBacking.cpp#newcode864 Source/core/rendering/RenderLayerBacking.cpp:864: m_childContainmentLayer = createGraphicsLayer("Child clipping Layer", CompositingReasonNone); CompositingReasonLayerForClip? https://codereview.chromium.org/15181006/diff/18001/Source/core/rendering/RenderLayerBacking.cpp#newcode1012 Source/core/rendering/RenderLayerBacking.cpp:1012: ...
7 years, 7 months ago (2013-05-22 00:53:47 UTC) #12
shawnsingh
New patch uploaded, with all RenderLayerBacking layers have real reasons. PTAL. For the sake of ...
7 years, 7 months ago (2013-05-22 02:13:22 UTC) #13
enne (OOO)
lgtm
7 years, 7 months ago (2013-05-22 16:27:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/15181006/31001
7 years, 7 months ago (2013-05-22 19:53:49 UTC) #15
shawnsingh
On 2013/05/22 19:53:49, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 7 months ago (2013-05-22 21:44:00 UTC) #16
jamesr
https://codereview.chromium.org/15181006/diff/31001/Source/Platform/chromium/public/WebCompositingReasons.h File Source/Platform/chromium/public/WebCompositingReasons.h (right): https://codereview.chromium.org/15181006/diff/31001/Source/Platform/chromium/public/WebCompositingReasons.h#newcode1 Source/Platform/chromium/public/WebCompositingReasons.h:1: #include "../../../../public/platform/WebCompositingReasons.h" no need to add a forwarding header ...
7 years, 7 months ago (2013-05-22 21:47:34 UTC) #17
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=394
7 years, 7 months ago (2013-05-22 23:01:28 UTC) #18
shawnsingh
Hi, abarth - jamesr mentions that you are currently doing some include path migration. Please ...
7 years, 7 months ago (2013-05-22 23:34:35 UTC) #19
nduca
Shawn, looks like the moves have happened, maybe you can just update the patch to ...
7 years, 7 months ago (2013-05-23 15:30:42 UTC) #20
abarth-chromium
You're probably going to need a forwarding header in Source/Platform/chromium/public like the rest of the ...
7 years, 7 months ago (2013-05-23 17:34:31 UTC) #21
jamesr
Bummer. A forwarding header is better than #include <../>, though
7 years, 7 months ago (2013-05-23 20:15:08 UTC) #22
shawnsingh
On 2013/05/23 20:15:08, jamesr wrote: > Bummer. A forwarding header is better than #include <../>, ...
7 years, 7 months ago (2013-05-23 20:38:33 UTC) #23
jamesr
lgtm it's really silly, but I think you'll need a copyright header on the forwarding ...
7 years, 7 months ago (2013-05-23 21:45:37 UTC) #24
shawnsingh
On 2013/05/23 21:45:37, jamesr wrote: > lgtm > > it's really silly, but I think ...
7 years, 7 months ago (2013-05-23 22:49:58 UTC) #25
shawnsingh
7 years, 7 months ago (2013-05-24 02:04:22 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 manually as r151039 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698