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

Issue 2408243002: cc : Move screen space scale factor to root transform node (Closed)

Created:
4 years, 2 months ago by jaydasika
Modified:
4 years, 1 month ago
Reviewers:
ajuma, weiliangc, chrishtr, pdr.
CC:
cc-bugs_chromium.org, chromium-reviews, sunxd
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc : Move screen space scale factor to root transform node This CL computes the screen space scale factor which is combined form scale factors of device transform, device scale factor and page scale factor(if required), and stores it on the root transform node as its surface contents scale. This also implicitly fixes a clipping bug. TransformTree::ComputeTransforms(a, b) should return the transform between a and b without the surface contents scale. But, since screen space scale was baked into the local transform of the contents root node (before this CL), ComputeTransform(a, root) was having the scale baked in. (and this caused the bug) BUG=651584 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/61fa0fb418a3f77665e0bc1be88ec5a2984c6dc6 Cr-Commit-Position: refs/heads/master@{#427366}

Patch Set 1 #

Patch Set 2 : format #

Total comments: 1

Patch Set 3 : PAC #

Patch Set 4 : test #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : comments #

Patch Set 7 : rebase #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : initialze EffectNode::target_id to 1 #

Patch Set 11 : comments #

Total comments: 3

Patch Set 12 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -142 lines) Patch
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +54 lines, -82 lines 0 comments Download
M cc/trees/effect_node.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 3 chunks +37 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 1 chunk +5 lines, -9 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -3 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +59 lines, -29 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +15 lines, -9 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 1 2 3 4 5 6 1 chunk +15 lines, -2 lines 0 comments Download

Messages

Total messages: 78 (58 generated)
jaydasika
Sending it out for initial comments. I still need to add a test for the ...
4 years, 2 months ago (2016-10-11 21:54:20 UTC) #5
jaydasika
Made changes to PAC to put device scale factor into the root transform node there ...
4 years, 2 months ago (2016-10-12 23:07:48 UTC) #14
weiliangc
Thanks for pushing this for merge to 55. Overall looks good. https://codereview.chromium.org/2408243002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): ...
4 years, 2 months ago (2016-10-13 21:16:18 UTC) #17
jaydasika
https://codereview.chromium.org/2408243002/diff/60001/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp File third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp (right): https://codereview.chromium.org/2408243002/diff/60001/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp#newcode461 third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp:461: // TODO(jaydasika) : We shouldn't set ToScreen and FromScreen ...
4 years, 2 months ago (2016-10-13 21:46:48 UTC) #18
jaydasika
https://codereview.chromium.org/2408243002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2408243002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode9503 cc/trees/layer_tree_host_common_unittest.cc:9503: float device_scale_factor = 2.f; On 2016/10/13 21:16:18, weiliangc wrote: ...
4 years, 2 months ago (2016-10-13 22:02:22 UTC) #19
ajuma
lgtm on behalf of Wei (who asked me offline to lgtm this)
4 years, 2 months ago (2016-10-14 23:16:03 UTC) #28
jaydasika
+ pdr/chrishtr for changes to PaintArtifactCompositor
4 years, 2 months ago (2016-10-14 23:19:01 UTC) #30
pdr.
On 2016/10/14 at 23:19:01, jaydasika wrote: > + pdr/chrishtr for changes to PaintArtifactCompositor PaintArtifactCompositor.cpp LGTM
4 years, 2 months ago (2016-10-14 23:54:22 UTC) #31
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/2408243002/100001
4 years, 2 months ago (2016-10-14 23:56:24 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/48972)
4 years, 2 months ago (2016-10-15 00:32:39 UTC) #35
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/2408243002/100001
4 years, 2 months ago (2016-10-15 03:08:37 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/244066)
4 years, 2 months ago (2016-10-15 03:52:04 UTC) #39
jaydasika
PTAL (see the diff b/w Patch 7 and the last patch for new changes) https://codereview.chromium.org/2408243002/diff/220001/cc/trees/effect_node.cc ...
4 years, 1 month ago (2016-10-22 00:18:23 UTC) #51
weiliangc
Overall looks like reasonable approach. Since this patch is meant to be merged into M55, ...
4 years, 1 month ago (2016-10-24 21:29:36 UTC) #60
jaydasika
https://codereview.chromium.org/2408243002/diff/220001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2408243002/diff/220001/cc/trees/property_tree.cc#newcode709 cc/trees/property_tree.cc:709: post_local.matrix().postScale(1.f / device_transform_scale_components.x(), On 2016/10/24 21:29:36, weiliangc wrote: > ...
4 years, 1 month ago (2016-10-25 01:20:59 UTC) #62
weiliangc
LGTM
4 years, 1 month ago (2016-10-25 15:43:58 UTC) #70
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/2408243002/240001
4 years, 1 month ago (2016-10-25 15:44:31 UTC) #73
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 1 month ago (2016-10-25 15:50:18 UTC) #75
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/61fa0fb418a3f77665e0bc1be88ec5a2984c6dc6 Cr-Commit-Position: refs/heads/master@{#427366}
4 years, 1 month ago (2016-10-25 16:14:34 UTC) #77
jaydasika
4 years, 1 month ago (2016-10-27 20:55:06 UTC) #78
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:240001) has been created in
https://codereview.chromium.org/2452303003/ by jaydasika@chromium.org.

The reason for reverting is:
https://bugs.chromium.org/p/chromium/issues/detail?id=660047.

Powered by Google App Engine
This is Rietveld 408576698