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

Side by Side Diff: content/browser/compositor/delegated_frame_host.h

Issue 1614703003: Revert of Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 void CheckResizeLock(); 212 void CheckResizeLock();
213 213
214 // Run all on compositing commit callbacks. 214 // Run all on compositing commit callbacks.
215 void RunOnCommitCallbacks(); 215 void RunOnCommitCallbacks();
216 216
217 // Add on compositing commit callback. 217 // Add on compositing commit callback.
218 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback); 218 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback);
219 219
220 // Called after async thumbnailer task completes. Scales and crops the result 220 // Called after async thumbnailer task completes. Scales and crops the result
221 // of the copy. 221 // of the copy.
222 static void CopyFromCompositingSurfaceHasResult(
223 const gfx::Size& dst_size_in_pixel,
224 const SkColorType color_type,
225 const ReadbackRequestCallback& callback,
226 scoped_ptr<cc::CopyOutputResult> result);
227 static void PrepareTextureCopyOutputResult(
228 const gfx::Size& dst_size_in_pixel,
229 const SkColorType color_type,
230 const ReadbackRequestCallback& callback,
231 scoped_ptr<cc::CopyOutputResult> result);
232 static void PrepareBitmapCopyOutputResult(
233 const gfx::Size& dst_size_in_pixel,
234 const SkColorType color_type,
235 const ReadbackRequestCallback& callback,
236 scoped_ptr<cc::CopyOutputResult> result);
222 static void CopyFromCompositingSurfaceHasResultForVideo( 237 static void CopyFromCompositingSurfaceHasResultForVideo(
223 base::WeakPtr<DelegatedFrameHost> rwhva, 238 base::WeakPtr<DelegatedFrameHost> rwhva,
224 scoped_refptr<OwnedMailbox> subscriber_texture, 239 scoped_refptr<OwnedMailbox> subscriber_texture,
225 scoped_refptr<media::VideoFrame> video_frame, 240 scoped_refptr<media::VideoFrame> video_frame,
226 const base::Callback<void(const gfx::Rect&, bool)>& callback, 241 const base::Callback<void(const gfx::Rect&, bool)>& callback,
227 scoped_ptr<cc::CopyOutputResult> result); 242 scoped_ptr<cc::CopyOutputResult> result);
228 static void CopyFromCompositingSurfaceFinishedForVideo( 243 static void CopyFromCompositingSurfaceFinishedForVideo(
229 base::WeakPtr<DelegatedFrameHost> rwhva, 244 base::WeakPtr<DelegatedFrameHost> rwhva,
230 const base::Callback<void(bool)>& callback, 245 const base::Callback<void(bool)>& callback,
231 scoped_refptr<OwnedMailbox> subscriber_texture, 246 scoped_refptr<OwnedMailbox> subscriber_texture,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // YUV readback pipeline. 348 // YUV readback pipeline.
334 scoped_ptr<content::ReadbackYUVInterface> 349 scoped_ptr<content::ReadbackYUVInterface>
335 yuv_readback_pipeline_; 350 yuv_readback_pipeline_;
336 351
337 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 352 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
338 }; 353 };
339 354
340 } // namespace content 355 } // namespace content
341 356
342 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 357 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/webview_tag.json ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698