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

Unified Diff: cc/surfaces/display.cc

Issue 2238693002: Plumb SetVisible from ui::Compositor to the DirectRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 9ded1a21c70bea9d719ff78c4395aef634831384..5589d21b24b24b5d80b8ec75a9b56f87d69c12d0 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -104,6 +104,12 @@ void Display::SetSurfaceId(const SurfaceId& id, float device_scale_factor) {
scheduler_->SetNewRootSurface(id);
}
+void Display::SetVisible(bool visible) {
+ TRACE_EVENT1("cc", "Display::SetVisible", "visible", visible);
+ renderer_->SetVisible(visible);
+ // TODO(danakj): Could tell DisplayScheduler about the visiblity.
+}
+
void Display::Resize(const gfx::Size& size) {
if (size == current_surface_size_)
return;

Powered by Google App Engine
This is Rietveld 408576698