| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Get the class capable of informing cc of hardware overlay capability. | 161 // Get the class capable of informing cc of hardware overlay capability. |
| 162 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; | 162 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; |
| 163 | 163 |
| 164 // Returns true if a main image overlay plane should be scheduled. | 164 // Returns true if a main image overlay plane should be scheduled. |
| 165 virtual bool IsDisplayedAsOverlayPlane() const; | 165 virtual bool IsDisplayedAsOverlayPlane() const; |
| 166 | 166 |
| 167 // Get the texture for the main image's overlay. | 167 // Get the texture for the main image's overlay. |
| 168 virtual unsigned GetOverlayTextureId() const; | 168 virtual unsigned GetOverlayTextureId() const; |
| 169 | 169 |
| 170 virtual void DidLoseOutputSurface(); | 170 virtual void DidLoseOutputSurface(); |
| 171 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); | |
| 172 | 171 |
| 173 // Support for a pull-model where draws are requested by the output surface. | 172 // Support for a pull-model where draws are requested by the output surface. |
| 174 // | 173 // |
| 175 // OutputSurface::Invalidate is called by the compositor to notify that | 174 // OutputSurface::Invalidate is called by the compositor to notify that |
| 176 // there's new content. | 175 // there's new content. |
| 177 virtual void Invalidate() {} | 176 virtual void Invalidate() {} |
| 178 | 177 |
| 179 // If this returns true, then the surface will not attempt to draw. | 178 // If this returns true, then the surface will not attempt to draw. |
| 180 virtual bool SurfaceIsSuspendForRecycle() const; | 179 virtual bool SurfaceIsSuspendForRecycle() const; |
| 181 | 180 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 209 bool external_stencil_test_enabled_ = false; | 208 bool external_stencil_test_enabled_ = false; |
| 210 | 209 |
| 211 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 210 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 212 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 } // namespace cc | 215 } // namespace cc |
| 217 | 216 |
| 218 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 217 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |