OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 CC_OUTPUT_VULKAN_RENDERER_H_ | 5 #ifndef CC_OUTPUT_VULKAN_RENDERER_H_ |
6 #define CC_OUTPUT_VULKAN_RENDERER_H_ | 6 #define CC_OUTPUT_VULKAN_RENDERER_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/output/direct_renderer.h" | 9 #include "cc/output/direct_renderer.h" |
10 #include "cc/output/renderer.h" | 10 #include "cc/output/renderer.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 class TextureMailboxDeleter; | 14 class TextureMailboxDeleter; |
15 | 15 |
16 class CC_EXPORT VulkanRenderer : public DirectRenderer { | 16 class CC_EXPORT VulkanRenderer : public DirectRenderer { |
17 public: | 17 public: |
18 VulkanRenderer(RendererClient* client, | 18 VulkanRenderer(const RendererSettings* settings, |
19 const RendererSettings* settings, | |
20 OutputSurface* output_surface, | 19 OutputSurface* output_surface, |
21 ResourceProvider* resource_provider, | 20 ResourceProvider* resource_provider, |
22 TextureMailboxDeleter* texture_mailbox_deleter, | 21 TextureMailboxDeleter* texture_mailbox_deleter, |
23 int highp_threshold_min); | 22 int highp_threshold_min); |
24 ~VulkanRenderer() override; | 23 ~VulkanRenderer() override; |
25 | 24 |
26 // Implementation of public Renderer functions. | 25 // Implementation of public Renderer functions. |
27 const RendererCapabilitiesImpl& Capabilities() const override; | 26 const RendererCapabilitiesImpl& Capabilities() const override; |
28 void Finish() override; | |
29 void SwapBuffers(const CompositorFrameMetadata& metadata) override; | 27 void SwapBuffers(const CompositorFrameMetadata& metadata) override; |
30 void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) override; | 28 void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) override; |
31 | 29 |
32 protected: | 30 protected: |
33 // Implementations of protected Renderer functions. | 31 // Implementations of protected Renderer functions. |
34 void DidChangeVisibility() override; | 32 void DidChangeVisibility() override; |
35 | 33 |
36 // Implementations of protected DirectRenderer functions. | 34 // Implementations of protected DirectRenderer functions. |
37 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 35 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
38 bool BindFramebufferToTexture(DrawingFrame* frame, | 36 bool BindFramebufferToTexture(DrawingFrame* frame, |
(...skipping 19 matching lines...) Expand all Loading... |
58 | 56 |
59 private: | 57 private: |
60 RendererCapabilitiesImpl capabilities_; | 58 RendererCapabilitiesImpl capabilities_; |
61 | 59 |
62 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); | 60 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); |
63 }; | 61 }; |
64 | 62 |
65 } // namespace cc | 63 } // namespace cc |
66 | 64 |
67 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ | 65 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ |
OLD | NEW |