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 VulkanRenderer : public DirectRenderer { | 16 class VulkanRenderer : public DirectRenderer { |
17 public: | 17 public: |
18 static scoped_ptr<VulkanRenderer> Create( | 18 static std::unique_ptr<VulkanRenderer> Create( |
19 RendererClient* client, | 19 RendererClient* client, |
20 const RendererSettings* settings, | 20 const RendererSettings* settings, |
21 OutputSurface* output_surface, | 21 OutputSurface* output_surface, |
22 ResourceProvider* resource_provider, | 22 ResourceProvider* resource_provider, |
23 TextureMailboxDeleter* texture_mailbox_deleter, | 23 TextureMailboxDeleter* texture_mailbox_deleter, |
24 int highp_threshold_min); | 24 int highp_threshold_min); |
25 | 25 |
26 ~VulkanRenderer() override; | 26 ~VulkanRenderer() override; |
27 | 27 |
28 // Implementation of public Renderer functions. | 28 // Implementation of public Renderer functions. |
(...skipping 27 matching lines...) Expand all Loading... |
56 void BeginDrawingFrame(DrawingFrame* frame) override; | 56 void BeginDrawingFrame(DrawingFrame* frame) override; |
57 void FinishDrawingFrame(DrawingFrame* frame) override; | 57 void FinishDrawingFrame(DrawingFrame* frame) override; |
58 void FinishDrawingQuadList() override; | 58 void FinishDrawingQuadList() override; |
59 bool FlippedFramebuffer(const DrawingFrame* frame) const override; | 59 bool FlippedFramebuffer(const DrawingFrame* frame) const override; |
60 void EnsureScissorTestEnabled() override; | 60 void EnsureScissorTestEnabled() override; |
61 void EnsureScissorTestDisabled() override; | 61 void EnsureScissorTestDisabled() override; |
62 void DiscardBackbuffer() override; | 62 void DiscardBackbuffer() override; |
63 void EnsureBackbuffer() override; | 63 void EnsureBackbuffer() override; |
64 void CopyCurrentRenderPassToBitmap( | 64 void CopyCurrentRenderPassToBitmap( |
65 DrawingFrame* frame, | 65 DrawingFrame* frame, |
66 scoped_ptr<CopyOutputRequest> request) override; | 66 std::unique_ptr<CopyOutputRequest> request) override; |
67 | 67 |
68 private: | 68 private: |
69 RendererCapabilitiesImpl capabilities_; | 69 RendererCapabilitiesImpl capabilities_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); | 71 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace cc | 74 } // namespace cc |
75 | 75 |
76 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ | 76 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ |
OLD | NEW |