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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // Notifies frame-rate smoothness preference. If true, all non-critical | 139 // Notifies frame-rate smoothness preference. If true, all non-critical |
140 // processing should be stopped, or lowered in priority. | 140 // processing should be stopped, or lowered in priority. |
141 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} | 141 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} |
142 | 142 |
143 bool HasClient() { return !!client_; } | 143 bool HasClient() { return !!client_; } |
144 | 144 |
145 // Get the class capable of informing cc of hardware overlay capability. | 145 // Get the class capable of informing cc of hardware overlay capability. |
146 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; | 146 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; |
147 | 147 |
| 148 // Get the texture for the main image's overlay. |
| 149 virtual unsigned GetOverlayTextureId() const; |
| 150 |
148 void DidLoseOutputSurface(); | 151 void DidLoseOutputSurface(); |
149 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); | 152 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); |
150 | 153 |
151 // Support for a pull-model where draws are requested by the output surface. | 154 // Support for a pull-model where draws are requested by the output surface. |
152 // | 155 // |
153 // OutputSurface::Invalidate is called by the compositor to notify that | 156 // OutputSurface::Invalidate is called by the compositor to notify that |
154 // there's new content. | 157 // there's new content. |
155 virtual void Invalidate() {} | 158 virtual void Invalidate() {} |
156 | 159 |
157 // Updates the worker context provider's visibility, freeing GPU resources if | 160 // Updates the worker context provider's visibility, freeing GPU resources if |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool external_stencil_test_enabled_; | 194 bool external_stencil_test_enabled_; |
192 | 195 |
193 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 196 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
194 | 197 |
195 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 198 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
196 }; | 199 }; |
197 | 200 |
198 } // namespace cc | 201 } // namespace cc |
199 | 202 |
200 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 203 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |