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 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 bool can_force_reclaim_resources; | 84 bool can_force_reclaim_resources; |
85 // True if sync points for resources are needed when swapping delegated | 85 // True if sync points for resources are needed when swapping delegated |
86 // frames. | 86 // frames. |
87 bool delegated_sync_points_required; | 87 bool delegated_sync_points_required; |
88 }; | 88 }; |
89 | 89 |
90 const Capabilities& capabilities() const { | 90 const Capabilities& capabilities() const { |
91 return capabilities_; | 91 return capabilities_; |
92 } | 92 } |
93 | 93 |
94 virtual bool HasExternalStencilTest() const; | 94 virtual bool HasExternalStencilTest() const; |
aelias_OOO_until_Jul13
2016/01/06 23:43:36
Maybe this could be replaced by a bool returned fr
boliu
2016/01/07 15:42:43
Then there is no way to do this DCHECK in software
| |
95 virtual void ApplyExternalStencil(); | |
95 | 96 |
96 // Obtain the 3d context or the software device associated with this output | 97 // Obtain the 3d context or the software device associated with this output |
97 // surface. Either of these may return a null pointer, but not both. | 98 // surface. Either of these may return a null pointer, but not both. |
98 // In the event of a lost context, the entire output surface should be | 99 // In the event of a lost context, the entire output surface should be |
99 // recreated. | 100 // recreated. |
100 ContextProvider* context_provider() const { return context_provider_.get(); } | 101 ContextProvider* context_provider() const { return context_provider_.get(); } |
101 ContextProvider* worker_context_provider() const { | 102 ContextProvider* worker_context_provider() const { |
102 return worker_context_provider_.get(); | 103 return worker_context_provider_.get(); |
103 } | 104 } |
104 SoftwareOutputDevice* software_device() const { | 105 SoftwareOutputDevice* software_device() const { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
197 bool external_stencil_test_enabled_; | 198 bool external_stencil_test_enabled_; |
198 | 199 |
199 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 200 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 202 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
202 }; | 203 }; |
203 | 204 |
204 } // namespace cc | 205 } // namespace cc |
205 | 206 |
206 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 207 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |