Index: ui/views/examples/examples_main.cc |
diff --git a/ui/views/examples/examples_main.cc b/ui/views/examples/examples_main.cc |
index bb074a0dabe1d0f8b5fec5e5ccf209db286bb505..bc930998cb7ab358805d493de00dac4fcb3ffd6e 100644 |
--- a/ui/views/examples/examples_main.cc |
+++ b/ui/views/examples/examples_main.cc |
@@ -16,6 +16,7 @@ |
#include "base/run_loop.h" |
#include "base/test/test_discardable_memory_allocator.h" |
#include "build/build_config.h" |
+#include "cc/surfaces/surface_manager.h" |
#include "ui/base/ime/input_method_initializer.h" |
#include "ui/base/material_design/material_design_controller.h" |
#include "ui/base/resource/resource_bundle.h" |
@@ -67,8 +68,10 @@ int main(int argc, char** argv) { |
// The ContextFactory must exist before any Compositors are created. |
bool context_factory_for_test = false; |
+ cc::SurfaceManager surface_manager; |
std::unique_ptr<ui::InProcessContextFactory> context_factory( |
- new ui::InProcessContextFactory(context_factory_for_test, nullptr)); |
+ new ui::InProcessContextFactory(context_factory_for_test, |
+ &surface_manager)); |
context_factory->set_use_test_surface(false); |
base::MessageLoopForUI message_loop; |