Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Issue 12909003: cc: Add --ui-foo flags for all compositor debug visualizations. (Closed)

Created:
7 years, 9 months ago by danakj
Modified:
7 years, 9 months ago
Reviewers:
sky, piman
CC:
chromium-reviews, jonathan.backer, Ian Vollick, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, jamesr, enne (OOO), backer
Visibility:
Public.

Description

cc: Add --ui-foo flags for all compositor debug visualizations. For every --show-debug-thing flag, we should have a mirrored --ui-show-debug-thing flag to show the same information in the UI compositor. Move the current ui-compositor flags to cc/base/switches.h where the renderer-compositor flags are, so that the mirrored nature is easily seen and maintained. Also move the few renderer-compositor flags for these compositor features to cc/base/switches.h. The only flag that can't move is kShowPaintRects, as it is also used for the software non-compositing path. So instead we mirror this flag in the ui-compositor switches. R=piman Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189062

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -93 lines) Patch
M cc/base/switches.h View 1 2 2 chunks +27 lines, -8 lines 0 comments Download
M cc/base/switches.cc View 1 2 4 chunks +52 lines, -29 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 3 chunks +29 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 2 chunks +26 lines, -8 lines 0 comments Download
M ui/compositor/compositor_switches.h View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M ui/compositor/compositor_switches.cc View 1 2 3 1 chunk +2 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
danakj
7 years, 9 months ago (2013-03-18 23:19:26 UTC) #1
danakj
https://codereview.chromium.org/12909003/diff/1/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/12909003/diff/1/cc/base/switches.cc#newcode84 cc/base/switches.cc:84: const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; This and ui-show-layer-tree aren't ...
7 years, 9 months ago (2013-03-18 23:20:02 UTC) #2
danakj
https://codereview.chromium.org/12909003/diff/1/ui/compositor/compositor.cc File ui/compositor/compositor.cc (left): https://codereview.chromium.org/12909003/diff/1/ui/compositor/compositor.cc#oldcode427 ui/compositor/compositor.cc:427: settings.partialSwapEnabled = oh this should only replace the initialDebugState ...
7 years, 9 months ago (2013-03-18 23:29:39 UTC) #3
danakj
https://codereview.chromium.org/12909003/diff/1/ui/compositor/compositor.cc File ui/compositor/compositor.cc (left): https://codereview.chromium.org/12909003/diff/1/ui/compositor/compositor.cc#oldcode427 ui/compositor/compositor.cc:427: settings.partialSwapEnabled = On 2013/03/18 23:29:39, danakj wrote: > oh ...
7 years, 9 months ago (2013-03-18 23:34:14 UTC) #4
piman
Really 6 vs half a dozen. To me it feels like a layering violation (just ...
7 years, 9 months ago (2013-03-18 23:43:49 UTC) #5
danakj
https://codereview.chromium.org/12909003/diff/6001/ui/compositor/compositor_switches.cc File ui/compositor/compositor_switches.cc (right): https://codereview.chromium.org/12909003/diff/6001/ui/compositor/compositor_switches.cc#newcode11 ui/compositor/compositor_switches.cc:11: const char kUIEnablePartialSwap[] = "ui-enable-partial-swap"; On 2013/03/18 23:43:49, piman ...
7 years, 9 months ago (2013-03-18 23:46:08 UTC) #6
danakj
I also copied all the compositor flags (other than android-specific top controls ones) to chrome/browser/chromeos/login/chrome_restart_request.cc ...
7 years, 9 months ago (2013-03-19 01:55:56 UTC) #7
piman
lgtm
7 years, 9 months ago (2013-03-19 02:13:19 UTC) #8
danakj
+sky for chrome/ OWNERS
7 years, 9 months ago (2013-03-19 02:24:25 UTC) #9
sky
LGTM https://codereview.chromium.org/12909003/diff/17002/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/12909003/diff/17002/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode93 chrome/browser/chromeos/login/chrome_restart_request.cc:93: ::switches::kDisableThreadedCompositing, Would be nice if we try to ...
7 years, 9 months ago (2013-03-19 14:27:43 UTC) #10
danakj
https://codereview.chromium.org/12909003/diff/17002/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/12909003/diff/17002/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode93 chrome/browser/chromeos/login/chrome_restart_request.cc:93: ::switches::kDisableThreadedCompositing, On 2013/03/19 14:27:43, sky wrote: > Would be ...
7 years, 9 months ago (2013-03-19 15:42:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/12909003/34001
7 years, 9 months ago (2013-03-19 17:28:25 UTC) #12
danakj
7 years, 9 months ago (2013-03-19 18:47:03 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r189062 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698