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

Unified Diff: cc/surfaces/display.h

Issue 2187563006: sync compositor: Set display viewport for software draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SkISizeToSize Created 4 years, 5 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 | « no previous file | 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 3891121d90107e432f6ec757344da1525a601529..35ea2a86ed9e54b3eb81e17dd909a381208863d6 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -76,6 +76,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
void Resize(const gfx::Size& new_size);
void SetColorSpace(const gfx::ColorSpace& color_space);
void SetExternalClip(const gfx::Rect& clip);
+ void SetExternalViewport(const gfx::Rect& viewport);
void SetOutputIsSecure(bool secure);
const SurfaceId& CurrentSurfaceId();
@@ -133,6 +134,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
gfx::ColorSpace device_color_space_;
bool swapped_since_resize_ = false;
gfx::Rect external_clip_;
+ gfx::Rect external_viewport_;
gfx::Size enlarge_texture_amount_;
bool output_is_secure_ = false;
« no previous file with comments | « no previous file | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698