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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 void OnSwapBuffersComplete(); | 183 void OnSwapBuffersComplete(); |
184 void ReclaimResources(const CompositorFrameAck* ack); | 184 void ReclaimResources(const CompositorFrameAck* ack); |
185 void DidLoseOutputSurface(); | 185 void DidLoseOutputSurface(); |
186 void SetExternalStencilTest(bool enabled); | 186 void SetExternalStencilTest(bool enabled); |
187 void SetExternalDrawConstraints(const gfx::Transform& transform, | 187 void SetExternalDrawConstraints(const gfx::Transform& transform, |
188 gfx::Rect viewport, | 188 gfx::Rect viewport, |
189 gfx::Rect clip, | 189 gfx::Rect clip, |
190 bool valid_for_tile_management); | 190 bool valid_for_tile_management); |
191 | 191 |
192 // virtual for testing. | 192 // virtual for testing. |
193 virtual base::TimeTicks RetroactiveBeginImplFrameDeadline(); | 193 virtual gfx::FrameTime RetroactiveBeginImplFrameDeadline(); |
194 virtual void PostCheckForRetroactiveBeginImplFrame(); | 194 virtual void PostCheckForRetroactiveBeginImplFrame(); |
195 void CheckForRetroactiveBeginImplFrame(); | 195 void CheckForRetroactiveBeginImplFrame(); |
196 | 196 |
197 private: | 197 private: |
198 OutputSurfaceClient* client_; | 198 OutputSurfaceClient* client_; |
199 friend class OutputSurfaceCallbacks; | 199 friend class OutputSurfaceCallbacks; |
200 | 200 |
201 void SetUpContext3d(); | 201 void SetUpContext3d(); |
202 void ResetContext3d(); | 202 void ResetContext3d(); |
203 void SetMemoryPolicy(const ManagedMemoryPolicy& policy, | 203 void SetMemoryPolicy(const ManagedMemoryPolicy& policy, |
(...skipping 11 matching lines...) Expand all Loading... |
215 std::deque<unsigned> available_gpu_latency_query_ids_; | 215 std::deque<unsigned> available_gpu_latency_query_ids_; |
216 std::deque<unsigned> pending_gpu_latency_query_ids_; | 216 std::deque<unsigned> pending_gpu_latency_query_ids_; |
217 RollingTimeDeltaHistory gpu_latency_history_; | 217 RollingTimeDeltaHistory gpu_latency_history_; |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 219 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
220 }; | 220 }; |
221 | 221 |
222 } // namespace cc | 222 } // namespace cc |
223 | 223 |
224 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 224 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |