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