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