Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698