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

Unified Diff: ui/aura/demo/demo_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: deps 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
Index: ui/aura/demo/demo_main.cc
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc
index 8f52346cb533e67c166ac3092407bc1448781288..c388abac6ee6db75976b04f3d7860ac344a5d4fc 100644
--- a/ui/aura/demo/demo_main.cc
+++ b/ui/aura/demo/demo_main.cc
@@ -13,6 +13,7 @@
#include "base/power_monitor/power_monitor.h"
#include "base/power_monitor/power_monitor_device_source.h"
#include "build/build_config.h"
+#include "cc/surfaces/surface_manager.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/aura/client/default_capture_client.h"
#include "ui/aura/client/window_tree_client.h"
@@ -138,8 +139,10 @@ int DemoMain() {
// 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);
// Create the message-loop here before creating the root window.
« no previous file with comments | « ui/aura/demo/DEPS ('k') | ui/compositor/compositor.h » ('j') | ui/compositor/compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698