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

Issue 11871008: cc: Stop using drawableContentRect for occlusion. (Closed)

Created:
7 years, 11 months ago by danakj
Modified:
7 years, 11 months ago
Reviewers:
Cris Neckar, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, shawnsingh, piman, backer
Visibility:
Public.

Description

cc: Stop using drawableContentRect for occlusion. The occlusion tracker has been using the drawableContentRect() which is not useful compared to the clipRect() unless queries go outside the bounds of the layer (which they would not). Also, the tests would override and fake out the layer drawableContentRect() instead of just making a clipRect() with an appropriate tree hierarchy. The unit tests are now more real, and set up clipping in legitimite ways, and drawableContentRect() is no longer used. This removes most of the usage of the drawableContentRect() outside of tests, making it easier to remove it entirely in the future if we like. Tested by all the occlusion tracker unit tests in cc_unittests. TBR=cdn@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177974

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : remove SharedQuadState.clipped_rect_in_target #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -282 lines) Patch
M cc/delegated_renderer_layer_impl.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/delegated_renderer_layer_impl_unittest.cc View 1 2 3 5 chunks +2 lines, -5 lines 0 comments Download
M cc/draw_quad.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/draw_quad_unittest.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M cc/gl_renderer_pixeltest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layer_impl.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/occlusion_tracker.h View 2 chunks +2 lines, -5 lines 0 comments Download
M cc/occlusion_tracker.cc View 1 9 chunks +13 lines, -19 lines 0 comments Download
M cc/occlusion_tracker_unittest.cc View 43 chunks +93 lines, -189 lines 0 comments Download
M cc/quad_culler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/render_pass_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/render_surface_impl.cc View 1 2 3 2 chunks +1 line, -23 lines 0 comments Download
M cc/shared_quad_state.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M cc/shared_quad_state.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M cc/software_renderer_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/render_pass_test_utils.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M cc/tiled_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/tiled_layer_unittest.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M content/common/cc_messages.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 4 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
danakj
7 years, 11 months ago (2013-01-18 04:17:58 UTC) #1
enne (OOO)
https://codereview.chromium.org/11871008/diff/5001/cc/occlusion_tracker_unittest.cc File cc/occlusion_tracker_unittest.cc (right): https://codereview.chromium.org/11871008/diff/5001/cc/occlusion_tracker_unittest.cc#newcode493 cc/occlusion_tracker_unittest.cc:493: EXPECT_RECT_EQ(gfx::Rect(31, 29, 69, 1), occlusion.unoccludedLayerContentRect(parent, gfx::Rect(31, 29, 70, 70))); ...
7 years, 11 months ago (2013-01-20 23:34:27 UTC) #2
danakj
https://codereview.chromium.org/11871008/diff/5001/cc/occlusion_tracker_unittest.cc File cc/occlusion_tracker_unittest.cc (right): https://codereview.chromium.org/11871008/diff/5001/cc/occlusion_tracker_unittest.cc#newcode493 cc/occlusion_tracker_unittest.cc:493: EXPECT_RECT_EQ(gfx::Rect(31, 29, 69, 1), occlusion.unoccludedLayerContentRect(parent, gfx::Rect(31, 29, 70, 70))); ...
7 years, 11 months ago (2013-01-20 23:36:05 UTC) #3
enne (OOO)
lgtm
7 years, 11 months ago (2013-01-21 00:53:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11871008/2002
7 years, 11 months ago (2013-01-21 00:57:02 UTC) #5
commit-bot: I haz the power
Failed to apply patch for cc/delegated_renderer_layer_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-21 00:57:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11871008/14001
7 years, 11 months ago (2013-01-22 01:27:48 UTC) #7
commit-bot: I haz the power
Presubmit check for 11871008-14001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-22 01:28:16 UTC) #8
danakj
+cdn@chromium.org for cc_messages. TBR'ing as I'm just removing a field.
7 years, 11 months ago (2013-01-22 01:30:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11871008/14001
7 years, 11 months ago (2013-01-22 01:30:33 UTC) #10
commit-bot: I haz the power
7 years, 11 months ago (2013-01-22 03:43:04 UTC) #11
Message was sent while issue was closed.
Change committed as 177974

Powered by Google App Engine
This is Rietveld 408576698