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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void ApplyViewportDeltas( | 77 virtual void ApplyViewportDeltas( |
78 const gfx::Vector2d& scroll_delta, | 78 const gfx::Vector2d& scroll_delta, |
79 float page_scale, | 79 float page_scale, |
80 float top_controls_delta) override {} | 80 float top_controls_delta) override {} |
81 virtual void RequestNewOutputSurface(bool fallback) override; | 81 virtual void RequestNewOutputSurface(bool fallback) override; |
82 virtual void DidInitializeOutputSurface() override {} | 82 virtual void DidInitializeOutputSurface() override {} |
83 virtual void WillCommit() override {} | 83 virtual void WillCommit() override {} |
84 virtual void DidCommit() override; | 84 virtual void DidCommit() override; |
85 virtual void DidCommitAndDrawFrame() override {} | 85 virtual void DidCommitAndDrawFrame() override {} |
86 virtual void DidCompleteSwapBuffers() override; | 86 virtual void DidCompleteSwapBuffers() override; |
| 87 virtual void DidCompletePageScaleAnimation() override; |
87 | 88 |
88 // LayerTreeHostSingleThreadClient implementation. | 89 // LayerTreeHostSingleThreadClient implementation. |
89 virtual void ScheduleComposite() override; | 90 virtual void ScheduleComposite() override; |
90 virtual void ScheduleAnimation() override; | 91 virtual void ScheduleAnimation() override; |
91 virtual void DidPostSwapBuffers() override; | 92 virtual void DidPostSwapBuffers() override; |
92 virtual void DidAbortSwapBuffers() override; | 93 virtual void DidAbortSwapBuffers() override; |
93 | 94 |
94 // ImageTransportFactoryAndroidObserver implementation. | 95 // ImageTransportFactoryAndroidObserver implementation. |
95 virtual void OnLostResources() override; | 96 virtual void OnLostResources() override; |
96 | 97 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 base::TimeTicks last_vsync_; | 190 base::TimeTicks last_vsync_; |
190 | 191 |
191 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 192 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
192 | 193 |
193 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 194 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
194 }; | 195 }; |
195 | 196 |
196 } // namespace content | 197 } // namespace content |
197 | 198 |
198 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 199 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |