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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Signals swap has aborted (e.g. lost context). | 239 // Signals swap has aborted (e.g. lost context). |
240 void OnSwapBuffersAborted(); | 240 void OnSwapBuffersAborted(); |
241 | 241 |
242 // LayerTreeHostClient implementation. | 242 // LayerTreeHostClient implementation. |
243 void WillBeginMainFrame(int frame_id) override {} | 243 void WillBeginMainFrame(int frame_id) override {} |
244 void DidBeginMainFrame() override {} | 244 void DidBeginMainFrame() override {} |
245 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 245 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
246 void Layout() override; | 246 void Layout() override; |
247 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, | 247 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, |
248 const gfx::Vector2d& outer_delta, | 248 const gfx::Vector2d& outer_delta, |
| 249 const gfx::Vector2dF& elastic_overscroll_delta, |
249 float page_scale, | 250 float page_scale, |
250 float top_controls_delta) override {} | 251 float top_controls_delta) override {} |
251 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 252 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
252 float page_scale, | 253 float page_scale, |
253 float top_controls_delta) override {} | 254 float top_controls_delta) override {} |
254 void RequestNewOutputSurface(bool fallback) override; | 255 void RequestNewOutputSurface(bool fallback) override; |
255 void DidInitializeOutputSurface() override {} | 256 void DidInitializeOutputSurface() override {} |
256 void WillCommit() override {} | 257 void WillCommit() override {} |
257 void DidCommit() override; | 258 void DidCommit() override; |
258 void DidCommitAndDrawFrame() override; | 259 void DidCommitAndDrawFrame() override; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 LayerAnimatorCollection layer_animator_collection_; | 321 LayerAnimatorCollection layer_animator_collection_; |
321 | 322 |
322 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 323 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
323 | 324 |
324 DISALLOW_COPY_AND_ASSIGN(Compositor); | 325 DISALLOW_COPY_AND_ASSIGN(Compositor); |
325 }; | 326 }; |
326 | 327 |
327 } // namespace ui | 328 } // namespace ui |
328 | 329 |
329 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 330 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |