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

Unified Diff: cc/surfaces/surface_display_output_surface.cc

Issue 1985973002: Defer compositor context creation to the thread. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextfactory: . Created 4 years, 7 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: cc/surfaces/surface_display_output_surface.cc
diff --git a/cc/surfaces/surface_display_output_surface.cc b/cc/surfaces/surface_display_output_surface.cc
index 749791ef0de34c2a59c73409dbb9915b63cc437c..a996c7d504bb2d63dc831e6d12b65d587953436a 100644
--- a/cc/surfaces/surface_display_output_surface.cc
+++ b/cc/surfaces/surface_display_output_surface.cc
@@ -17,9 +17,9 @@ namespace cc {
SurfaceDisplayOutputSurface::SurfaceDisplayOutputSurface(
SurfaceManager* surface_manager,
SurfaceIdAllocator* allocator,
- scoped_refptr<ContextProvider> context_provider,
+ std::unique_ptr<ContextProvider::Factory> compositor_context_factory,
scoped_refptr<ContextProvider> worker_context_provider)
- : OutputSurface(std::move(context_provider),
+ : OutputSurface(std::move(compositor_context_factory),
std::move(worker_context_provider)),
display_client_(nullptr),
factory_(surface_manager, this),

Powered by Google App Engine
This is Rietveld 408576698