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

Unified Diff: cc/surfaces/surface_display_output_surface.cc

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export VulkanContextProvider Created 4 years, 8 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/surfaces/surface_display_output_surface.h ('k') | content/browser/BUILD.gn » ('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 260e5cdb60191e673d79ef7d51c8497fa1028faf..749791ef0de34c2a59c73409dbb9915b63cc437c 100644
--- a/cc/surfaces/surface_display_output_surface.cc
+++ b/cc/surfaces/surface_display_output_surface.cc
@@ -33,6 +33,22 @@ SurfaceDisplayOutputSurface::SurfaceDisplayOutputSurface(
capabilities_.delegated_sync_points_required = false;
}
+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),
+ factory_(surface_manager, this),
+ allocator_(allocator) {
+ capabilities_.delegated_rendering = true;
+ capabilities_.adjust_deadline_for_parent = true;
+ capabilities_.can_force_reclaim_resources = true;
+}
+
SurfaceDisplayOutputSurface::~SurfaceDisplayOutputSurface() {
if (HasClient())
DetachFromClient();
« no previous file with comments | « cc/surfaces/surface_display_output_surface.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698