Index: ui/compositor/test/test_compositor_host_ozone.cc |
diff --git a/ui/compositor/test/test_compositor_host_ozone.cc b/ui/compositor/test/test_compositor_host_ozone.cc |
index 78431bee417d94da5d4cb54a74cc68993ad7a164..b70be171e7fcd07e98fe0af9ba103e611eee1197 100644 |
--- a/ui/compositor/test/test_compositor_host_ozone.cc |
+++ b/ui/compositor/test/test_compositor_host_ozone.cc |
@@ -12,6 +12,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "base/message_loop/message_loop.h" |
#include "ui/compositor/compositor.h" |
+#include "ui/gfx/ozone/surface_factory_ozone.h" |
#include "ui/gfx/rect.h" |
namespace ui { |
@@ -48,7 +49,8 @@ void TestCompositorHostOzone::Show() { |
// with a non-0 widget. |
// TODO(rjkroege): Use a "real" ozone widget when it is |
// available: http://crbug.com/255128 |
- compositor_.reset(new ui::Compositor(1)); |
+ compositor_.reset(new ui::Compositor( |
+ gfx::kDefaultAcceleratedWidgetForSingleWindow)); |
compositor_->SetScaleAndSize(1.0f, bounds_.size()); |
} |