summaryrefslogtreecommitdiffstats
path: root/ui/compositor
diff options
context:
space:
mode:
Diffstat (limited to 'ui/compositor')
-rw-r--r--ui/compositor/compositor.cc9
-rw-r--r--ui/compositor/compositor.h5
2 files changed, 7 insertions, 7 deletions
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 077034d..fc9b07f 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);
}
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 0d5bfc9..10c6979 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -31,6 +31,7 @@ class RunLoop;
namespace cc {
class ContextProvider;
class Layer;
+class LayerTreeDebugState;
class LayerTreeHost;
}
@@ -363,8 +364,8 @@ class COMPOSITOR_EXPORT Compositor
bool IsLocked() { return compositor_lock_ != NULL; }
- bool IsShowPaintRectsEnabled() const;
- void SetShowPaintRectsEnabled(bool enabled);
+ const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
+ void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state);
private:
friend class base::RefCounted<Compositor>;