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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 float page_scale, | 291 float page_scale, |
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 RecordFrameTimingEvents( | |
302 std::unique_ptr<cc::FrameTimingTracker::CompositeTimingSet> | |
303 composite_events, | |
304 std::unique_ptr<cc::FrameTimingTracker::MainFrameTimingSet> | |
305 main_frame_events) override {} | |
306 | 301 |
307 // cc::LayerTreeHostSingleThreadClient implementation. | 302 // cc::LayerTreeHostSingleThreadClient implementation. |
308 void DidPostSwapBuffers() override; | 303 void DidPostSwapBuffers() override; |
309 void DidAbortSwapBuffers() override; | 304 void DidAbortSwapBuffers() override; |
310 | 305 |
311 bool IsLocked() { return compositor_lock_ != NULL; } | 306 bool IsLocked() { return compositor_lock_ != NULL; } |
312 | 307 |
313 void SetOutputIsSecure(bool output_is_secure); | 308 void SetOutputIsSecure(bool output_is_secure); |
314 | 309 |
315 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; | 310 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 scoped_refptr<cc::AnimationTimeline> animation_timeline_; | 364 scoped_refptr<cc::AnimationTimeline> animation_timeline_; |
370 | 365 |
371 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 366 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
372 | 367 |
373 DISALLOW_COPY_AND_ASSIGN(Compositor); | 368 DISALLOW_COPY_AND_ASSIGN(Compositor); |
374 }; | 369 }; |
375 | 370 |
376 } // namespace ui | 371 } // namespace ui |
377 | 372 |
378 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 373 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |