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

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)

Created:
3 years, 8 months ago by reveman
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, Ian Vollick
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Add debug flag to show composited layer borders in ChromeOS UI. This adds an entry to chrome://flags that allows layer borders to be enabled for Chrome OS UI. It also makes the debug border setting a bitset so borders for individual layer types can be enabled. This makes the debug flag more useful when debugging a specific layer type (e.g. render surface layers). BUG=678236 TEST=chrome --ui-show-composited-layer-borders=renderpass CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2795703002 Cr-Commit-Position: refs/heads/master@{#464640} Committed: https://chromium.googlesource.com/chromium/src/+/5be07ac89aea29234eb908ec661881fb977bdd9b

Patch Set 1 #

Patch Set 2 : add debug border bitset #

Total comments: 6

Patch Set 3 : constants and null string enables all #

Patch Set 4 : histograms.xml #

Total comments: 8

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -16 lines) Patch
M ash/debug.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/base/switches.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/debug/layer_tree_debug_state.h View 1 3 chunks +11 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/surface_layer_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 2 chunks +28 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (17 generated)
reveman
Please take a look. Having an about flag for this that is limited to render ...
3 years, 8 months ago (2017-04-05 13:38:12 UTC) #3
danakj
Did you think about ways to just improve ui-show-layer-borders? It'd be nice to have less ...
3 years, 8 months ago (2017-04-05 14:53:38 UTC) #4
danakj
If you think filtering is mandatory, then maybe --ui-show-layer-borders=renderpass? Then we could add other things ...
3 years, 8 months ago (2017-04-05 14:55:28 UTC) #5
danakj
Also, fwiw, I suggest using renderpass instead of render surface as terminology always. RenderSurfaceImpl is ...
3 years, 8 months ago (2017-04-05 14:56:23 UTC) #6
reveman
ptal
3 years, 8 months ago (2017-04-05 22:55:11 UTC) #8
danakj
LG just want existing use of the flag to not change behaviour https://codereview.chromium.org/2795703002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc ...
3 years, 8 months ago (2017-04-13 15:25:51 UTC) #9
reveman
ptal +derat for ash/debug.cc +jbauman for content/renderer/gpu/render_widget_compositor.cc https://codereview.chromium.org/2795703002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2795703002/diff/20001/chrome/browser/about_flags.cc#newcode443 chrome/browser/about_flags.cc:443: cc::switches::kUIShowCompositedLayerBorders, "renderpass"}, ...
3 years, 8 months ago (2017-04-13 17:00:46 UTC) #11
Daniel Erat
//ash lgtm
3 years, 8 months ago (2017-04-13 17:23:54 UTC) #14
reveman
+asvitkine for tools/metrics/histograms/histograms.xml
3 years, 8 months ago (2017-04-13 19:29:09 UTC) #18
Alexei Svitkine (slow)
lgtm
3 years, 8 months ago (2017-04-13 20:52:37 UTC) #21
jbauman
lgtm
3 years, 8 months ago (2017-04-13 21:09:36 UTC) #24
danakj
LGTM https://codereview.chromium.org/2795703002/diff/60001/cc/base/switches.h File cc/base/switches.h (right): https://codereview.chromium.org/2795703002/diff/60001/cc/base/switches.h#newcode52 cc/base/switches.h:52: CC_BASE_EXPORT extern const char kCompositedRenderpassBorders[]; nit: RenderPass is ...
3 years, 8 months ago (2017-04-13 22:35:42 UTC) #25
reveman
https://codereview.chromium.org/2795703002/diff/60001/cc/base/switches.h File cc/base/switches.h (right): https://codereview.chromium.org/2795703002/diff/60001/cc/base/switches.h#newcode52 cc/base/switches.h:52: CC_BASE_EXPORT extern const char kCompositedRenderpassBorders[]; On 2017/04/13 at 22:35:42, ...
3 years, 8 months ago (2017-04-13 23:32:47 UTC) #27
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/2795703002/80001
3 years, 8 months ago (2017-04-13 23:33:19 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/5be07ac89aea29234eb908ec661881fb977bdd9b
3 years, 8 months ago (2017-04-14 01:06:59 UTC) #32
ericrk
On 2017/04/14 01:06:59, commit-bot: I haz the power wrote: > Committed patchset #5 (id:80001) as ...
3 years, 8 months ago (2017-04-14 21:39:26 UTC) #33
reveman
3 years, 8 months ago (2017-04-15 00:16:20 UTC) #34
Message was sent while issue was closed.
On 2017/04/14 at 21:39:26, ericrk wrote:
> On 2017/04/14 01:06:59, commit-bot: I haz the power wrote:
> > Committed patchset #5 (id:80001) as
> >
https://chromium.googlesource.com/chromium/src/+/5be07ac89aea29234eb908ec6618...
> 
> From a quick bisect, it appears that this change made it so the "layer
borders" button in Inspect > Rendering no longer works.

Thanks for the bisect. I'll make sure this is fixed asap. Please revert the
change if needed.

Powered by Google App Engine
This is Rietveld 408576698