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

Unified Diff: ui/views/examples/examples_main.cc

Issue 2270573002: cc: Get rid of LayerTreeHost::output_surface_lost_ state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-caps
Patch Set: lth-outputsurface-lost: android-build-and-earlyout-sooner Created 4 years, 4 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 | « ui/views/examples/DEPS ('k') | ui/views/mus/surface_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ui/views/examples/DEPS ('k') | ui/views/mus/surface_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698