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

Issue 917763003: cc: Move occlusion debug rects into the debug layer borders. (Closed)

Created:
5 years, 10 months ago by danakj
Modified:
5 years, 10 months ago
Reviewers:
ajuma, enne (OOO), vmpstr, piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, nkostylev+watch_chromium.org, Ian Vollick, dzhioev+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, stevenjb+watch_chromium.org, danakj+watch_chromium.org, davemoore+watch_chromium.org, piman, hendrikw, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move occlusion debug rects into the debug layer borders. Previously we had 2 command line flags to show opaque and non-opaque rects. These were only available by command line and AFAIK are not ever used. Once upon a time, in a ui compositor far far away, the layer border color encoded if the layer was marked as contents_opaque(). This was a useful feature for chrome developers. When the border drawing code was removed from the ui compositor and consolidated into cc, this feature was destroyed since cc had many more layer colors to support. The opaque/non-opaque rect drawing is a lot of lines of code and hacked into weird places, that get in the way of removing the occlusion tracker from the draw loop. So, just remove it, and instead have the layer borders show opaqueness again. We do so by having a translucent larger layer inside the normal layer for opaque windows. (For the DelegatedRendererLayerImpl, since it's a special rainbow window, it does a fill over its contents of awesomeness.) R=ajuma, enne, vmpstr BUG=446751 Committed: https://crrev.com/069ac12bec702497d2fdad632397ac652eecc2d1 Cr-Commit-Position: refs/heads/master@{#315896}

Patch Set 1 #

Total comments: 6

Patch Set 2 : occlusiondebugrects: reviewed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -332 lines) Patch
M cc/base/switches.h View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/base/switches.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M cc/debug/debug_colors.h View 1 chunk +0 lines, -8 lines 0 comments Download
M cc/debug/debug_colors.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M cc/debug/debug_rect_history.h View 3 chunks +0 lines, -15 lines 0 comments Download
M cc/debug/debug_rect_history.cc View 3 chunks +0 lines, -22 lines 0 comments Download
M cc/debug/layer_tree_debug_state.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/debug/layer_tree_debug_state.cc View 4 chunks +1 line, -8 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 1 1 chunk +26 lines, -12 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M cc/layers/render_surface_impl.h View 1 3 chunks +12 lines, -4 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 3 chunks +34 lines, -49 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 1 1 chunk +2 lines, -8 lines 0 comments Download
M cc/test/layer_test_common.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 3 chunks +33 lines, -23 lines 0 comments Download
M cc/trees/occlusion_tracker.h View 1 4 chunks +2 lines, -21 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 1 4 chunks +26 lines, -97 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
danakj
5 years, 10 months ago (2015-02-11 22:07:34 UTC) #1
danakj
+piman for content and ui review
5 years, 10 months ago (2015-02-11 22:07:52 UTC) #2
danakj
On 2015/02/11 22:07:52, danakj wrote: > +piman for content and ui review
5 years, 10 months ago (2015-02-11 22:08:14 UTC) #4
vmpstr
I didn't see this anywhere, but can you confirm that we don't push these rects ...
5 years, 10 months ago (2015-02-11 22:22:22 UTC) #5
danakj
On Wed, Feb 11, 2015 at 2:22 PM, <vmpstr@chromium.org> wrote: > I didn't see this ...
5 years, 10 months ago (2015-02-11 22:33:40 UTC) #6
piman
lgtm
5 years, 10 months ago (2015-02-11 23:06:42 UTC) #7
danakj
https://codereview.chromium.org/917763003/diff/1/cc/layers/delegated_renderer_layer_impl.cc File cc/layers/delegated_renderer_layer_impl.cc (right): https://codereview.chromium.org/917763003/diff/1/cc/layers/delegated_renderer_layer_impl.cc#newcode370 cc/layers/delegated_renderer_layer_impl.cc:370: static_cast<uint8_t>(SkColorGetA(colors[i % kNumColors]) * 0.1f)); On 2015/02/11 22:22:22, vmpstr ...
5 years, 10 months ago (2015-02-11 23:44:01 UTC) #9
danakj
PTAL
5 years, 10 months ago (2015-02-11 23:44:07 UTC) #10
vmpstr
lgtm
5 years, 10 months ago (2015-02-11 23:58:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917763003/20001
5 years, 10 months ago (2015-02-12 00:06:06 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-12 00:59:30 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 01:00:25 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/069ac12bec702497d2fdad632397ac652eecc2d1
Cr-Commit-Position: refs/heads/master@{#315896}

Powered by Google App Engine
This is Rietveld 408576698