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

Issue 2625203004: Add debug method to print surface references. (Closed)

Created:
3 years, 11 months ago by kylechar
Modified:
3 years, 11 months ago
Reviewers:
danakj
CC:
chromium-reviews, rjkroege, cc-bugs_chromium.org, Saman Sami
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add debug method to print surface references. SurfaceManager::SurfaceReferencesToString() prints current surface references starting at the top level root to a string. Only compiled for debug/DCHECK builds. Helpful to visualize current references. BUG=659227 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2625203004 Cr-Commit-Position: refs/heads/master@{#444432} Committed: https://chromium.googlesource.com/chromium/src/+/2226adf3f8999d114147ffcfc79089cc2e136076

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 20

Patch Set 3 : Address comments. #

Total comments: 4

Patch Set 4 : Little fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -4 lines) Patch
M cc/surfaces/surface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_manager.h View 1 2 3 6 chunks +20 lines, -1 line 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 chunks +48 lines, -1 line 0 comments Download

Messages

Total messages: 23 (13 generated)
kylechar
3 years, 11 months ago (2017-01-17 22:30:57 UTC) #5
danakj
https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc#newcode23 cc/surfaces/surface_manager.cc:23: std::string SurfaceToString(const Surface& surface) { seems like this should ...
3 years, 11 months ago (2017-01-17 23:21:57 UTC) #6
kylechar
https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc#newcode23 cc/surfaces/surface_manager.cc:23: std::string SurfaceToString(const Surface& surface) { On 2017/01/17 23:21:57, danakj ...
3 years, 11 months ago (2017-01-18 15:06:18 UTC) #7
danakj
https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc#newcode29 cc/surfaces/surface_manager.cc:29: .render_pass_list[0] On 2017/01/18 15:06:18, kylechar wrote: > On 2017/01/17 ...
3 years, 11 months ago (2017-01-18 16:50:40 UTC) #8
danakj
https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc#newcode542 cc/surfaces/surface_manager.cc:542: void SurfaceManager::PrintSurfaceReferencesImpl(const SurfaceId& surface_id, On 2017/01/18 15:06:18, kylechar wrote: ...
3 years, 11 months ago (2017-01-18 16:53:47 UTC) #9
danakj
LGTM https://codereview.chromium.org/2625203004/diff/40001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2625203004/diff/40001/cc/surfaces/surface_manager.cc#newcode536 cc/surfaces/surface_manager.cc:536: *str << surface->GetEligibleFrame() can you try using a ...
3 years, 11 months ago (2017-01-18 16:57:11 UTC) #10
kylechar
Thanks! https://codereview.chromium.org/2625203004/diff/40001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2625203004/diff/40001/cc/surfaces/surface_manager.cc#newcode536 cc/surfaces/surface_manager.cc:536: *str << surface->GetEligibleFrame() On 2017/01/18 16:57:11, danakj (slow) ...
3 years, 11 months ago (2017-01-18 18:04:58 UTC) #13
kylechar
On 2017/01/18 16:50:40, danakj (slow) wrote: > https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc > File cc/surfaces/surface_manager.cc (right): > > https://codereview.chromium.org/2625203004/diff/20001/cc/surfaces/surface_manager.cc#newcode29 ...
3 years, 11 months ago (2017-01-18 18:31:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2625203004/60001
3 years, 11 months ago (2017-01-18 18:32:48 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 19:08:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2226adf3f8999d114147ffcfc790...

Powered by Google App Engine
This is Rietveld 408576698