| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 118 |
| 119 bool CanCopyToBitmap() const; | 119 bool CanCopyToBitmap() const; |
| 120 | 120 |
| 121 // Public interface exposed to RenderWidgetHostView. | 121 // Public interface exposed to RenderWidgetHostView. |
| 122 |
| 123 // Note: |satisfies_sequences| is cleared in calls to this function. |
| 122 void SwapDelegatedFrame( | 124 void SwapDelegatedFrame( |
| 123 uint32 output_surface_id, | 125 uint32 output_surface_id, |
| 124 scoped_ptr<cc::DelegatedFrameData> frame_data, | 126 scoped_ptr<cc::DelegatedFrameData> frame_data, |
| 125 float frame_device_scale_factor, | 127 float frame_device_scale_factor, |
| 126 const std::vector<ui::LatencyInfo>& latency_info); | 128 const std::vector<ui::LatencyInfo>& latency_info, |
| 129 std::vector<uint32_t>* satifies_sequences); |
| 127 void WasHidden(); | 130 void WasHidden(); |
| 128 void WasShown(const ui::LatencyInfo& latency_info); | 131 void WasShown(const ui::LatencyInfo& latency_info); |
| 129 void WasResized(); | 132 void WasResized(); |
| 130 bool HasSavedFrame(); | 133 bool HasSavedFrame(); |
| 131 gfx::Size GetRequestedRendererSize() const; | 134 gfx::Size GetRequestedRendererSize() const; |
| 132 void SetCompositor(ui::Compositor* compositor); | 135 void SetCompositor(ui::Compositor* compositor); |
| 133 void ResetCompositor(); | 136 void ResetCompositor(); |
| 134 void SetVSyncParameters(const base::TimeTicks& timebase, | 137 void SetVSyncParameters(const base::TimeTicks& timebase, |
| 135 const base::TimeDelta& interval); | 138 const base::TimeDelta& interval); |
| 136 // Note: |src_subset| is specified in DIP dimensions while |output_size| | 139 // Note: |src_subset| is specified in DIP dimensions while |output_size| |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // YUV readback pipeline. | 332 // YUV readback pipeline. |
| 330 scoped_ptr<content::ReadbackYUVInterface> | 333 scoped_ptr<content::ReadbackYUVInterface> |
| 331 yuv_readback_pipeline_; | 334 yuv_readback_pipeline_; |
| 332 | 335 |
| 333 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 336 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 334 }; | 337 }; |
| 335 | 338 |
| 336 } // namespace content | 339 } // namespace content |
| 337 | 340 |
| 338 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 341 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |