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

Side by Side Diff: content/renderer/gpu/delegated_compositor_output_surface.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/renderer/gpu/compositor_output_surface.h" 11 #include "content/renderer/gpu/compositor_output_surface.h"
12 12
13 namespace content { 13 namespace content {
14 class FrameSwapMessageQueue; 14 class FrameSwapMessageQueue;
15 15
16 class DelegatedCompositorOutputSurface : public CompositorOutputSurface { 16 class DelegatedCompositorOutputSurface : public CompositorOutputSurface {
17 public: 17 public:
18 DelegatedCompositorOutputSurface( 18 DelegatedCompositorOutputSurface(
19 int32_t routing_id, 19 int32_t routing_id,
20 uint32_t output_surface_id, 20 uint32_t output_surface_id,
21 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 21 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
22 const scoped_refptr<ContextProviderCommandBuffer>& 22 const scoped_refptr<ContextProviderCommandBuffer>&
23 worker_context_provider, 23 worker_context_provider,
24 #if defined(ENABLE_VULKAN)
25 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider, 24 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider,
26 #endif
27 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); 25 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue);
28 ~DelegatedCompositorOutputSurface() override {} 26 ~DelegatedCompositorOutputSurface() override {}
29 }; 27 };
30 28
31 } // namespace content 29 } // namespace content
32 30
33 #endif // CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ 31 #endif // CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.cc ('k') | content/renderer/gpu/delegated_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698