| 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
|
|
|