| 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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "cc/layers/delegated_frame_provider.h" | 9 #include "cc/layers/delegated_frame_provider.h" |
| 10 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 scoped_ptr<cc::CopyOutputResult> result); | 233 scoped_ptr<cc::CopyOutputResult> result); |
| 234 static void CopyFromCompositingSurfaceFinishedForVideo( | 234 static void CopyFromCompositingSurfaceFinishedForVideo( |
| 235 base::WeakPtr<DelegatedFrameHost> rwhva, | 235 base::WeakPtr<DelegatedFrameHost> rwhva, |
| 236 const base::Callback<void(bool)>& callback, | 236 const base::Callback<void(bool)>& callback, |
| 237 scoped_refptr<OwnedMailbox> subscriber_texture, | 237 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 238 scoped_ptr<cc::SingleReleaseCallback> release_callback, | 238 scoped_ptr<cc::SingleReleaseCallback> release_callback, |
| 239 bool result); | 239 bool result); |
| 240 static void ReturnSubscriberTexture( | 240 static void ReturnSubscriberTexture( |
| 241 base::WeakPtr<DelegatedFrameHost> rwhva, | 241 base::WeakPtr<DelegatedFrameHost> rwhva, |
| 242 scoped_refptr<OwnedMailbox> subscriber_texture, | 242 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 243 uint32 sync_point); | 243 const gpu::SyncToken& sync_token); |
| 244 | 244 |
| 245 void SendDelegatedFrameAck(uint32 output_surface_id); | 245 void SendDelegatedFrameAck(uint32 output_surface_id); |
| 246 void SurfaceDrawn(uint32 output_surface_id, cc::SurfaceDrawStatus drawn); | 246 void SurfaceDrawn(uint32 output_surface_id, cc::SurfaceDrawStatus drawn); |
| 247 void SendReturnedDelegatedResources(uint32 output_surface_id); | 247 void SendReturnedDelegatedResources(uint32 output_surface_id); |
| 248 | 248 |
| 249 // Called to consult the current |frame_subscriber_|, to determine and maybe | 249 // Called to consult the current |frame_subscriber_|, to determine and maybe |
| 250 // initiate a copy-into-video-frame request. | 250 // initiate a copy-into-video-frame request. |
| 251 void DidReceiveFrameFromRenderer(const gfx::Rect& damage_rect); | 251 void DidReceiveFrameFromRenderer(const gfx::Rect& damage_rect); |
| 252 | 252 |
| 253 DelegatedFrameHostClient* const client_; | 253 DelegatedFrameHostClient* const client_; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // YUV readback pipeline. | 339 // YUV readback pipeline. |
| 340 scoped_ptr<content::ReadbackYUVInterface> | 340 scoped_ptr<content::ReadbackYUVInterface> |
| 341 yuv_readback_pipeline_; | 341 yuv_readback_pipeline_; |
| 342 | 342 |
| 343 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 343 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 } // namespace content | 346 } // namespace content |
| 347 | 347 |
| 348 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 348 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |