Index: ui/ozone/platform/egltest/ozone_platform_egltest.cc |
diff --git a/ui/ozone/platform/egltest/ozone_platform_egltest.cc b/ui/ozone/platform/egltest/ozone_platform_egltest.cc |
index 1a9399739b218f5ef84d21a8ecb685b97375782a..83ac59546e870a6a23a84ecaef8c1ceb7ffe71aa 100644 |
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc |
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc |
@@ -15,6 +15,8 @@ |
#include "ui/gfx/ozone/impl/file_surface_factory.h" |
#include "ui/gfx/ozone/surface_ozone_egl.h" |
#include "ui/gfx/vsync_provider.h" |
+#include "ui/ozone/gpu/gpu_platform_support.h" |
+#include "ui/ozone/gpu/gpu_platform_support_host.h" |
#include "ui/ozone/ozone_platform.h" |
#include "ui/ozone/ozone_switches.h" |
@@ -245,6 +247,12 @@ class OzonePlatformEgltest : 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() |
@@ -264,10 +272,12 @@ class OzonePlatformEgltest : public OzonePlatform { |
event_factory_ozone_.reset( |
new EventFactoryEvdev(NULL, device_manager_.get())); |
cursor_factory_ozone_.reset(new CursorFactoryOzone()); |
+ gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |
} |
virtual void InitializeGPU() OVERRIDE { |
surface_factory_ozone_.reset(new SurfaceFactoryEgltest(&eglplatform_shim_)); |
+ gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); |
} |
private: |
@@ -276,6 +286,8 @@ class OzonePlatformEgltest : public OzonePlatform { |
scoped_ptr<SurfaceFactoryEgltest> surface_factory_ozone_; |
scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
+ scoped_ptr<GpuPlatformSupport> gpu_platform_support_; |
+ scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; |
bool shim_initialized_; |