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

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed)

Created:
5 years ago by ajuma
Modified:
5 years ago
Reviewers:
weiliangc
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix draw transform computation for non-drawn layers When property trees are enabled, draw properties are only computed for drawn layers. This means that when a non-drawn layer's draw transform is needed, it must be computed on-demand using the transform tree rather than being read from the layer's draw properties. BUG=560275 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d9432e3c14de1f2a4b04a5fa5c96ab73d9d9d86e Cr-Commit-Position: refs/heads/master@{#362196}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Remove LayerImpl::draw_transform() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -262 lines) Patch
M cc/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 chunks +24 lines, -9 lines 0 comments Download
M cc/layers/layer_iterator_unittest.cc View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 2 3 4 34 chunks +95 lines, -93 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M cc/layers/render_surface_impl_unittest.cc View 1 2 chunks +54 lines, -0 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A cc/test/fake_mask_layer_impl.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A cc/test/fake_mask_layer_impl.cc View 1 1 chunk +23 lines, -0 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 1 2 3 4 3 chunks +10 lines, -8 lines 0 comments Download
M cc/trees/damage_tracker.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 10 chunks +23 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_common_perftest.cc View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 44 chunks +112 lines, -65 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 3 chunks +9 lines, -25 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation_timelines.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_occlusion.cc View 1 2 3 4 3 chunks +69 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 1 comment Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
ajuma
There are similar bugs involving screen_space_transform, which I'm planning on fixing in a separate CL. ...
5 years ago (2015-11-27 19:39:31 UTC) #4
weiliangc
Does LayerDrawTransform() replaces all calls to LayerImpl's draw_transform()? Can we just remove the LayerImpl::draw_transform()?
5 years ago (2015-11-27 20:24:29 UTC) #5
ajuma
On 2015/11/27 20:24:29, weiliangc wrote: > Does LayerDrawTransform() replaces all calls to LayerImpl's draw_transform()? > ...
5 years ago (2015-11-27 20:47:25 UTC) #6
weiliangc
On 2015/11/27 at 20:47:25, ajuma wrote: > On 2015/11/27 20:24:29, weiliangc wrote: > > Does ...
5 years ago (2015-11-27 20:52:21 UTC) #7
ajuma
Removed LayerImpl::draw_transform(), and moved LayerDrawTransform to LayerImpl (and just called it DrawTransform). https://codereview.chromium.org/1479883002/diff/120001/cc/trees/layer_tree_impl.h File cc/trees/layer_tree_impl.h ...
5 years ago (2015-11-30 17:55:52 UTC) #10
weiliangc
LGTM. Thanks for fixing the unittests!
5 years ago (2015-11-30 19:16:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1479883002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1479883002/120001
5 years ago (2015-11-30 19:34:38 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years ago (2015-11-30 19:43:51 UTC) #15
commit-bot: I haz the power
5 years ago (2015-11-30 19:45:15 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d9432e3c14de1f2a4b04a5fa5c96ab73d9d9d86e
Cr-Commit-Position: refs/heads/master@{#362196}

Powered by Google App Engine
This is Rietveld 408576698