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

Issue 8508009: Debugging code to print layer tree (Closed)

Created:
9 years, 1 month ago by pkotwicz
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Ian Vollick, piman+watch_chromium.org, dhollowa, tfarina, jonathan.backer
Visibility:
Public.

Description

Added some debugging code to print layer tree. Also added a name attribute to the layer. IF !NDEBUG is defined, layer takes on the name of the view/window which created it Please comment as to where the debug_utils.cc should be located, it feels like the wrong place. I have another patch to print the window tree which I'll submit for review once I get this one in. I think this is a bit simpler and more useful than http://codereview.chromium.org/8366008/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110528

Patch Set 1 #

Total comments: 9

Patch Set 2 : Changes as requested #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -0 lines) Patch
M ui/aura/window.cc View 1 2 chunks +13 lines, -0 lines 6 comments Download
M ui/gfx/compositor/compositor.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
A ui/gfx/compositor/debug_utils.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A ui/gfx/compositor/debug_utils.cc View 1 1 chunk +91 lines, -0 lines 4 comments Download
M ui/gfx/compositor/layer.h View 3 chunks +6 lines, -0 lines 1 comment Download
M views/view.cc View 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
pkotwicz
9 years, 1 month ago (2011-11-09 14:19:23 UTC) #1
tfarina
http://codereview.chromium.org/8508009/diff/1/ui/aura/window.cc File ui/aura/window.cc (right): http://codereview.chromium.org/8508009/diff/1/ui/aura/window.cc#newcode78 ui/aura/window.cc:78: #if !defined(NDEBUG) #ifndef NDEBUG ? one or the other ...
9 years, 1 month ago (2011-11-09 14:30:50 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/8508009/diff/1/ui/aura/window.cc File ui/aura/window.cc (right): http://codereview.chromium.org/8508009/diff/1/ui/aura/window.cc#newcode85 ui/aura/window.cc:85: base::snprintf(id_buf, sizeof(id_buf), " %d", id()); Can you do all ...
9 years, 1 month ago (2011-11-09 17:03:51 UTC) #3
pkotwicz
http://codereview.chromium.org/8508009/diff/1/ui/aura/window.cc File ui/aura/window.cc (right): http://codereview.chromium.org/8508009/diff/1/ui/aura/window.cc#newcode85 ui/aura/window.cc:85: base::snprintf(id_buf, sizeof(id_buf), " %d", id()); I could do this. ...
9 years, 1 month ago (2011-11-09 18:56:02 UTC) #4
pkotwicz
9 years, 1 month ago (2011-11-11 02:22:45 UTC) #5
tfarina
lgtm, but you need OWNERS approval anyway. Just some nits below. Thanks! http://codereview.chromium.org/8508009/diff/6001/ui/aura/window.cc File ui/aura/window.cc ...
9 years, 1 month ago (2011-11-11 18:46:28 UTC) #6
tfarina
sorry for the noise, just one more. http://codereview.chromium.org/8508009/diff/6001/views/view.cc File views/view.cc (right): http://codereview.chromium.org/8508009/diff/6001/views/view.cc#newcode1784 views/view.cc:1784: #if !defined(NDEBUG) ...
9 years, 1 month ago (2011-11-11 18:48:38 UTC) #7
Ben Goodger (Google)
LGTM. Sorry for the delay. Can you add a hotkey to the shell to do ...
9 years, 1 month ago (2011-11-14 22:59:08 UTC) #8
pkotwicz
What file should I look at for hotkeys? It will save me some time in ...
9 years, 1 month ago (2011-11-15 21:07:28 UTC) #9
Ben Goodger (Google)
9 years, 1 month ago (2011-11-15 21:23:09 UTC) #10
You can just shove this in Desktop for now near the rotation stuff, or if
mazda beats you to it, wherever he moved the rotation stuff.

-Ben

On Tue, Nov 15, 2011 at 1:07 PM, <pkotwicz@chromium.org> wrote:

> What file should I look at for hotkeys? It will save me some time in code
> search
> =]
>
>
>
>
http://codereview.chromium.**org/8508009/<http://codereview.chromium.org/8508...
>

Powered by Google App Engine
This is Rietveld 408576698