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

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: 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/aura/demo/DEPS ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/demo/demo_main.cc
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc
index 007d5af1c5dc363e0d8d784c157f769767aaeefe..95f99a23ff9b7da6b6ffc054280597dd9b0aa954 100644
--- a/ui/aura/demo/demo_main.cc
+++ b/ui/aura/demo/demo_main.cc
@@ -14,6 +14,7 @@
#include "base/power_monitor/power_monitor_device_source.h"
#include "base/run_loop.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"
@@ -139,8 +140,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698