| 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 "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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void OnLostResources() override; | 108 void OnLostResources() override; |
| 109 | 109 |
| 110 // DelegatedFrameEvictorClient implementation. | 110 // DelegatedFrameEvictorClient implementation. |
| 111 void EvictDelegatedFrame() override; | 111 void EvictDelegatedFrame() override; |
| 112 | 112 |
| 113 // cc::DelegatedFrameProviderClient implementation. | 113 // cc::DelegatedFrameProviderClient implementation. |
| 114 void UnusedResourcesAreAvailable() override; | 114 void UnusedResourcesAreAvailable() override; |
| 115 | 115 |
| 116 // cc::SurfaceFactoryClient implementation. | 116 // cc::SurfaceFactoryClient implementation. |
| 117 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 117 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 118 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 118 | 119 |
| 119 bool CanCopyToBitmap() const; | 120 bool CanCopyToBitmap() const; |
| 120 | 121 |
| 121 // Public interface exposed to RenderWidgetHostView. | 122 // Public interface exposed to RenderWidgetHostView. |
| 122 | 123 |
| 123 // Note: |satisfies_sequences| is cleared in calls to this function. | 124 // Note: |satisfies_sequences| is cleared in calls to this function. |
| 124 void SwapDelegatedFrame( | 125 void SwapDelegatedFrame( |
| 125 uint32 output_surface_id, | 126 uint32 output_surface_id, |
| 126 scoped_ptr<cc::DelegatedFrameData> frame_data, | 127 scoped_ptr<cc::DelegatedFrameData> frame_data, |
| 127 float frame_device_scale_factor, | 128 float frame_device_scale_factor, |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // YUV readback pipeline. | 337 // YUV readback pipeline. |
| 337 scoped_ptr<content::ReadbackYUVInterface> | 338 scoped_ptr<content::ReadbackYUVInterface> |
| 338 yuv_readback_pipeline_; | 339 yuv_readback_pipeline_; |
| 339 | 340 |
| 340 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 341 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 341 }; | 342 }; |
| 342 | 343 |
| 343 } // namespace content | 344 } // namespace content |
| 344 | 345 |
| 345 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 346 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |