| 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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 // Called after async thumbnailer task completes. Scales and crops the result | 210 // Called after async thumbnailer task completes. Scales and crops the result |
| 211 // of the copy. | 211 // of the copy. |
| 212 static void CopyFromCompositingSurfaceHasResultForVideo( | 212 static void CopyFromCompositingSurfaceHasResultForVideo( |
| 213 base::WeakPtr<DelegatedFrameHost> rwhva, | 213 base::WeakPtr<DelegatedFrameHost> rwhva, |
| 214 scoped_refptr<OwnedMailbox> subscriber_texture, | 214 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 215 scoped_refptr<media::VideoFrame> video_frame, | 215 scoped_refptr<media::VideoFrame> video_frame, |
| 216 const base::Callback<void(const gfx::Rect&, bool)>& callback, | 216 const base::Callback<void(const gfx::Rect&, bool)>& callback, |
| 217 std::unique_ptr<cc::CopyOutputResult> result); | 217 std::unique_ptr<cc::CopyOutputResult> result); |
| 218 static void CopyFromCompositingSurfaceFinishedForVideo( | 218 static void CopyFromCompositingSurfaceFinishedForVideo( |
| 219 scoped_refptr<media::VideoFrame> video_frame, |
| 219 base::WeakPtr<DelegatedFrameHost> rwhva, | 220 base::WeakPtr<DelegatedFrameHost> rwhva, |
| 220 const base::Callback<void(bool)>& callback, | 221 const base::Callback<void(bool)>& callback, |
| 221 scoped_refptr<OwnedMailbox> subscriber_texture, | 222 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 222 std::unique_ptr<cc::SingleReleaseCallback> release_callback, | 223 std::unique_ptr<cc::SingleReleaseCallback> release_callback, |
| 223 bool result); | 224 bool result); |
| 224 static void ReturnSubscriberTexture( | 225 static void ReturnSubscriberTexture( |
| 225 base::WeakPtr<DelegatedFrameHost> rwhva, | 226 base::WeakPtr<DelegatedFrameHost> rwhva, |
| 226 scoped_refptr<OwnedMailbox> subscriber_texture, | 227 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 227 const gpu::SyncToken& sync_token); | 228 const gpu::SyncToken& sync_token); |
| 228 | 229 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 std::unique_ptr<content::ReadbackYUVInterface> yuv_readback_pipeline_; | 317 std::unique_ptr<content::ReadbackYUVInterface> yuv_readback_pipeline_; |
| 317 | 318 |
| 318 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 319 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 319 | 320 |
| 320 cc::BeginFrameSource* begin_frame_source_; | 321 cc::BeginFrameSource* begin_frame_source_; |
| 321 }; | 322 }; |
| 322 | 323 |
| 323 } // namespace content | 324 } // namespace content |
| 324 | 325 |
| 325 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 326 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |