diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-23 18:38:08 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-23 18:38:08 +0000 |
commit | 8b257c9762e9051c1d4e794900d1084fd81913cd (patch) | |
tree | 36a68a41347aed8661b800c524d336a921bf7972 /ash/debug.h | |
parent | 65a3cd78252f3a1edae4ae595820e0cb2cd0ba9d (diff) | |
download | chromium_src-8b257c9762e9051c1d4e794900d1084fd81913cd.zip chromium_src-8b257c9762e9051c1d4e794900d1084fd81913cd.tar.gz chromium_src-8b257c9762e9051c1d4e794900d1084fd81913cd.tar.bz2 |
Add debug shortcuts that toggles options to shows paint rects, debug borders and fps counters.
Cleanup: Separate desktop shortcuts which are useful only on linux desktop, and debug shortcuts.
BUG=227375
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195733
Review URL: https://chromiumcodereview.appspot.com/14050009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195854 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/debug.h')
-rw-r--r-- | ash/debug.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ash/debug.h b/ash/debug.h new file mode 100644 index 0000000..1b2561e --- /dev/null +++ b/ash/debug.h @@ -0,0 +1,22 @@ +// Copyright (c) 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef ASH_DEBUG_H_ +#define ASH_DEBUG_H_ + +#include "ash/ash_export.h" + +namespace ash { +namespace debug { + +// Toggles debugging features controlled by +// cc::LayerTreeDebugState. +ASH_EXPORT void ToggleShowPaintRects(); +ASH_EXPORT void ToggleShowDebugBorders(); +ASH_EXPORT void ToggleShowFpsCounter(); + +} // debug +} // ash + +#endif // ASH_DEBUG_H_ |