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

Unified Diff: chromecast/ozone/ozone_platform_cast.cc

Issue 1059073002: Loads CastEglPlatform implementation from shared library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chromecast/ozone/ozone_platform_cast.cc
diff --git a/chromecast/ozone/ozone_platform_cast.cc b/chromecast/ozone/ozone_platform_cast.cc
index 498ac8155af7061241dafc8e14b3554a45865b96..2e264f2beab10bb5fce217ae1435e9137d7602ae 100644
--- a/chromecast/ozone/ozone_platform_cast.cc
+++ b/chromecast/ozone/ozone_platform_cast.cc
@@ -4,16 +4,32 @@
#include "chromecast/ozone/ozone_platform_cast.h"
-#include "chromecast/ozone/cast_egl_platform.h"
#include "chromecast/ozone/gpu_platform_support_cast.h"
#include "chromecast/ozone/platform_window_cast.h"
#include "chromecast/ozone/surface_factory_cast.h"
+#include "chromecast/public/cast_egl_platform.h"
+#include "chromecast/public/cast_egl_platform_shlib.h"
+#include "media/ozone/media_ozone_platform.h"
#include "ui/ozone/common/native_display_delegate_ozone.h"
#include "ui/ozone/public/cursor_factory_ozone.h"
#include "ui/ozone/public/gpu_platform_support_host.h"
#include "ui/ozone/public/input_controller.h"
#include "ui/ozone/public/system_input_injector.h"
+namespace {
+
+class MediaOzonePlatformStub : public media::MediaOzonePlatform {
+ public:
+ MediaOzonePlatformStub() {}
+
+ ~MediaOzonePlatformStub() override {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MediaOzonePlatformStub);
+};
+
+} // namespace
+
namespace chromecast {
namespace ozone {
@@ -81,3 +97,21 @@ void OzonePlatformCast::InitializeGPU() {
} // namespace ozone
} // namespace chromecast
+
+namespace ui {
+
+OzonePlatform* CreateOzonePlatformCast() {
+ scoped_ptr<chromecast::CastEglPlatform> platform(
+ chromecast::CastEglPlatformShlib::Create());
+ return new chromecast::ozone::OzonePlatformCast(platform.Pass());
+}
+
+} // namespace ui
+
+namespace media {
+
+MediaOzonePlatform* CreateMediaOzonePlatformCast() {
+ return new MediaOzonePlatformStub;
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698