Index: ui/compositor/compositor.cc |
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc |
index bea2eb7f3c98f7725e7166edf4f7b3d6e8cebbe9..74f04d57c98d9affd4a8de499b11f206806ca1ee 100644 |
--- a/ui/compositor/compositor.cc |
+++ b/ui/compositor/compositor.cc |
@@ -228,6 +228,10 @@ void Compositor::ScheduleRedrawRect(const gfx::Rect& damage_rect) { |
host_->SetNeedsCommit(); |
} |
+void Compositor::DisableSwap() { |
piman
2015/02/11 02:48:22
I'd prefer calling it FinishAllRendering(). It doe
Chirantan Ekbote
2015/02/18 02:47:13
Done.
|
+ host_->FinishAllRendering(); |
+} |
+ |
void Compositor::DisableSwapUntilResize() { |
host_->FinishAllRendering(); |
context_factory_->ResizeDisplay(this, gfx::Size()); |
@@ -264,6 +268,10 @@ void Compositor::SetVisible(bool visible) { |
host_->SetVisible(visible); |
} |
+bool Compositor::IsVisible() { |
+ return host_->visible(); |
+} |
+ |
scoped_refptr<CompositorVSyncManager> Compositor::vsync_manager() const { |
return vsync_manager_; |
} |