Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Issue 10916307: Add the ubercomp DelegatedRendererLayer. (Closed)

Created:
8 years, 3 months ago by danakj
Modified:
8 years, 3 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, darin-cc_chromium.org, piman, wjmaclean, aelias_OOO_until_Jul13, cc-bugs_google.com, backer
Visibility:
Public.

Description

Add the ubercomp DelegatedRendererLayer. This adds a layer that owns a set of RenderPasses with DrawQuads, and is able to insert those RenderPasses and DrawQuads into the current frame during CCLayerTreeHostImpl::calculateRenderPasses(). The layer owns whatever quads/passes you give to it, and copies them with modifications as needed into the current frame via the QuadSink. Quads from the layer's root RenderPass are merged into its target RenderPass, with the transform and opacity being modified if needed. Other RenderPasses are inserted into the frame as-is, with RenderPass ids being adjusted to not collide with any other RenderPasses in the frame, and using a scheme that allows the layer to reverse-lookup its own copy of a RenderPass from the id it generated. Moved from: https://bugs.webkit.org/show_bug.cgi?id=94145 Tests: CCDelegatedRendererLayerImplTestSimple.AddsContributingRenderPasses CCDelegatedRendererLayerImplTestSimple.AddsQuadsToContributingRenderPasses CCDelegatedRendererLayerImplTestSimple.AddsQuadsToTargetRenderPass CCDelegatedRendererLayerImplTestSimple.QuadsFromRootRenderPassAreModifiedForTheTarget CCDelegatedRendererLayerImplTestOwnSurface.AddsRenderPasses CCDelegatedRendererLayerImplTestOwnSurface.AddsQuadsToContributingRenderPasses CCDelegatedRendererLayerImplTestOwnSurface.AddsQuadsToTargetRenderPass CCDelegatedRendererLayerImplTestOwnSurface.QuadsFromRootRenderPassAreNotModifiedForTheTarget BUG=123445 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157700 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157794

Patch Set 1 #

Total comments: 2

Patch Set 2 : use virtual #

Patch Set 3 : rebased-and-namespaced #

Patch Set 4 : add CCRenderPassTestCommon #

Patch Set 5 : fix-ownptr-sadness #

Patch Set 6 : another-round-for-ownptr #

Patch Set 7 : Use OwnPtrVector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+855 lines, -22 lines) Patch
M cc/CCAppendQuadsData.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M cc/CCDamageTrackerTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A cc/CCDelegatedRendererLayerImpl.h View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A cc/CCDelegatedRendererLayerImpl.cpp View 1 2 3 4 5 6 1 chunk +177 lines, -0 lines 0 comments Download
A cc/CCDelegatedRendererLayerImplTest.cpp View 1 2 3 4 5 6 1 chunk +379 lines, -0 lines 0 comments Download
M cc/CCLayerImpl.h View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M cc/CCLayerTreeHostCommon.cpp View 1 2 3 4 5 6 4 chunks +5 lines, -4 lines 0 comments Download
M cc/CCLayerTreeHostImpl.cpp View 1 2 3 4 5 6 2 chunks +14 lines, -1 line 0 comments Download
M cc/CCLayerTreeHostImplTest.cpp View 1 2 3 4 5 6 8 chunks +29 lines, -12 lines 0 comments Download
M cc/CCRenderSurface.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M cc/CCRenderSurface.cpp View 1 2 3 chunks +17 lines, -0 lines 0 comments Download
M cc/CCRenderSurfaceTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A cc/DelegatedRendererLayerChromium.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A cc/DelegatedRendererLayerChromium.cpp View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M cc/LayerChromium.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/RenderSurfaceChromium.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A cc/test/CCRenderPassTestCommon.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A webkit/compositor_bindings/WebDelegatedRendererLayerImpl.h View 1 chunk +30 lines, -0 lines 0 comments Download
A webkit/compositor_bindings/WebDelegatedRendererLayerImpl.cpp View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/compositor_bindings.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/web_compositor_support_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/compositor_bindings/web_compositor_support_impl.cc View 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
danakj
I've implemented the changed in CCLTHImpl to not go thru all the of the vector ...
8 years, 3 months ago (2012-09-14 01:44:54 UTC) #1
enne (OOO)
LGTM, with one nit: https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp File cc/CCLayerTreeHostImpl.cpp (right): https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp#newcode302 cc/CCLayerTreeHostImpl.cpp:302: CCDelegatedRendererLayerImpl* delegatedRendererLayer = static_cast<CCDelegatedRendererLayerImpl*>(*it); The ...
8 years, 3 months ago (2012-09-14 17:33:00 UTC) #2
danakj
https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp File cc/CCLayerTreeHostImpl.cpp (right): https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp#newcode302 cc/CCLayerTreeHostImpl.cpp:302: CCDelegatedRendererLayerImpl* delegatedRendererLayer = static_cast<CCDelegatedRendererLayerImpl*>(*it); Oh, good point. What do ...
8 years, 3 months ago (2012-09-14 17:37:10 UTC) #3
enne (OOO)
On 2012/09/14 17:37:10, danakj wrote: > https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp > File cc/CCLayerTreeHostImpl.cpp (right): > > https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp#newcode302 > ...
8 years, 3 months ago (2012-09-14 18:11:35 UTC) #4
danakj
On 2012/09/14 18:11:35, enne wrote: > On 2012/09/14 17:37:10, danakj wrote: > > https://codereview.chromium.org/10916307/diff/1/cc/CCLayerTreeHostImpl.cpp > ...
8 years, 3 months ago (2012-09-14 18:31:13 UTC) #5
enne (OOO)
Thanks! LGTM still. :)
8 years, 3 months ago (2012-09-14 19:37:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10916307/8001
8 years, 3 months ago (2012-09-19 22:19:40 UTC) #7
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests, jingle_unittests, gpu_unittests, base_unittests, sync_integration_tests, sql_unittests, chrome_frame_unittests, content_unittests, ...
8 years, 3 months ago (2012-09-19 22:45:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10916307/17003
8 years, 3 months ago (2012-09-19 22:45:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10916307/16003
8 years, 3 months ago (2012-09-19 23:28:18 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-20 01:01:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10916307/9028
8 years, 3 months ago (2012-09-20 01:01:59 UTC) #12
commit-bot: I haz the power
Change committed as 157700
8 years, 3 months ago (2012-09-20 03:38:01 UTC) #13
jamesr
On 2012/09/20 03:38:01, I haz the power (commit-bot) wrote: > Change committed as 157700 https://chromiumcodereview.appspot.com/10940002/ ...
8 years, 3 months ago (2012-09-20 04:42:13 UTC) #14
danakj
Hah such timing! OwnPtr should be proud of itself for causing such a ruckus :p ...
8 years, 3 months ago (2012-09-20 14:41:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10916307/28001
8 years, 3 months ago (2012-09-20 14:51:39 UTC) #16
commit-bot: I haz the power
8 years, 3 months ago (2012-09-20 17:26:59 UTC) #17
Change committed as 157794

Powered by Google App Engine
This is Rietveld 408576698