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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void SetWindowBounds(const gfx::Size& size) override; | 60 void SetWindowBounds(const gfx::Size& size) override; |
61 void SetHasTransparentBackground(bool flag) override; | 61 void SetHasTransparentBackground(bool flag) override; |
62 void SetNeedsComposite() override; | 62 void SetNeedsComposite() override; |
63 ui::UIResourceProvider& GetUIResourceProvider() override; | 63 ui::UIResourceProvider& GetUIResourceProvider() override; |
64 ui::ResourceManager& GetResourceManager() override; | 64 ui::ResourceManager& GetResourceManager() override; |
65 | 65 |
66 // LayerTreeHostClient implementation. | 66 // LayerTreeHostClient implementation. |
67 void WillBeginMainFrame() override {} | 67 void WillBeginMainFrame() override {} |
68 void DidBeginMainFrame() override {} | 68 void DidBeginMainFrame() override {} |
69 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 69 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
| 70 void BeginMainFrameNotExpectedSoon() override {} |
70 void Layout() override; | 71 void Layout() override; |
71 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 72 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
72 const gfx::Vector2dF& outer_delta, | 73 const gfx::Vector2dF& outer_delta, |
73 const gfx::Vector2dF& elastic_overscroll_delta, | 74 const gfx::Vector2dF& elastic_overscroll_delta, |
74 float page_scale, | 75 float page_scale, |
75 float top_controls_delta) override {} | 76 float top_controls_delta) override {} |
76 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 77 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
77 float page_scale, | 78 float page_scale, |
78 float top_controls_delta) override {} | 79 float top_controls_delta) override {} |
79 void RequestNewOutputSurface() override; | 80 void RequestNewOutputSurface() override; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 bool output_surface_request_pending_; | 200 bool output_surface_request_pending_; |
200 | 201 |
201 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 202 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
202 | 203 |
203 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 204 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
204 }; | 205 }; |
205 | 206 |
206 } // namespace content | 207 } // namespace content |
207 | 208 |
208 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 209 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |