Chromium Code Reviews| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 void SwapDelegatedFrame( | 122 void SwapDelegatedFrame( |
| 123 uint32 output_surface_id, | 123 uint32 output_surface_id, |
| 124 scoped_ptr<cc::DelegatedFrameData> frame_data, | 124 scoped_ptr<cc::DelegatedFrameData> frame_data, |
| 125 float frame_device_scale_factor, | 125 float frame_device_scale_factor, |
| 126 const std::vector<ui::LatencyInfo>& latency_info); | 126 const std::vector<ui::LatencyInfo>& latency_info, |
| 127 std::vector<uint32_t> satifies_sequences); | |
|
jochen (gone - plz use gerrit)
2015/07/14 14:33:00
why is this pass by value? I'd either expect a con
wjmaclean
2015/07/14 14:58:01
My bad ... the function modifies the vector (via s
| |
| 127 void WasHidden(); | 128 void WasHidden(); |
| 128 void WasShown(const ui::LatencyInfo& latency_info); | 129 void WasShown(const ui::LatencyInfo& latency_info); |
| 129 void WasResized(); | 130 void WasResized(); |
| 130 bool HasSavedFrame(); | 131 bool HasSavedFrame(); |
| 131 gfx::Size GetRequestedRendererSize() const; | 132 gfx::Size GetRequestedRendererSize() const; |
| 132 void SetCompositor(ui::Compositor* compositor); | 133 void SetCompositor(ui::Compositor* compositor); |
| 133 void ResetCompositor(); | 134 void ResetCompositor(); |
| 134 void SetVSyncParameters(const base::TimeTicks& timebase, | 135 void SetVSyncParameters(const base::TimeTicks& timebase, |
| 135 const base::TimeDelta& interval); | 136 const base::TimeDelta& interval); |
| 136 // Note: |src_subset| is specified in DIP dimensions while |output_size| | 137 // 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. | 330 // YUV readback pipeline. |
| 330 scoped_ptr<content::ReadbackYUVInterface> | 331 scoped_ptr<content::ReadbackYUVInterface> |
| 331 yuv_readback_pipeline_; | 332 yuv_readback_pipeline_; |
| 332 | 333 |
| 333 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 334 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 334 }; | 335 }; |
| 335 | 336 |
| 336 } // namespace content | 337 } // namespace content |
| 337 | 338 |
| 338 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 339 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |