Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: content/browser/compositor/software_output_device_ozone_unittest.cc

Issue 205433005: ozone: Add OzoneWindowFactory & OzoneWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/aura/window_tree_host_ozone.h » ('j') | ui/ozone/window/ozone_window.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | ui/aura/window_tree_host_ozone.h » ('j') | ui/ozone/window/ozone_window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698