diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2014-09-11 07:48:34 -0700 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2014-10-06 20:34:13 +0200 |
commit | 440031320bfc90c4daf481d71341489c88357f9e (patch) | |
tree | 8fd6d1afb5f2547ac225b4212c4c97590675185c /src/core/ozone_platform_eglfs.cpp | |
parent | 786b29cf7f843981ff64f2f6326dba5b03e3c9e6 (diff) |
Update OzonePlatformEglfs after update to Chromium 37.
The Ozone platform base class has received several
new pure virtual functions that needed to be implemented.
Most of the functions are implemented according to
how it is done in OzonePlatformGbm.
Change-Id: Ibab75ae0891b67d03f705da611949ed6cf75ad9f
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/ozone_platform_eglfs.cpp')
-rw-r--r-- | src/core/ozone_platform_eglfs.cpp | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/src/core/ozone_platform_eglfs.cpp b/src/core/ozone_platform_eglfs.cpp index ee1f066b5..b6b367aeb 100644 --- a/src/core/ozone_platform_eglfs.cpp +++ b/src/core/ozone_platform_eglfs.cpp @@ -36,26 +36,63 @@ #include "ozone_platform_eglfs.h" +#include "media/ozone/media_ozone_platform.h" +#include "ui/events/ozone/device/device_manager.h" #include "ui/ozone/ozone_platform.h" +#include "ui/ozone/public/cursor_factory_ozone.h" +#include "ui/ozone/public/gpu_platform_support.h" +#include "ui/ozone/public/gpu_platform_support_host.h" #if defined(USE_OZONE) +namespace media { + +MediaOzonePlatform* CreateMediaOzonePlatformEglfs() { + return new MediaOzonePlatform; +} + +} + namespace ui { OzonePlatformEglfs::OzonePlatformEglfs() {} OzonePlatformEglfs::~OzonePlatformEglfs() {} -gfx::SurfaceFactoryOzone* OzonePlatformEglfs::GetSurfaceFactoryOzone() { - return &surface_factory_ozone_; +ui::SurfaceFactoryOzone* OzonePlatformEglfs::GetSurfaceFactoryOzone() { + return surface_factory_ozone_.get(); } ui::EventFactoryOzone* OzonePlatformEglfs::GetEventFactoryOzone() { - return &event_factory_ozone_; + return event_factory_ozone_.get(); +} + +ui::CursorFactoryOzone* OzonePlatformEglfs::GetCursorFactoryOzone() { + return cursor_factory_ozone_.get(); +} + +GpuPlatformSupport* OzonePlatformEglfs::GetGpuPlatformSupport() { + return gpu_platform_support_.get(); +} + +GpuPlatformSupportHost* OzonePlatformEglfs::GetGpuPlatformSupportHost() { + return gpu_platform_support_host_.get(); } OzonePlatform* CreateOzonePlatformEglfs() { return new OzonePlatformEglfs; } +void OzonePlatformEglfs::InitializeUI() { + device_manager_ = CreateDeviceManager(); + cursor_factory_ozone_.reset(new CursorFactoryOzone()); + event_factory_ozone_.reset(new EventFactoryEvdev(NULL, device_manager_.get())); + gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); +} + +void OzonePlatformEglfs::InitializeGPU() { + surface_factory_ozone_.reset(new SurfaceFactoryQt()); + gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); +} + } // namespace ui #endif |