Chromium Code Reviews| 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 | 113 |
| 114 virtual void BindFramebuffer(); | 114 virtual void BindFramebuffer(); |
| 115 | 115 |
| 116 // The implementation may destroy or steal the contents of the CompositorFrame | 116 // The implementation may destroy or steal the contents of the CompositorFrame |
| 117 // passed in (though it will not take ownership of the CompositorFrame | 117 // passed in (though it will not take ownership of the CompositorFrame |
| 118 // itself). For successful swaps, the implementation must call | 118 // itself). For successful swaps, the implementation must call |
| 119 // OutputSurfaceClient::DidSwapBuffers() and eventually | 119 // OutputSurfaceClient::DidSwapBuffers() and eventually |
| 120 // DidSwapBuffersComplete(). | 120 // DidSwapBuffersComplete(). |
| 121 virtual void SwapBuffers(CompositorFrame* frame) = 0; | 121 virtual void SwapBuffers(CompositorFrame* frame) = 0; |
| 122 virtual void OnSwapBuffersComplete(); | 122 virtual void OnSwapBuffersComplete(); |
| 123 virtual void OnPageFlipComplete(); | |
|
brianderson
2014/12/10 22:48:05
Does this need to be exposed for all OutputSurface
kalyank
2014/12/11 12:55:58
Not needed, removed.
| |
| 123 | 124 |
| 124 // Notifies frame-rate smoothness preference. If true, all non-critical | 125 // Notifies frame-rate smoothness preference. If true, all non-critical |
| 125 // processing should be stopped, or lowered in priority. | 126 // processing should be stopped, or lowered in priority. |
| 126 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} | 127 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} |
| 127 | 128 |
| 128 bool HasClient() { return !!client_; } | 129 bool HasClient() { return !!client_; } |
| 129 | 130 |
| 130 // Get the class capable of informing cc of hardware overlay capability. | 131 // Get the class capable of informing cc of hardware overlay capability. |
| 131 OverlayCandidateValidator* overlay_candidate_validator() const { | 132 OverlayCandidateValidator* overlay_candidate_validator() const { |
| 132 return overlay_candidate_validator_.get(); | 133 return overlay_candidate_validator_.get(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 bool external_stencil_test_enabled_; | 175 bool external_stencil_test_enabled_; |
| 175 | 176 |
| 176 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 177 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
| 177 | 178 |
| 178 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 179 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace cc | 182 } // namespace cc |
| 182 | 183 |
| 183 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 184 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |