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

Issue 2756703002: Don't expose a LayerImpl reference to CompositorProxy. (Closed)

Created:
3 years, 9 months ago by Scott Funkenhauser
Modified:
3 years, 9 months ago
Reviewers:
*flackr, *smcgruer
CC:
chromium-reviews, krit, dshwang, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, sof, eae+blinkwatch, jbroman, fmalita+watch_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, Rik, Stephen Chennney, Justin Novosad, pdr+graphicswatchlist_chromium.org, blink-reviews, kinuko+watch, ajuma+watch_chromium.org, danakj+watch_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Instead of exposing a LayerImpl reference to CompositorProxy, create a snapshot of the LayerImpl and pass the snapshot down to CompositorProxy. Then use the CompositorMutations to figure out what updates should be made to the LayerTree. BUG=694532

Patch Set 1 #

Patch Set 2 : Clean up the code. #

Total comments: 14

Patch Set 3 : Update tests #

Patch Set 4 : Address smcgruer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -196 lines) Patch
M third_party/WebKit/Source/core/dom/CompositorProxy.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CompositorProxy.cpp View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.h View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableState.h View 1 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp View 1 1 chunk +13 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h View 1 2 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp View 1 2 chunks +10 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp View 1 2 2 chunks +34 lines, -110 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h View 1 2 3 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp View 1 2 3 4 chunks +138 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp View 1 2 3 chunks +134 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorMutatorImpl.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorMutatorImpl.cpp View 1 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/CompositorWorkerProxyClientImpl.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (3 generated)
Scott Funkenhauser
I'll be adding tests soon, hopefully early next week.
3 years, 9 months ago (2017-03-17 20:03:48 UTC) #4
smcgruer
A few mostly high level thoughts. https://codereview.chromium.org/2756703002/diff/20001/third_party/WebKit/Source/core/dom/CompositorProxy.h File third_party/WebKit/Source/core/dom/CompositorProxy.h (right): https://codereview.chromium.org/2756703002/diff/20001/third_party/WebKit/Source/core/dom/CompositorProxy.h#newcode40 third_party/WebKit/Source/core/dom/CompositorProxy.h:40: uint64_t proxyId() const ...
3 years, 9 months ago (2017-03-20 14:31:51 UTC) #5
Scott Funkenhauser
https://codereview.chromium.org/2756703002/diff/20001/third_party/WebKit/Source/core/dom/CompositorProxy.h File third_party/WebKit/Source/core/dom/CompositorProxy.h (right): https://codereview.chromium.org/2756703002/diff/20001/third_party/WebKit/Source/core/dom/CompositorProxy.h#newcode40 third_party/WebKit/Source/core/dom/CompositorProxy.h:40: uint64_t proxyId() const { return (uint64_t)this; } On 2017/03/20 ...
3 years, 9 months ago (2017-03-21 19:31:12 UTC) #6
smcgruer
3 years, 9 months ago (2017-03-22 14:59:40 UTC) #7
Thanks for your efforts Scott. I have taken over this CL in
https://codereview.chromium.org/2765053002/, can you close this issue?

Powered by Google App Engine
This is Rietveld 408576698