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

Issue 92853002: Support for drawing a debug border around animated layers (Closed)

Created:
7 years ago by avallee
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Support for drawing a debug border around animated layers This is the groundwork for showing a border around the animation bounds of a layer. The animation bounds are the bounds of the layer transformed to screen space where layers that have an animation instead transform by an "inflate" step. To follow, compute the animation bounds of layers when needed. + Add debug rect code to show a lime green border around layers that have animation bounds. + Add --show-layer-animation-bounds that will enable the drawing of the green box. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239863

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address vollick's comments. #

Total comments: 5

Patch Set 3 : Address danakj and vollick comments. #

Total comments: 4

Patch Set 4 : Disable animation bounds in the ui compositor (incorrect for now anyways). #

Patch Set 5 : Add ui version of the flag. #

Total comments: 1

Patch Set 6 : Copy switches for chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -1 line) Patch
M cc/base/switches.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M cc/debug/debug_colors.h View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/debug/debug_colors.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M cc/debug/debug_rect_history.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/debug/debug_rect_history.cc View 1 2 2 chunks +27 lines, -0 lines 0 comments Download
M cc/debug/layer_tree_debug_state.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/debug/layer_tree_debug_state.cc View 4 chunks +6 lines, -1 line 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
avallee
7 years ago (2013-11-27 21:52:53 UTC) #1
Ian Vollick
This does a little more than plumbing a switch. It also adds the debug rects ...
7 years ago (2013-11-28 00:05:12 UTC) #2
avallee
https://codereview.chromium.org/92853002/diff/1/cc/debug/debug_colors.cc File cc/debug/debug_colors.cc (right): https://codereview.chromium.org/92853002/diff/1/cc/debug/debug_colors.cc#newcode256 cc/debug/debug_colors.cc:256: // Animation bounds are line-green. On 2013/11/28 00:05:12, Ian ...
7 years ago (2013-11-28 00:31:07 UTC) #3
Ian Vollick
cc lgtm w/ nit. You'll need OWNERS for content/ https://codereview.chromium.org/92853002/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/92853002/diff/20001/cc/layers/layer_impl.h#newcode357 cc/layers/layer_impl.h:357: ...
7 years ago (2013-11-28 00:44:58 UTC) #4
danakj
https://codereview.chromium.org/92853002/diff/20001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/92853002/diff/20001/cc/debug/debug_rect_history.cc#newcode240 cc/debug/debug_rect_history.cc:240: for (int surface_index = render_surface_layer_list.size() - 1; Why not ...
7 years ago (2013-11-28 17:48:56 UTC) #5
Ian Vollick
https://codereview.chromium.org/92853002/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/92853002/diff/20001/cc/layers/layer_impl.h#newcode357 cc/layers/layer_impl.h:357: // on success. On 2013/11/28 00:44:58, Ian Vollick wrote: ...
7 years ago (2013-12-06 20:24:27 UTC) #6
avallee
https://codereview.chromium.org/92853002/diff/20001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/92853002/diff/20001/cc/debug/debug_rect_history.cc#newcode240 cc/debug/debug_rect_history.cc:240: for (int surface_index = render_surface_layer_list.size() - 1; On 2013/11/28 ...
7 years ago (2013-12-06 22:08:32 UTC) #7
danakj
Thanks, LayerIterator LGTM
7 years ago (2013-12-06 22:12:05 UTC) #8
avallee
kbr@chromium.org: Please review changes in content/
7 years ago (2013-12-09 19:12:14 UTC) #9
Ken Russell (switch to Gerrit)
content/renderer/gpu LGTM https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc#newcode184 content/renderer/gpu/render_widget_compositor.cc:184: // These flags should be mirrored by ...
7 years ago (2013-12-09 19:19:14 UTC) #10
Ken Russell (switch to Gerrit)
content/browser/renderer_host also LGTM
7 years ago (2013-12-09 19:20:09 UTC) #11
avallee
https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc#newcode184 content/renderer/gpu/render_widget_compositor.cc:184: // These flags should be mirrored by UI versions ...
7 years ago (2013-12-09 21:30:26 UTC) #12
danakj
https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc#newcode184 content/renderer/gpu/render_widget_compositor.cc:184: // These flags should be mirrored by UI versions ...
7 years ago (2013-12-09 21:43:52 UTC) #13
avallee
https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/92853002/diff/40001/content/renderer/gpu/render_widget_compositor.cc#newcode184 content/renderer/gpu/render_widget_compositor.cc:184: // These flags should be mirrored by UI versions ...
7 years ago (2013-12-09 21:48:05 UTC) #14
danakj
https://codereview.chromium.org/92853002/diff/80001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/92853002/diff/80001/content/browser/renderer_host/render_process_host_impl.cc#newcode1061 content/browser/renderer_host/render_process_host_impl.cc:1061: // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. You need to ...
7 years ago (2013-12-09 21:51:23 UTC) #15
avallee
stevenjb@chromium.org: Please review changes in chrome/browser/chromeos Thanks.
7 years ago (2013-12-10 18:33:00 UTC) #16
stevenjb
c/b/chromeos lgtm
7 years ago (2013-12-10 18:36:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avallee@chromium.org/92853002/100001
7 years ago (2013-12-10 18:41:02 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-10 22:18:43 UTC) #19
Message was sent while issue was closed.
Change committed as 239863

Powered by Google App Engine
This is Rietveld 408576698