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 671038093a470b6a5620e0d186a9e9837c906249..440614bcaf7c09a4d3bc3f9fc776069016b29c04 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); |
}; |