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