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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 // Signals swap has aborted (e.g. lost context). | 236 // Signals swap has aborted (e.g. lost context). |
237 void OnSwapBuffersAborted(); | 237 void OnSwapBuffersAborted(); |
238 | 238 |
239 // LayerTreeHostClient implementation. | 239 // LayerTreeHostClient implementation. |
240 void WillBeginMainFrame(int frame_id) override {} | 240 void WillBeginMainFrame(int frame_id) override {} |
241 void DidBeginMainFrame() override {} | 241 void DidBeginMainFrame() override {} |
242 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 242 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
243 void Layout() override; | 243 void Layout() override; |
244 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, | 244 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, |
245 const gfx::Vector2d& outer_delta, | 245 const gfx::Vector2d& outer_delta, |
| 246 const gfx::Vector2dF& elastic_overscroll_delta, |
246 float page_scale, | 247 float page_scale, |
247 float top_controls_delta) override {} | 248 float top_controls_delta) override {} |
248 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 249 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
249 float page_scale, | 250 float page_scale, |
250 float top_controls_delta) override {} | 251 float top_controls_delta) override {} |
251 void RequestNewOutputSurface(bool fallback) override; | 252 void RequestNewOutputSurface(bool fallback) override; |
252 void DidInitializeOutputSurface() override {} | 253 void DidInitializeOutputSurface() override {} |
253 void WillCommit() override {} | 254 void WillCommit() override {} |
254 void DidCommit() override; | 255 void DidCommit() override; |
255 void DidCommitAndDrawFrame() override; | 256 void DidCommitAndDrawFrame() override; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 LayerAnimatorCollection layer_animator_collection_; | 339 LayerAnimatorCollection layer_animator_collection_; |
339 | 340 |
340 base::WeakPtrFactory<Compositor> schedule_draw_factory_; | 341 base::WeakPtrFactory<Compositor> schedule_draw_factory_; |
341 | 342 |
342 DISALLOW_COPY_AND_ASSIGN(Compositor); | 343 DISALLOW_COPY_AND_ASSIGN(Compositor); |
343 }; | 344 }; |
344 | 345 |
345 } // namespace ui | 346 } // namespace ui |
346 | 347 |
347 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 348 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |