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

Unified Diff: chromecast/graphics/cast_screen.cc

Issue 1824723003: [chromecast] Pass media task runner to VideoPlaneController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed android build Created 4 years, 9 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/cast_screen.h ('k') | chromecast/media/base/video_plane_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_screen.cc
diff --git a/chromecast/graphics/cast_screen.cc b/chromecast/graphics/cast_screen.cc
index 507e234f44d4592177a90efd5461ac71f8cea0b1..2017dc9a0fb042e9ab72279e9c06fbf04812ca33 100644
--- a/chromecast/graphics/cast_screen.cc
+++ b/chromecast/graphics/cast_screen.cc
@@ -33,8 +33,15 @@ const int kInitDisplayHeight = k720pHeight;
CastScreen::~CastScreen() {
}
+void CastScreen::SetDisplayResizeCallback(const DisplayResizeCallback& cb) {
+ DCHECK(!cb.is_null());
+ display_resize_cb_ = cb;
+}
+
void CastScreen::UpdateDisplaySize(const gfx::Size& size) {
display_.SetScaleAndBounds(1.0f, gfx::Rect(size));
+ if (!display_resize_cb_.is_null())
+ display_resize_cb_.Run(Size(size.width(), size.height()));
}
gfx::Point CastScreen::GetCursorScreenPoint() {
« no previous file with comments | « chromecast/graphics/cast_screen.h ('k') | chromecast/media/base/video_plane_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698