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

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

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary headers. Created 6 years, 2 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 "cc/layers/delegated_frame_provider.h" 8 #include "cc/layers/delegated_frame_provider.h"
9 #include "cc/layers/delegated_frame_resource_collection.h" 9 #include "cc/layers/delegated_frame_resource_collection.h"
10 #include "cc/output/copy_output_result.h" 10 #include "cc/output/copy_output_result.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void RunOnCommitCallbacks(); 176 void RunOnCommitCallbacks();
177 177
178 // Add on compositing commit callback. 178 // Add on compositing commit callback.
179 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback); 179 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback);
180 180
181 // Called after async thumbnailer task completes. Scales and crops the result 181 // Called after async thumbnailer task completes. Scales and crops the result
182 // of the copy. 182 // of the copy.
183 static void CopyFromCompositingSurfaceHasResult( 183 static void CopyFromCompositingSurfaceHasResult(
184 const gfx::Size& dst_size_in_pixel, 184 const gfx::Size& dst_size_in_pixel,
185 const SkColorType color_type, 185 const SkColorType color_type,
186 const base::Callback<void(bool, const SkBitmap&)>& callback, 186 CopyFromCompositingSurfaceCallback& callback,
187 scoped_ptr<cc::CopyOutputResult> result); 187 scoped_ptr<cc::CopyOutputResult> result);
188 static void PrepareTextureCopyOutputResult( 188 static void PrepareTextureCopyOutputResult(
189 const gfx::Size& dst_size_in_pixel, 189 const gfx::Size& dst_size_in_pixel,
190 const SkColorType color_type, 190 const SkColorType color_type,
191 const base::Callback<void(bool, const SkBitmap&)>& callback, 191 CopyFromCompositingSurfaceCallback& callback,
192 scoped_ptr<cc::CopyOutputResult> result); 192 scoped_ptr<cc::CopyOutputResult> result);
193 static void PrepareBitmapCopyOutputResult( 193 static void PrepareBitmapCopyOutputResult(
194 const gfx::Size& dst_size_in_pixel, 194 const gfx::Size& dst_size_in_pixel,
195 const SkColorType color_type, 195 const SkColorType color_type,
196 const base::Callback<void(bool, const SkBitmap&)>& callback, 196 CopyFromCompositingSurfaceCallback& callback,
197 scoped_ptr<cc::CopyOutputResult> result); 197 scoped_ptr<cc::CopyOutputResult> result);
198 static void CopyFromCompositingSurfaceHasResultForVideo( 198 static void CopyFromCompositingSurfaceHasResultForVideo(
199 base::WeakPtr<DelegatedFrameHost> rwhva, 199 base::WeakPtr<DelegatedFrameHost> rwhva,
200 scoped_refptr<OwnedMailbox> subscriber_texture, 200 scoped_refptr<OwnedMailbox> subscriber_texture,
201 scoped_refptr<media::VideoFrame> video_frame, 201 scoped_refptr<media::VideoFrame> video_frame,
202 const base::Callback<void(bool)>& callback, 202 const base::Callback<void(bool)>& callback,
203 scoped_ptr<cc::CopyOutputResult> result); 203 scoped_ptr<cc::CopyOutputResult> result);
204 static void CopyFromCompositingSurfaceFinishedForVideo( 204 static void CopyFromCompositingSurfaceFinishedForVideo(
205 base::WeakPtr<DelegatedFrameHost> rwhva, 205 base::WeakPtr<DelegatedFrameHost> rwhva,
206 const base::Callback<void(bool)>& callback, 206 const base::Callback<void(bool)>& callback,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // YUV readback pipeline. 306 // YUV readback pipeline.
307 scoped_ptr<content::ReadbackYUVInterface> 307 scoped_ptr<content::ReadbackYUVInterface>
308 yuv_readback_pipeline_; 308 yuv_readback_pipeline_;
309 309
310 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 310 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
311 }; 311 };
312 312
313 } // namespace content 313 } // namespace content
314 314
315 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 315 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698