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

Unified Diff: ui/compositor/compositor.cc

Issue 14386024: Add debug shortcuts that toggles options to shows debug borders and fps counters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 077034d1bbcc029e806ead346e29b1e4312911d6..fc9b07f0d4c8f9f0faa7225cb52aa1b957ded20e 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -759,13 +759,12 @@ Compositor::OffscreenContextProviderForCompositorThread() {
OffscreenContextProviderForCompositorThread();
}
-bool Compositor::IsShowPaintRectsEnabled() const {
- return host_->debug_state().show_paint_rects;
+const cc::LayerTreeDebugState& Compositor::GetLayerTreeDebugState() const {
+ return host_->debug_state();
}
-void Compositor::SetShowPaintRectsEnabled(bool enabled) {
- cc::LayerTreeDebugState debug_state = host_->debug_state();
- debug_state.show_paint_rects = enabled;
+void Compositor::SetLayerTreeDebugState(
+ const cc::LayerTreeDebugState& debug_state) {
host_->SetDebugState(debug_state);
}
« no previous file with comments | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698