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

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

Issue 406093002: ozone: Remove GetAcceleratedWidget from SurfaceFactoryOzone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/ozone/platform/caca/caca_window_manager.h » ('j') | no next file with comments »
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 a2176a6ffc05e44254632c1e3976972e285b6672..33676e80d13f48a1c873968b065242a2ad89b890 100644
--- a/content/browser/compositor/software_output_device_ozone_unittest.cc
+++ b/content/browser/compositor/software_output_device_ozone_unittest.cc
@@ -53,7 +53,6 @@ class MockSurfaceFactoryOzone : public ui::SurfaceFactoryOzone {
}
virtual void ShutdownHardware() OVERRIDE {}
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE { return 1; }
virtual bool LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE {
@@ -105,9 +104,9 @@ void SoftwareOutputDeviceOzoneTest::SetUp() {
surface_factory_.reset(new MockSurfaceFactoryOzone());
const gfx::Size size(500, 400);
- compositor_.reset(new ui::Compositor(
- ui::SurfaceFactoryOzone::GetInstance()->GetAcceleratedWidget(),
- context_factory));
+ const gfx::AcceleratedWidget kTestAcceleratedWidget = 1;
+ compositor_.reset(
+ new ui::Compositor(kTestAcceleratedWidget, context_factory));
compositor_->SetScaleAndSize(1.0f, size);
output_device_.reset(new content::SoftwareOutputDeviceOzone(
« no previous file with comments | « no previous file | ui/ozone/platform/caca/caca_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698