OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_OUTPUT_SURFACE_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 public: | 51 public: |
52 OutputSurface(scoped_refptr<ContextProvider> context_provider, | 52 OutputSurface(scoped_refptr<ContextProvider> context_provider, |
53 scoped_refptr<ContextProvider> worker_context_provider, | 53 scoped_refptr<ContextProvider> worker_context_provider, |
54 #if defined(ENABLE_VULKAN) | 54 #if defined(ENABLE_VULKAN) |
55 scoped_refptr<VulkanContextProvider> vulkan_context_provider, | 55 scoped_refptr<VulkanContextProvider> vulkan_context_provider, |
56 #endif | 56 #endif |
57 std::unique_ptr<SoftwareOutputDevice> software_device); | 57 std::unique_ptr<SoftwareOutputDevice> software_device); |
58 OutputSurface(scoped_refptr<ContextProvider> context_provider, | 58 OutputSurface(scoped_refptr<ContextProvider> context_provider, |
59 scoped_refptr<ContextProvider> worker_context_provider); | 59 scoped_refptr<ContextProvider> worker_context_provider); |
60 explicit OutputSurface(scoped_refptr<ContextProvider> context_provider); | 60 explicit OutputSurface(scoped_refptr<ContextProvider> context_provider); |
61 #if defined(ENABLE_VULKAN) | |
62 explicit OutputSurface( | |
63 scoped_refptr<VulkanContextProvider> vulkan_context_provider); | |
64 #endif | |
65 explicit OutputSurface(std::unique_ptr<SoftwareOutputDevice> software_device); | 61 explicit OutputSurface(std::unique_ptr<SoftwareOutputDevice> software_device); |
66 | 62 |
67 OutputSurface(scoped_refptr<ContextProvider> context_provider, | 63 OutputSurface(scoped_refptr<ContextProvider> context_provider, |
68 std::unique_ptr<SoftwareOutputDevice> software_device); | 64 std::unique_ptr<SoftwareOutputDevice> software_device); |
69 | 65 |
70 ~OutputSurface() override; | 66 ~OutputSurface() override; |
71 | 67 |
72 struct Capabilities { | 68 struct Capabilities { |
73 Capabilities() | 69 Capabilities() |
74 : delegated_rendering(false), | 70 : delegated_rendering(false), |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 bool external_stencil_test_enabled_; | 204 bool external_stencil_test_enabled_; |
209 | 205 |
210 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 206 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
211 | 207 |
212 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 208 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
213 }; | 209 }; |
214 | 210 |
215 } // namespace cc | 211 } // namespace cc |
216 | 212 |
217 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 213 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |