| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual void setShowScrollBottleneckRects(bool show); | 131 virtual void setShowScrollBottleneckRects(bool show); |
| 132 virtual void setTopControlsShownRatio(float); | 132 virtual void setTopControlsShownRatio(float); |
| 133 | 133 |
| 134 // TODO(aelias): Delete after Blink roll | 134 // TODO(aelias): Delete after Blink roll |
| 135 virtual void setTopControlsContentOffset(float); | 135 virtual void setTopControlsContentOffset(float); |
| 136 | 136 |
| 137 // cc::LayerTreeHostClient implementation. | 137 // cc::LayerTreeHostClient implementation. |
| 138 void WillBeginMainFrame() override; | 138 void WillBeginMainFrame() override; |
| 139 void DidBeginMainFrame() override; | 139 void DidBeginMainFrame() override; |
| 140 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 140 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
| 141 void BeginMainFrameNotExpectedSoon() override; |
| 141 void Layout() override; | 142 void Layout() override; |
| 142 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 143 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 143 const gfx::Vector2dF& outer_delta, | 144 const gfx::Vector2dF& outer_delta, |
| 144 const gfx::Vector2dF& elastic_overscroll_delta, | 145 const gfx::Vector2dF& elastic_overscroll_delta, |
| 145 float page_scale, | 146 float page_scale, |
| 146 float top_controls_delta) override; | 147 float top_controls_delta) override; |
| 147 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 148 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
| 148 float page_scale, | 149 float page_scale, |
| 149 float top_controls_delta) override; | 150 float top_controls_delta) override; |
| 150 void RequestNewOutputSurface() override; | 151 void RequestNewOutputSurface() override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 181 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 182 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 182 | 183 |
| 183 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 184 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
| 184 | 185 |
| 185 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 186 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 186 }; | 187 }; |
| 187 | 188 |
| 188 } // namespace content | 189 } // namespace content |
| 189 | 190 |
| 190 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 191 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |