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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual bool BindToClient(OutputSurfaceClient* client); | 80 virtual bool BindToClient(OutputSurfaceClient* client); |
81 | 81 |
82 // Sends frame data to the parent compositor. This should only be called when | 82 // Sends frame data to the parent compositor. This should only be called when |
83 // capabilities().has_parent_compositor. The implementation may destroy or | 83 // capabilities().has_parent_compositor. The implementation may destroy or |
84 // steal the contents of the CompositorFrame passed in. | 84 // steal the contents of the CompositorFrame passed in. |
85 virtual void SendFrameToParentCompositor(CompositorFrame* frame); | 85 virtual void SendFrameToParentCompositor(CompositorFrame* frame); |
86 | 86 |
87 virtual void EnsureBackbuffer(); | 87 virtual void EnsureBackbuffer(); |
88 virtual void DiscardBackbuffer(); | 88 virtual void DiscardBackbuffer(); |
89 | 89 |
90 virtual void Reshape(gfx::Size size); | 90 virtual void Reshape(gfx::Size size, float scale_factor); |
91 | 91 |
92 virtual void BindFramebuffer(); | 92 virtual void BindFramebuffer(); |
93 | 93 |
94 virtual void PostSubBuffer(gfx::Rect rect, const LatencyInfo&); | 94 virtual void PostSubBuffer(gfx::Rect rect, const LatencyInfo&); |
95 virtual void SwapBuffers(const LatencyInfo&); | 95 virtual void SwapBuffers(const LatencyInfo&); |
96 | 96 |
97 // Notifies frame-rate smoothness preference. If true, all non-critical | 97 // Notifies frame-rate smoothness preference. If true, all non-critical |
98 // processing should be stopped, or lowered in priority. | 98 // processing should be stopped, or lowered in priority. |
99 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} | 99 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} |
100 | 100 |
(...skipping 11 matching lines...) Expand all Loading... |
112 | 112 |
113 scoped_ptr<OutputSurfaceCallbacks> callbacks_; | 113 scoped_ptr<OutputSurfaceCallbacks> callbacks_; |
114 | 114 |
115 private: | 115 private: |
116 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 116 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace cc | 119 } // namespace cc |
120 | 120 |
121 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 121 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |