| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // Public interface exposed to RenderWidgetHostView. | 121 // Public interface exposed to RenderWidgetHostView. |
| 122 | 122 |
| 123 // Note: |satisfies_sequences| is cleared in calls to this function. | 123 // Note: |satisfies_sequences| is cleared in calls to this function. |
| 124 void SwapDelegatedFrame( | 124 void SwapDelegatedFrame( |
| 125 uint32 output_surface_id, | 125 uint32 output_surface_id, |
| 126 scoped_ptr<cc::DelegatedFrameData> frame_data, | 126 scoped_ptr<cc::DelegatedFrameData> frame_data, |
| 127 float frame_device_scale_factor, | 127 float frame_device_scale_factor, |
| 128 const std::vector<ui::LatencyInfo>& latency_info, | 128 const std::vector<ui::LatencyInfo>& latency_info, |
| 129 std::vector<uint32_t>* satisfies_sequences); | 129 std::vector<uint32_t>* satisfies_sequences); |
| 130 void ClearDelegatedFrame(); |
| 130 void WasHidden(); | 131 void WasHidden(); |
| 131 void WasShown(const ui::LatencyInfo& latency_info); | 132 void WasShown(const ui::LatencyInfo& latency_info); |
| 132 void WasResized(); | 133 void WasResized(); |
| 133 bool HasSavedFrame(); | 134 bool HasSavedFrame(); |
| 134 gfx::Size GetRequestedRendererSize() const; | 135 gfx::Size GetRequestedRendererSize() const; |
| 135 void SetCompositor(ui::Compositor* compositor); | 136 void SetCompositor(ui::Compositor* compositor); |
| 136 void ResetCompositor(); | 137 void ResetCompositor(); |
| 137 void SetVSyncParameters(const base::TimeTicks& timebase, | 138 void SetVSyncParameters(const base::TimeTicks& timebase, |
| 138 const base::TimeDelta& interval); | 139 const base::TimeDelta& interval); |
| 139 // Note: |src_subset| is specified in DIP dimensions while |output_size| | 140 // Note: |src_subset| is specified in DIP dimensions while |output_size| |
| (...skipping 196 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 |