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

Unified Diff: chromecast/media/base/video_plane_controller.cc

Issue 1972433002: [Chromecast] Handle device scale factor correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set device scale factor correctly Created 4 years, 7 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: chromecast/media/base/video_plane_controller.cc
diff --git a/chromecast/media/base/video_plane_controller.cc b/chromecast/media/base/video_plane_controller.cc
index 00b45e5a62673358154040ca53bb7105b334c0f3..38e2d094b9173123bf0aa5424ab801db59286dc4 100644
--- a/chromecast/media/base/video_plane_controller.cc
+++ b/chromecast/media/base/video_plane_controller.cc
@@ -140,12 +140,13 @@ class VideoPlaneController::RateLimitedSetVideoPlaneGeometry
};
VideoPlaneController::VideoPlaneController(
+ const Size& graphics_resolution,
scoped_refptr<base::SingleThreadTaskRunner> media_task_runner)
: is_paused_(false),
have_screen_res_(false),
- have_graphics_plane_res_(false),
+ have_graphics_plane_res_(true),
screen_res_(0, 0),
- graphics_plane_res_(0, 0),
+ graphics_plane_res_(graphics_resolution),
have_video_plane_geometry_(false),
video_plane_display_rect_(0, 0),
video_plane_transform_(VideoPlane::TRANSFORM_NONE),

Powered by Google App Engine
This is Rietveld 408576698