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

Issue 202523002: cc: Replace Region with SimpleEnclosedRegion for occlusion tracking (Closed)

Created:
6 years, 9 months ago by danakj
Modified:
6 years, 4 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman, vmpstr, Ian Vollick
Visibility:
Public.

Description

cc: Replace Region with SimpleEnclosedRegion for occlusion tracking Instead of using an arbitrary Region, which is costly (slow), use a new SimpleEnclosedRegion. This class tracks only a single Rect at a given time so it is very fast and small. It tries to get something like the largest rect enclosed in the actual Region (were we to track such a Region) in an online fashion, ie it doesn't remember anything except its current largest possible rect. BUG=405663 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291292

Patch Set 1 : simpleregion: . #

Total comments: 3

Patch Set 2 : simpleregion: . #

Patch Set 3 : simpleregion: . #

Total comments: 8

Patch Set 4 : simpleregion: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1545 lines, -758 lines) Patch
M cc/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/base/region.h View 3 chunks +2 lines, -1 line 0 comments Download
M cc/base/region.cc View 2 chunks +9 lines, -0 lines 0 comments Download
A cc/base/simple_enclosed_region.h View 1 chunk +122 lines, -0 lines 0 comments Download
A cc/base/simple_enclosed_region.cc View 1 2 3 1 chunk +136 lines, -0 lines 0 comments Download
A cc/base/simple_enclosed_region_unittest.cc View 1 chunk +637 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.h View 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/texture_layer.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/texture_layer.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/texture_layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/texture_layer_impl.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/layers/tiled_layer.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/tiled_layer.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/tiled_layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/tiled_layer_impl.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 15 chunks +15 lines, -15 lines 0 comments Download
M cc/resources/layer_tiling_data.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/layer_tiling_data.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M cc/test/test_occlusion_tracker.h View 1 chunk +10 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_occlusion.cc View 4 chunks +35 lines, -26 lines 0 comments Download
M cc/trees/occlusion_tracker.h View 3 chunks +5 lines, -8 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 1 2 18 chunks +79 lines, -68 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 2 3 50 chunks +449 lines, -601 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
danakj
https://codereview.chromium.org/202523002/diff/60001/cc/trees/occlusion_tracker_unittest.cc File cc/trees/occlusion_tracker_unittest.cc (left): https://codereview.chromium.org/202523002/diff/60001/cc/trees/occlusion_tracker_unittest.cc#oldcode668 cc/trees/occlusion_tracker_unittest.cc:668: EXPECT_TRUE(occlusion.OccludedLayer(parent, gfx::Rect(30, 30, 70, 70))); I removed all the ...
6 years, 4 months ago (2014-08-21 01:28:28 UTC) #1
enne (OOO)
https://codereview.chromium.org/202523002/diff/100001/cc/base/simple_enclosed_region.cc File cc/base/simple_enclosed_region.cc (right): https://codereview.chromium.org/202523002/diff/100001/cc/base/simple_enclosed_region.cc#newcode96 cc/base/simple_enclosed_region.cc:96: if (new_top <= top && new_bottom >= bottom) { ...
6 years, 4 months ago (2014-08-21 20:48:05 UTC) #2
danakj
https://codereview.chromium.org/202523002/diff/100001/cc/base/simple_enclosed_region.cc File cc/base/simple_enclosed_region.cc (right): https://codereview.chromium.org/202523002/diff/100001/cc/base/simple_enclosed_region.cc#newcode96 cc/base/simple_enclosed_region.cc:96: if (new_top <= top && new_bottom >= bottom) { ...
6 years, 4 months ago (2014-08-21 21:15:31 UTC) #3
enne (OOO)
lgtm https://codereview.chromium.org/202523002/diff/100001/cc/base/simple_enclosed_region.cc File cc/base/simple_enclosed_region.cc (right): https://codereview.chromium.org/202523002/diff/100001/cc/base/simple_enclosed_region.cc#newcode96 cc/base/simple_enclosed_region.cc:96: if (new_top <= top && new_bottom >= bottom) ...
6 years, 4 months ago (2014-08-21 21:19:40 UTC) #4
danakj
PTAL I can add ascii art to the comment if that would help. Let me ...
6 years, 4 months ago (2014-08-21 21:19:44 UTC) #5
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 4 months ago (2014-08-21 21:21:29 UTC) #6
danakj
The CQ bit was unchecked by danakj@chromium.org
6 years, 4 months ago (2014-08-21 21:21:32 UTC) #7
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 4 months ago (2014-08-21 21:46:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/202523002/120001
6 years, 4 months ago (2014-08-21 21:49:16 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-21 22:51:18 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 01:17:01 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (120001) as 291292

Powered by Google App Engine
This is Rietveld 408576698