OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual void setShowDebugBorders(bool show); | 129 virtual void setShowDebugBorders(bool show); |
130 virtual void setContinuousPaintingEnabled(bool enabled); | 130 virtual void setContinuousPaintingEnabled(bool enabled); |
131 virtual void setShowScrollBottleneckRects(bool show); | 131 virtual void setShowScrollBottleneckRects(bool show); |
132 virtual void setTopControlsContentOffset(float); | 132 virtual void setTopControlsContentOffset(float); |
133 | 133 |
134 // cc::LayerTreeHostClient implementation. | 134 // cc::LayerTreeHostClient implementation. |
135 void WillBeginMainFrame() override; | 135 void WillBeginMainFrame() override; |
136 void DidBeginMainFrame() override; | 136 void DidBeginMainFrame() override; |
137 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 137 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
138 void Layout() override; | 138 void Layout() override; |
139 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, | 139 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
140 const gfx::Vector2d& outer_delta, | 140 const gfx::Vector2dF& outer_delta, |
141 const gfx::Vector2dF& elastic_overscroll_delta, | 141 const gfx::Vector2dF& elastic_overscroll_delta, |
142 float page_scale, | 142 float page_scale, |
143 float top_controls_delta) override; | 143 float top_controls_delta) override; |
144 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 144 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
145 float page_scale, | 145 float page_scale, |
146 float top_controls_delta) override; | 146 float top_controls_delta) override; |
147 void RequestNewOutputSurface() override; | 147 void RequestNewOutputSurface() override; |
148 void DidInitializeOutputSurface() override; | 148 void DidInitializeOutputSurface() override; |
149 void DidFailToInitializeOutputSurface() override; | 149 void DidFailToInitializeOutputSurface() override; |
150 void WillCommit() override; | 150 void WillCommit() override; |
(...skipping 27 matching lines...) Expand all Loading... |
178 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 178 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
179 | 179 |
180 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 180 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
181 | 181 |
182 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 182 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
183 }; | 183 }; |
184 | 184 |
185 } // namespace content | 185 } // namespace content |
186 | 186 |
187 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 187 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |