| Index: ui/ozone/platform/dri/ozone_platform_gbm.cc
|
| diff --git a/ui/ozone/platform/dri/ozone_platform_gbm.cc b/ui/ozone/platform/dri/ozone_platform_gbm.cc
|
| index 4e47a289f841630bbcf75ee1ad386f43242a6368..ac3f78a5a1f91d1b92796bf0a97aae07b0a3864a 100644
|
| --- a/ui/ozone/platform/dri/ozone_platform_gbm.cc
|
| +++ b/ui/ozone/platform/dri/ozone_platform_gbm.cc
|
| @@ -78,6 +78,12 @@ class OzonePlatformGbm : public OzonePlatform {
|
| virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE {
|
| return cursor_factory_ozone_.get();
|
| }
|
| + virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE {
|
| + return gpu_platform_support_.get()
|
| + }
|
| + virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE {
|
| + return gpu_platform_support_host_.get();
|
| + }
|
| #if defined(OS_CHROMEOS)
|
| virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
|
| OVERRIDE {
|
| @@ -99,6 +105,8 @@ class OzonePlatformGbm : public OzonePlatform {
|
| cursor_factory_ozone_.reset(new CursorFactoryOzone());
|
| event_factory_ozone_.reset(new EventFactoryEvdev(
|
| NULL, device_manager_.get()));
|
| +
|
| + gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
|
| }
|
|
|
| virtual void InitializeGPU() OVERRIDE {
|
| @@ -110,6 +118,8 @@ class OzonePlatformGbm : public OzonePlatform {
|
| new GbmSurfaceFactory(dri_.get(),
|
| surface_generator_->device(),
|
| screen_manager_.get()));
|
| +
|
| + gpu_platform_support_.reset(CreateStubGpuPlatformSupport());
|
| }
|
|
|
| private:
|
| @@ -123,6 +133,9 @@ class OzonePlatformGbm : public OzonePlatform {
|
| scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
|
| scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
|
|
|
| + scoped_ptr<GpuPlatformSupport> gpu_platform_support_;
|
| + scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm);
|
| };
|
|
|
|
|