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

Unified Diff: cc/surfaces/display.h

Issue 2238693002: Plumb SetVisible from ui::Compositor to the DirectRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: setvisible-browser: . 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.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index 0fc2fb0a7484bf5f6a4853c93ef61022cb655521..239d3b236c53c1047c5471d4d14ac129d45913c1 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -73,6 +73,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
// device_scale_factor is used to communicate to the external window system
// what scale this was rendered at.
void SetSurfaceId(const SurfaceId& id, float device_scale_factor);
+ void SetVisible(bool visible);
void Resize(const gfx::Size& new_size);
void SetColorSpace(const gfx::ColorSpace& color_space);
void SetExternalClip(const gfx::Rect& clip);
@@ -132,6 +133,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
gfx::Size current_surface_size_;
float device_scale_factor_ = 1.f;
gfx::ColorSpace device_color_space_;
+ bool visible_ = false;
bool swapped_since_resize_ = false;
gfx::Rect external_clip_;
gfx::Rect external_viewport_;

Powered by Google App Engine
This is Rietveld 408576698