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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 void NotifySwapTime(ReportTimeCallback callback) override; | 175 void NotifySwapTime(ReportTimeCallback callback) override; |
176 | 176 |
177 void UpdateBrowserControlsState(blink::WebBrowserControlsState constraints, | 177 void UpdateBrowserControlsState(blink::WebBrowserControlsState constraints, |
178 blink::WebBrowserControlsState current, | 178 blink::WebBrowserControlsState current, |
179 bool animate) override; | 179 bool animate) override; |
180 void SetBrowserControlsHeight(float height, bool shrink) override; | 180 void SetBrowserControlsHeight(float height, bool shrink) override; |
181 void SetBrowserControlsShownRatio(float) override; | 181 void SetBrowserControlsShownRatio(float) override; |
182 // TODO(ianwen): Move this method to WebLayerTreeView and implement main | 182 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
183 // thread scrolling. | 183 // thread scrolling. |
184 virtual void setBottomControlsHeight(float height); | 184 virtual void setBottomControlsHeight(float height); |
| 185 void RequestDecode(sk_sp<SkImage> image, |
| 186 const base::Callback<void(bool)>& callback) override; |
185 | 187 |
186 // cc::LayerTreeHostClient implementation. | 188 // cc::LayerTreeHostClient implementation. |
187 void WillBeginMainFrame() override; | 189 void WillBeginMainFrame() override; |
188 void DidBeginMainFrame() override; | 190 void DidBeginMainFrame() override; |
189 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 191 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
190 void BeginMainFrameNotExpectedSoon() override; | 192 void BeginMainFrameNotExpectedSoon() override; |
191 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; | 193 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; |
192 void UpdateLayerTreeHost() override; | 194 void UpdateLayerTreeHost() override; |
193 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 195 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
194 const gfx::Vector2dF& outer_delta, | 196 const gfx::Vector2dF& outer_delta, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 cc::FrameSinkId frame_sink_id_; | 249 cc::FrameSinkId frame_sink_id_; |
248 | 250 |
249 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 251 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
250 | 252 |
251 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); | 253 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); |
252 }; | 254 }; |
253 | 255 |
254 } // namespace content | 256 } // namespace content |
255 | 257 |
256 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 258 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |