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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; | 119 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; |
| 120 void SetBeginFrameSource(cc::SurfaceId surface_id, |
| 121 cc::BeginFrameSource* begin_frame_source) override; |
120 | 122 |
121 bool CanCopyToBitmap() const; | 123 bool CanCopyToBitmap() const; |
122 | 124 |
123 // Public interface exposed to RenderWidgetHostView. | 125 // Public interface exposed to RenderWidgetHostView. |
124 | 126 |
125 // Note: |satisfies_sequences| is cleared in calls to this function. | 127 // Note: |satisfies_sequences| is cleared in calls to this function. |
126 void SwapDelegatedFrame( | 128 void SwapDelegatedFrame( |
127 uint32 output_surface_id, | 129 uint32 output_surface_id, |
128 scoped_ptr<cc::DelegatedFrameData> frame_data, | 130 scoped_ptr<cc::DelegatedFrameData> frame_data, |
129 float frame_device_scale_factor, | 131 float frame_device_scale_factor, |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // YUV readback pipeline. | 340 // YUV readback pipeline. |
339 scoped_ptr<content::ReadbackYUVInterface> | 341 scoped_ptr<content::ReadbackYUVInterface> |
340 yuv_readback_pipeline_; | 342 yuv_readback_pipeline_; |
341 | 343 |
342 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 344 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
343 }; | 345 }; |
344 | 346 |
345 } // namespace content | 347 } // namespace content |
346 | 348 |
347 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 349 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |