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

Issue 2225973003: cc: Remove usage of ComputeVisibleRects on main thread (Closed)

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

Description

cc: Remove usage of ComputeVisibleRects on main thread Target space transform will not be computed on main thread. Currently we only use it in tests and subtree skipping logic. This CL removes the usage of ComputeVisibleRects on main thread: 1) Do not skip for back face visibility on main thread; 2) Remove main thread ComputeVisibleRects in unit tests. 3) Remove the usage in benchmarks. BUG=581827 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/713aedbdd27d1bd0d431a02220748c740b471af9 Cr-Commit-Position: refs/heads/master@{#411162}

Patch Set 1 #

Patch Set 2 : Remove ComputVisibleRects<Layer> #

Patch Set 3 : Do not skip for back face visibility #

Total comments: 1

Patch Set 4 : Project rects back to layer space after clipped by viewport. #

Total comments: 8

Patch Set 5 : Address comments and fix perf regressions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -104 lines) Patch
M cc/debug/invalidation_benchmark.cc View 1 2 3 4 2 chunks +9 lines, -7 lines 0 comments Download
M cc/layers/layer.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/layer.cc View 1 1 chunk +0 lines, -9 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 7 chunks +24 lines, -29 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 9 chunks +64 lines, -55 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
sunxd
4 years, 4 months ago (2016-08-09 19:16:14 UTC) #9
sunxd
https://codereview.chromium.org/2225973003/diff/40001/cc/debug/invalidation_benchmark.cc File cc/debug/invalidation_benchmark.cc (right): https://codereview.chromium.org/2225973003/diff/40001/cc/debug/invalidation_benchmark.cc#newcode83 cc/debug/invalidation_benchmark.cc:83: gfx::Rect visible_layer_rect = MathUtil::MapEnclosingClippedRect( I forgot to make it ...
4 years, 4 months ago (2016-08-09 19:17:50 UTC) #10
sunxd
4 years, 4 months ago (2016-08-09 19:26:49 UTC) #11
sunxd
4 years, 4 months ago (2016-08-09 19:35:02 UTC) #15
jaydasika
lgtm % ajuma
4 years, 4 months ago (2016-08-09 20:39:59 UTC) #16
ajuma
Generally looks great. https://codereview.chromium.org/2225973003/diff/60001/cc/debug/invalidation_benchmark.cc File cc/debug/invalidation_benchmark.cc (right): https://codereview.chromium.org/2225973003/diff/60001/cc/debug/invalidation_benchmark.cc#newcode78 cc/debug/invalidation_benchmark.cc:78: gfx::Rect layer_rect = gfx::Rect(position, layer->bounds()); The ...
4 years, 4 months ago (2016-08-09 20:44:02 UTC) #17
sunxd
https://codereview.chromium.org/2225973003/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2225973003/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode284 cc/trees/layer_tree_host_common_unittest.cc:284: for (auto layer : *layer_list) { On 2016/08/09 20:44:02, ...
4 years, 4 months ago (2016-08-10 17:19:37 UTC) #20
ajuma
Thanks, lgtm
4 years, 4 months ago (2016-08-10 19:18:18 UTC) #21
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/2225973003/80001
4 years, 4 months ago (2016-08-10 21:04:16 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-10 22:22:34 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 22:24:31 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/713aedbdd27d1bd0d431a02220748c740b471af9
Cr-Commit-Position: refs/heads/master@{#411162}

Powered by Google App Engine
This is Rietveld 408576698