| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 void OnSwapBuffersComplete(); | 319 void OnSwapBuffersComplete(); |
| 320 | 320 |
| 321 // Signals swap has aborted (e.g. lost context). | 321 // Signals swap has aborted (e.g. lost context). |
| 322 void OnSwapBuffersAborted(); | 322 void OnSwapBuffersAborted(); |
| 323 | 323 |
| 324 // LayerTreeHostClient implementation. | 324 // LayerTreeHostClient implementation. |
| 325 void WillBeginMainFrame() override {} | 325 void WillBeginMainFrame() override {} |
| 326 void DidBeginMainFrame() override {} | 326 void DidBeginMainFrame() override {} |
| 327 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 327 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
| 328 void BeginMainFrameNotExpectedSoon() override; | 328 void BeginMainFrameNotExpectedSoon() override; |
| 329 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; |
| 329 void UpdateLayerTreeHost() override; | 330 void UpdateLayerTreeHost() override; |
| 330 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 331 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 331 const gfx::Vector2dF& outer_delta, | 332 const gfx::Vector2dF& outer_delta, |
| 332 const gfx::Vector2dF& elastic_overscroll_delta, | 333 const gfx::Vector2dF& elastic_overscroll_delta, |
| 333 float page_scale, | 334 float page_scale, |
| 334 float top_controls_delta) override {} | 335 float top_controls_delta) override {} |
| 335 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, | 336 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, |
| 336 bool has_scrolled_by_touch) override {} | 337 bool has_scrolled_by_touch) override {} |
| 337 void RequestNewCompositorFrameSink() override; | 338 void RequestNewCompositorFrameSink() override; |
| 338 void DidInitializeCompositorFrameSink() override {} | 339 void DidInitializeCompositorFrameSink() override {} |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 419 |
| 419 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 420 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 420 base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_; | 421 base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_; |
| 421 | 422 |
| 422 DISALLOW_COPY_AND_ASSIGN(Compositor); | 423 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 423 }; | 424 }; |
| 424 | 425 |
| 425 } // namespace ui | 426 } // namespace ui |
| 426 | 427 |
| 427 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 428 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |