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

Unified Diff: ui/ozone/platform/cast/surface_factory_cast.cc

Issue 1104853002: Adds public API and loads Cast OSD plane implementation from shared lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some nits Created 5 years, 8 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/public/osd_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/surface_factory_cast.cc
diff --git a/ui/ozone/platform/cast/surface_factory_cast.cc b/ui/ozone/platform/cast/surface_factory_cast.cc
index 35b189051b81c2448c369d11d46f4dd316a2d5bc..6fdd7eff2953a3fcaeb570a37631a99137992f2c 100644
--- a/ui/ozone/platform/cast/surface_factory_cast.cc
+++ b/ui/ozone/platform/cast/surface_factory_cast.cc
@@ -6,14 +6,15 @@
#include "base/callback_helpers.h"
#include "chromecast/public/cast_egl_platform.h"
+#include "chromecast/public/graphics_types.h"
#include "ui/ozone/platform/cast/surface_ozone_egl_cast.h"
using chromecast::CastEglPlatform;
namespace ui {
namespace {
-CastEglPlatform::Size FromGfxSize(const gfx::Size& size) {
- return CastEglPlatform::Size(size.width(), size.height());
+chromecast::Size FromGfxSize(const gfx::Size& size) {
+ return chromecast::Size(size.width(), size.height());
}
// Hard lower bound on display resolution
@@ -75,7 +76,7 @@ void SurfaceFactoryCast::CreateDisplayTypeAndWindowIfNeeded() {
}
DCHECK_EQ(state_, kInitialized);
if (!have_display_type_) {
- CastEglPlatform::Size create_size = FromGfxSize(display_size_);
+ chromecast::Size create_size = FromGfxSize(display_size_);
display_type_ = egl_platform_->CreateDisplayType(create_size);
have_display_type_ = true;
window_ = egl_platform_->CreateWindow(display_type_, create_size);
« no previous file with comments | « chromecast/public/osd_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698