| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // this point on the output surface will only be used on the compositor | 113 // this point on the output surface will only be used on the compositor |
| 114 // thread. | 114 // thread. |
| 115 virtual bool BindToClient(OutputSurfaceClient* client); | 115 virtual bool BindToClient(OutputSurfaceClient* client); |
| 116 | 116 |
| 117 virtual void EnsureBackbuffer(); | 117 virtual void EnsureBackbuffer(); |
| 118 virtual void DiscardBackbuffer(); | 118 virtual void DiscardBackbuffer(); |
| 119 | 119 |
| 120 virtual void Reshape(const gfx::Size& size, float scale_factor); | 120 virtual void Reshape(const gfx::Size& size, float scale_factor); |
| 121 virtual gfx::Size SurfaceSize() const; | 121 virtual gfx::Size SurfaceSize() const; |
| 122 | 122 |
| 123 virtual void RecreateBuffers(); |
| 124 |
| 123 // If supported, this causes a ReclaimResources for all resources that are | 125 // If supported, this causes a ReclaimResources for all resources that are |
| 124 // currently in use. | 126 // currently in use. |
| 125 virtual void ForceReclaimResources() {} | 127 virtual void ForceReclaimResources() {} |
| 126 | 128 |
| 127 virtual void BindFramebuffer(); | 129 virtual void BindFramebuffer(); |
| 128 | 130 |
| 129 // The implementation may destroy or steal the contents of the CompositorFrame | 131 // The implementation may destroy or steal the contents of the CompositorFrame |
| 130 // passed in (though it will not take ownership of the CompositorFrame | 132 // passed in (though it will not take ownership of the CompositorFrame |
| 131 // itself). For successful swaps, the implementation must call | 133 // itself). For successful swaps, the implementation must call |
| 132 // OutputSurfaceClient::DidSwapBuffers() and eventually | 134 // OutputSurfaceClient::DidSwapBuffers() and eventually |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 bool external_stencil_test_enabled_; | 184 bool external_stencil_test_enabled_; |
| 183 | 185 |
| 184 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 186 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
| 185 | 187 |
| 186 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 188 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 187 }; | 189 }; |
| 188 | 190 |
| 189 } // namespace cc | 191 } // namespace cc |
| 190 | 192 |
| 191 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 193 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |