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

Unified Diff: chromecast/public/osd_plane.h

Issue 2184933003: [Chromecast] Include output screen resolution in OSD rect info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chromecast/graphics/osd_plane_default.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/public/osd_plane.h
diff --git a/chromecast/public/osd_plane.h b/chromecast/public/osd_plane.h
index d689cba5440afa206d594137d66bc24361ee4b34..37a405ad2150b9155214f0826dbeed527b1ace1f 100644
--- a/chromecast/public/osd_plane.h
+++ b/chromecast/public/osd_plane.h
@@ -25,7 +25,12 @@ class OsdPlane {
// usage by only allocating back buffer to cover this area. Areas outside
// clip rectangle must display as fully transparent. In particular, setting
// an empty clip rectangle and calling Flip should clear the plane.
- virtual void SetClipRectangle(const Rect& rect) = 0;
+ // |osd_res| gives the resolution of the full OSD plane, i.e. |rect| is
+ // a subrectangle of this area. |output_scale| specifies the current scaling
+ // from |osd_res| to output screen resolution.
+ virtual void SetClipRectangle(const Rect& rect,
+ const Size& osd_res,
+ float output_scale) = 0;
// Gets the current back buffer surface. Valid until next call to Flip or
// SetClipRectangle.
« no previous file with comments | « chromecast/graphics/osd_plane_default.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698