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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 void setShowScrollBottleneckRects(bool show) override; | 171 void setShowScrollBottleneckRects(bool show) override; |
172 | 172 |
173 void updateBrowserControlsState(blink::WebBrowserControlsState constraints, | 173 void updateBrowserControlsState(blink::WebBrowserControlsState constraints, |
174 blink::WebBrowserControlsState current, | 174 blink::WebBrowserControlsState current, |
175 bool animate) override; | 175 bool animate) override; |
176 void setBrowserControlsHeight(float height, bool shrink) override; | 176 void setBrowserControlsHeight(float height, bool shrink) override; |
177 void setBrowserControlsShownRatio(float) override; | 177 void setBrowserControlsShownRatio(float) override; |
178 // TODO(ianwen): Move this method to WebLayerTreeView and implement main | 178 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
179 // thread scrolling. | 179 // thread scrolling. |
180 virtual void setBottomControlsHeight(float height); | 180 virtual void setBottomControlsHeight(float height); |
| 181 void requestDecode(sk_sp<SkImage> image, |
| 182 const base::Callback<void(bool)>& callback) override; |
181 | 183 |
182 // cc::LayerTreeHostClient implementation. | 184 // cc::LayerTreeHostClient implementation. |
183 void WillBeginMainFrame() override; | 185 void WillBeginMainFrame() override; |
184 void DidBeginMainFrame() override; | 186 void DidBeginMainFrame() override; |
185 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 187 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
186 void BeginMainFrameNotExpectedSoon() override; | 188 void BeginMainFrameNotExpectedSoon() override; |
187 void UpdateLayerTreeHost() override; | 189 void UpdateLayerTreeHost() override; |
188 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 190 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
189 const gfx::Vector2dF& outer_delta, | 191 const gfx::Vector2dF& outer_delta, |
190 const gfx::Vector2dF& elastic_overscroll_delta, | 192 const gfx::Vector2dF& elastic_overscroll_delta, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 241 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
240 | 242 |
241 cc::FrameSinkId frame_sink_id_; | 243 cc::FrameSinkId frame_sink_id_; |
242 | 244 |
243 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 245 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
244 }; | 246 }; |
245 | 247 |
246 } // namespace content | 248 } // namespace content |
247 | 249 |
248 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 250 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |