Index: content/browser/compositor/software_output_device_ozone_unittest.cc |
diff --git a/content/browser/compositor/software_output_device_ozone_unittest.cc b/content/browser/compositor/software_output_device_ozone_unittest.cc |
index a232674f345ffd0c735309224380b52f95d1801a..d5dafbcd512b6f1ba56ca433051e35b11fb9230c 100644 |
--- a/content/browser/compositor/software_output_device_ozone_unittest.cc |
+++ b/content/browser/compositor/software_output_device_ozone_unittest.cc |
@@ -28,7 +28,6 @@ class MockSurfaceFactoryOzone : public gfx::SurfaceFactoryOzone { |
} |
virtual void ShutdownHardware() OVERRIDE {} |
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE { return 1; } |
virtual gfx::AcceleratedWidget RealizeAcceleratedWidget( |
gfx::AcceleratedWidget w) OVERRIDE { return w; } |
virtual bool LoadEGLGLES2Bindings( |
@@ -97,8 +96,8 @@ void SoftwareOutputDeviceOzoneTest::SetUp() { |
gfx::SurfaceFactoryOzone::SetInstance(surface_factory_.get()); |
const gfx::Size size(500, 400); |
- compositor_.reset(new ui::Compositor( |
- gfx::SurfaceFactoryOzone::GetInstance()->GetAcceleratedWidget())); |
+ compositor_.reset( |
+ new ui::Compositor(gfx::kDefaultAcceleratedWidgetForSingleWindow)); |
compositor_->SetScaleAndSize(1.0f, size); |
output_device_.reset(new content::SoftwareOutputDeviceOzone( |