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

Unified Diff: cc/surfaces/surface_display_output_surface.cc

Issue 2002303002: Consolidate OutputSurface constructors into GL vs Vulkan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: outputsurface-constructors: rebase-and-fixcrash 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
« no previous file with comments | « cc/output/renderer_unittest.cc ('k') | cc/test/failure_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d2093ac026a8de76ea6b87fbdcdff878f284b2d1 100644
--- a/cc/surfaces/surface_display_output_surface.cc
+++ b/cc/surfaces/surface_display_output_surface.cc
@@ -20,7 +20,8 @@ SurfaceDisplayOutputSurface::SurfaceDisplayOutputSurface(
scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> worker_context_provider)
: OutputSurface(std::move(context_provider),
- std::move(worker_context_provider)),
+ std::move(worker_context_provider),
+ nullptr),
display_client_(nullptr),
factory_(surface_manager, this),
allocator_(allocator) {
@@ -37,11 +38,8 @@ SurfaceDisplayOutputSurface::SurfaceDisplayOutputSurface(
SurfaceManager* surface_manager,
SurfaceIdAllocator* allocator,
scoped_refptr<VulkanContextProvider> vulkan_context_provider)
- : OutputSurface(nullptr,
- nullptr,
- std::move(vulkan_context_provider),
- nullptr),
- display_client_(NULL),
+ : OutputSurface(std::move(vulkan_context_provider)),
+ display_client_(nullptr),
factory_(surface_manager, this),
allocator_(allocator) {
capabilities_.delegated_rendering = true;
« no previous file with comments | « cc/output/renderer_unittest.cc ('k') | cc/test/failure_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698