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

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

Issue 1635513003: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Save bug number to surface_utils.cc. Created 4 years, 10 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void CheckResizeLock(); 213 void CheckResizeLock();
214 214
215 // Run all on compositing commit callbacks. 215 // Run all on compositing commit callbacks.
216 void RunOnCommitCallbacks(); 216 void RunOnCommitCallbacks();
217 217
218 // Add on compositing commit callback. 218 // Add on compositing commit callback.
219 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback); 219 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback);
220 220
221 // Called after async thumbnailer task completes. Scales and crops the result 221 // Called after async thumbnailer task completes. Scales and crops the result
222 // of the copy. 222 // of the copy.
223 static void CopyFromCompositingSurfaceHasResult(
224 const gfx::Size& dst_size_in_pixel,
225 const SkColorType color_type,
226 const ReadbackRequestCallback& callback,
227 scoped_ptr<cc::CopyOutputResult> result);
228 static void PrepareTextureCopyOutputResult(
229 const gfx::Size& dst_size_in_pixel,
230 const SkColorType color_type,
231 const ReadbackRequestCallback& callback,
232 scoped_ptr<cc::CopyOutputResult> result);
233 static void PrepareBitmapCopyOutputResult(
234 const gfx::Size& dst_size_in_pixel,
235 const SkColorType color_type,
236 const ReadbackRequestCallback& callback,
237 scoped_ptr<cc::CopyOutputResult> result);
238 static void CopyFromCompositingSurfaceHasResultForVideo( 223 static void CopyFromCompositingSurfaceHasResultForVideo(
239 base::WeakPtr<DelegatedFrameHost> rwhva, 224 base::WeakPtr<DelegatedFrameHost> rwhva,
240 scoped_refptr<OwnedMailbox> subscriber_texture, 225 scoped_refptr<OwnedMailbox> subscriber_texture,
241 scoped_refptr<media::VideoFrame> video_frame, 226 scoped_refptr<media::VideoFrame> video_frame,
242 const base::Callback<void(const gfx::Rect&, bool)>& callback, 227 const base::Callback<void(const gfx::Rect&, bool)>& callback,
243 scoped_ptr<cc::CopyOutputResult> result); 228 scoped_ptr<cc::CopyOutputResult> result);
244 static void CopyFromCompositingSurfaceFinishedForVideo( 229 static void CopyFromCompositingSurfaceFinishedForVideo(
245 base::WeakPtr<DelegatedFrameHost> rwhva, 230 base::WeakPtr<DelegatedFrameHost> rwhva,
246 const base::Callback<void(bool)>& callback, 231 const base::Callback<void(bool)>& callback,
247 scoped_refptr<OwnedMailbox> subscriber_texture, 232 scoped_refptr<OwnedMailbox> subscriber_texture,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // YUV readback pipeline. 334 // YUV readback pipeline.
350 scoped_ptr<content::ReadbackYUVInterface> 335 scoped_ptr<content::ReadbackYUVInterface>
351 yuv_readback_pipeline_; 336 yuv_readback_pipeline_;
352 337
353 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 338 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
354 }; 339 };
355 340
356 } // namespace content 341 } // namespace content
357 342
358 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 343 #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