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

Issue 2888483002: Manage registering composited elements in PaintArtifactCompositor. (Closed)

Created:
3 years, 7 months ago by wkorman
Modified:
3 years, 7 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Manage registering composited elements in PaintArtifactCompositor. Circumvent three references to element id via the Layer when SPv2 is enabled. PaintArtifactCompositor instead directly handles layer registration/unregistration with the layer tree host, and setting the host to commit in presence of animations. BUG=709137 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2888483002 Cr-Commit-Position: refs/heads/master@{#472703} Committed: https://chromium.googlesource.com/chromium/src/+/e006aee237d27eb7dbefae03551121dbad59dcae

Patch Set 1 #

Total comments: 6

Patch Set 2 : Feedback. #

Patch Set 3 : Fix inverted logic. #

Total comments: 1

Patch Set 4 : More unit tests and simplification. #

Patch Set 5 : Remove unused include. #

Patch Set 6 : Sync to head and disable flaky animation test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -15 lines) Patch
M cc/layers/layer.cc View 1 2 3 chunks +6 lines, -7 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 1 2 3 4 3 chunks +27 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp View 1 2 3 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (25 generated)
wkorman
Thinking something like this. Will write tests after initial feedback and CQ results. We can't ...
3 years, 7 months ago (2017-05-16 01:52:26 UTC) #7
pdr.
This code looks good to me, just a couple questions about the overall design. https://codereview.chromium.org/2888483002/diff/1/cc/layers/layer.cc ...
3 years, 7 months ago (2017-05-16 02:46:35 UTC) #10
wkorman
Still working on tests but sending replies to current comment set. https://codereview.chromium.org/2888483002/diff/1/cc/layers/layer.cc File cc/layers/layer.cc (right): ...
3 years, 7 months ago (2017-05-16 21:42:42 UTC) #12
chrishtr
Re "Removes several references to Layer::inputs_.elmeent_id in SPv2", which ones are they? Add a DCHECK?
3 years, 7 months ago (2017-05-17 00:39:02 UTC) #18
wkorman
On 2017/05/17 00:39:02, chrishtr wrote: > Re "Removes several references to Layer::inputs_.elmeent_id in SPv2", which ...
3 years, 7 months ago (2017-05-17 01:33:55 UTC) #19
chrishtr
On 2017/05/17 at 01:33:55, wkorman wrote: > On 2017/05/17 00:39:02, chrishtr wrote: > > Re ...
3 years, 7 months ago (2017-05-17 03:05:45 UTC) #21
chrishtr
On 2017/05/17 at 01:33:55, wkorman wrote: > On 2017/05/17 00:39:02, chrishtr wrote: > > Re ...
3 years, 7 months ago (2017-05-17 03:05:50 UTC) #22
wkorman
PTAL, added tests. https://codereview.chromium.org/2888483002/diff/40001/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp File third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp (right): https://codereview.chromium.org/2888483002/diff/40001/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp#newcode668 third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp:668: if (host->mutator_host()->HasAnyAnimation(element_id)) Believe we actually don't ...
3 years, 7 months ago (2017-05-17 20:07:50 UTC) #23
chrishtr
lgtm
3 years, 7 months ago (2017-05-17 20:15:35 UTC) #26
pdr.
OK LGTM 2
3 years, 7 months ago (2017-05-17 20:17:33 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2888483002/100001
3 years, 7 months ago (2017-05-17 21:54:55 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/429857)
3 years, 7 months ago (2017-05-18 02:59:14 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2888483002/100001
3 years, 7 months ago (2017-05-18 04:38:22 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 06:19:09 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e006aee237d27eb7dbefae035511...

Powered by Google App Engine
This is Rietveld 408576698