| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |