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

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

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile. 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);
237 static void CopyFromCompositingSurfaceHasResultForVideo( 222 static void CopyFromCompositingSurfaceHasResultForVideo(
238 base::WeakPtr<DelegatedFrameHost> rwhva, 223 base::WeakPtr<DelegatedFrameHost> rwhva,
239 scoped_refptr<OwnedMailbox> subscriber_texture, 224 scoped_refptr<OwnedMailbox> subscriber_texture,
240 scoped_refptr<media::VideoFrame> video_frame, 225 scoped_refptr<media::VideoFrame> video_frame,
241 const base::Callback<void(const gfx::Rect&, bool)>& callback, 226 const base::Callback<void(const gfx::Rect&, bool)>& callback,
242 scoped_ptr<cc::CopyOutputResult> result); 227 scoped_ptr<cc::CopyOutputResult> result);
243 static void CopyFromCompositingSurfaceFinishedForVideo( 228 static void CopyFromCompositingSurfaceFinishedForVideo(
244 base::WeakPtr<DelegatedFrameHost> rwhva, 229 base::WeakPtr<DelegatedFrameHost> rwhva,
245 const base::Callback<void(bool)>& callback, 230 const base::Callback<void(bool)>& callback,
246 scoped_refptr<OwnedMailbox> subscriber_texture, 231 scoped_refptr<OwnedMailbox> subscriber_texture,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // YUV readback pipeline. 333 // YUV readback pipeline.
349 scoped_ptr<content::ReadbackYUVInterface> 334 scoped_ptr<content::ReadbackYUVInterface>
350 yuv_readback_pipeline_; 335 yuv_readback_pipeline_;
351 336
352 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 337 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
353 }; 338 };
354 339
355 } // namespace content 340 } // namespace content
356 341
357 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 342 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698