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

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: onemore 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
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index 235abf166d21c23de599fd299a075c8231a8db69..66fda8931d5d21243febec8c951eef9392ad9f23 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);
@@ -134,6 +135,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_;
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698