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

Issue 1060413002: cc: Re-use transforms from transform nodes when computing visible rects (Closed)

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

Description

cc: Re-use transforms from transform nodes when computing visible rects This makes CalculateVisibleRects try to re-use the to_target and from_target transforms stored in transform nodes whenever it needs to compute a transform. Since these baked transforms incorporate the target's sublayer scale, the fallback path now also includes sublayer scale for consistency. Testing locally on a z620, this improves property tree computation time by 25% on rAF-driven poster circle. BUG=474725 Committed: https://crrev.com/3ae2b258d39e00f11212167be326b5a6a78d3793 Cr-Commit-Position: refs/heads/master@{#324671}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Rebased #

Patch Set 4 : Fix layout test failure #

Patch Set 5 : Clean up sublayer scaling #

Patch Set 6 : Fix scaling logic #

Patch Set 7 : Add unit test #

Patch Set 8 : Rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -19 lines) Patch
M cc/trees/draw_property_utils.cc View 1 2 3 4 3 chunks +17 lines, -10 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 3 chunks +33 lines, -9 lines 2 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
ajuma
5 years, 8 months ago (2015-04-07 21:04:01 UTC) #2
Ian Vollick
lgtm! https://codereview.chromium.org/1060413002/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1060413002/diff/20001/cc/trees/draw_property_utils.cc#newcode62 cc/trees/draw_property_utils.cc:62: if (target_node->data.needs_sublayer_scale) { aside: it would be really ...
5 years, 8 months ago (2015-04-07 21:10:05 UTC) #3
ajuma
https://codereview.chromium.org/1060413002/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1060413002/diff/20001/cc/trees/draw_property_utils.cc#newcode62 cc/trees/draw_property_utils.cc:62: if (target_node->data.needs_sublayer_scale) { On 2015/04/07 21:10:05, vollick wrote: > ...
5 years, 8 months ago (2015-04-07 21:19:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060413002/20001
5 years, 8 months ago (2015-04-07 21:20:24 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-07 21:24:24 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/992c398b2fb0e7ab9c7ba58a8eb36787e03962e4 Cr-Commit-Position: refs/heads/master@{#324122}
5 years, 8 months ago (2015-04-07 21:25:14 UTC) #8
cbiesinger
Could this have caused layout test failures on Windows XP? https://build.chromium.org/p/chromium.webkit/builders/WebKit%20XP https://storage.googleapis.com/chromium-layout-test-archives/WebKit_XP/18254/layout-test-results/results.html
5 years, 8 months ago (2015-04-08 17:46:14 UTC) #9
Ian Vollick
On 2015/04/08 17:46:14, cbiesinger wrote: > Could this have caused layout test failures on Windows ...
5 years, 8 months ago (2015-04-08 17:52:42 UTC) #10
ajuma
On 2015/04/08 17:46:14, cbiesinger wrote: > Could this have caused layout test failures on Windows ...
5 years, 8 months ago (2015-04-08 17:53:01 UTC) #11
ajuma
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1077433003/ by ajuma@chromium.org. ...
5 years, 8 months ago (2015-04-08 21:49:36 UTC) #12
ajuma
PTAL. I've fixed the incorrect visible rect (I was calling Scale when I should have ...
5 years, 8 months ago (2015-04-10 17:05:09 UTC) #13
Ian Vollick
lgtm (great test!) https://codereview.chromium.org/1060413002/diff/140001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1060413002/diff/140001/cc/trees/property_tree.cc#newcode80 cc/trees/property_tree.cc:80: gfx::Transform* transform) const { Thank you ...
5 years, 8 months ago (2015-04-10 17:10:40 UTC) #14
ajuma
https://codereview.chromium.org/1060413002/diff/140001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1060413002/diff/140001/cc/trees/property_tree.cc#newcode80 cc/trees/property_tree.cc:80: gfx::Transform* transform) const { On 2015/04/10 17:10:39, vollick wrote: ...
5 years, 8 months ago (2015-04-10 17:19:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060413002/140001
5 years, 8 months ago (2015-04-10 17:22:45 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 8 months ago (2015-04-10 18:30:30 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 18:31:45 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3ae2b258d39e00f11212167be326b5a6a78d3793
Cr-Commit-Position: refs/heads/master@{#324671}

Powered by Google App Engine
This is Rietveld 408576698