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