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

Unified Diff: chromecast/graphics/osd_plane_default.cc

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 | « no previous file | chromecast/public/osd_plane.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/osd_plane_default.cc
diff --git a/chromecast/graphics/osd_plane_default.cc b/chromecast/graphics/osd_plane_default.cc
index 6a4a5e046f183b99e071327f286b1eee9e2c22de..823fb1d21465f785ba70c1c713af98155efa920b 100644
--- a/chromecast/graphics/osd_plane_default.cc
+++ b/chromecast/graphics/osd_plane_default.cc
@@ -48,7 +48,9 @@ class OsdPlaneDefault : public OsdPlane {
OsdSurface* CreateSurface(const Size& size) override {
return new OsdSurfaceDefault(size);
}
- void SetClipRectangle(const Rect& rect) override {
+ void SetClipRectangle(const Rect& rect,
+ const Size& screen_res,
+ float output_scale) override {
size_ = Size(rect.width, rect.height);
}
OsdSurface* GetBackBuffer() override {
« no previous file with comments | « no previous file | chromecast/public/osd_plane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698