Index: ui/compositor/compositor.cc |
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc |
index a3424b3f07561ebc07ecc4539f63f56f7ef67aa3..077034d1bbcc029e806ead346e29b1e4312911d6 100644 |
--- a/ui/compositor/compositor.cc |
+++ b/ui/compositor/compositor.cc |
@@ -759,6 +759,16 @@ Compositor::OffscreenContextProviderForCompositorThread() { |
OffscreenContextProviderForCompositorThread(); |
} |
+bool Compositor::IsShowPaintRectsEnabled() const { |
+ return host_->debug_state().show_paint_rects; |
+} |
+ |
+void Compositor::SetShowPaintRectsEnabled(bool enabled) { |
+ cc::LayerTreeDebugState debug_state = host_->debug_state(); |
+ debug_state.show_paint_rects = enabled; |
+ host_->SetDebugState(debug_state); |
+} |
+ |
scoped_refptr<CompositorLock> Compositor::GetCompositorLock() { |
if (!compositor_lock_) { |
compositor_lock_ = new CompositorLock(this); |