OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 float top_controls_delta) override {} | 292 float top_controls_delta) override {} |
293 void RequestNewOutputSurface() override; | 293 void RequestNewOutputSurface() override; |
294 void DidInitializeOutputSurface() override; | 294 void DidInitializeOutputSurface() override; |
295 void DidFailToInitializeOutputSurface() override; | 295 void DidFailToInitializeOutputSurface() override; |
296 void WillCommit() override {} | 296 void WillCommit() override {} |
297 void DidCommit() override; | 297 void DidCommit() override; |
298 void DidCommitAndDrawFrame() override; | 298 void DidCommitAndDrawFrame() override; |
299 void DidCompleteSwapBuffers() override; | 299 void DidCompleteSwapBuffers() override; |
300 void DidCompletePageScaleAnimation() override {} | 300 void DidCompletePageScaleAnimation() override {} |
301 void SendBeginFramesToChildren(const cc::BeginFrameArgs& args) override; | 301 void SendBeginFramesToChildren(const cc::BeginFrameArgs& args) override; |
| 302 void RecordFrameTimingEvents( |
| 303 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| 304 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 305 override {} |
302 | 306 |
303 // cc::LayerTreeHostSingleThreadClient implementation. | 307 // cc::LayerTreeHostSingleThreadClient implementation. |
304 void DidPostSwapBuffers() override; | 308 void DidPostSwapBuffers() override; |
305 void DidAbortSwapBuffers() override; | 309 void DidAbortSwapBuffers() override; |
306 | 310 |
307 bool IsLocked() { return compositor_lock_ != NULL; } | 311 bool IsLocked() { return compositor_lock_ != NULL; } |
308 | 312 |
309 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; | 313 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; |
310 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); | 314 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); |
311 const cc::RendererSettings& GetRendererSettings() const; | 315 const cc::RendererSettings& GetRendererSettings() const; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 cc::BeginFrameArgs missed_begin_frame_args_; | 368 cc::BeginFrameArgs missed_begin_frame_args_; |
365 | 369 |
366 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 370 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
367 | 371 |
368 DISALLOW_COPY_AND_ASSIGN(Compositor); | 372 DISALLOW_COPY_AND_ASSIGN(Compositor); |
369 }; | 373 }; |
370 | 374 |
371 } // namespace ui | 375 } // namespace ui |
372 | 376 |
373 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 377 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |