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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // ImageTransportFactoryObserver implementation. | 110 // ImageTransportFactoryObserver implementation. |
111 void OnLostResources() override; | 111 void OnLostResources() override; |
112 | 112 |
113 // DelegatedFrameEvictorClient implementation. | 113 // DelegatedFrameEvictorClient implementation. |
114 void EvictDelegatedFrame() override; | 114 void EvictDelegatedFrame() 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 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; | 118 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; |
119 void SetBeginFrameSource(cc::SurfaceId surface_id, | 119 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
120 cc::BeginFrameSource* begin_frame_source) override; | |
121 | 120 |
122 bool CanCopyToBitmap() const; | 121 bool CanCopyToBitmap() const; |
123 | 122 |
124 // Public interface exposed to RenderWidgetHostView. | 123 // Public interface exposed to RenderWidgetHostView. |
125 | 124 |
126 void SwapDelegatedFrame(uint32_t output_surface_id, | 125 void SwapDelegatedFrame(uint32_t output_surface_id, |
127 scoped_ptr<cc::CompositorFrame> frame); | 126 scoped_ptr<cc::CompositorFrame> frame); |
128 void ClearDelegatedFrame(); | 127 void ClearDelegatedFrame(); |
129 void WasHidden(); | 128 void WasHidden(); |
130 void WasShown(const ui::LatencyInfo& latency_info); | 129 void WasShown(const ui::LatencyInfo& latency_info); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // Callback used to pass the output request to the layer or to a function | 307 // Callback used to pass the output request to the layer or to a function |
309 // specified by a test. | 308 // specified by a test. |
310 base::Callback<void(scoped_ptr<cc::CopyOutputRequest>)> | 309 base::Callback<void(scoped_ptr<cc::CopyOutputRequest>)> |
311 request_copy_of_output_callback_for_testing_; | 310 request_copy_of_output_callback_for_testing_; |
312 | 311 |
313 // YUV readback pipeline. | 312 // YUV readback pipeline. |
314 scoped_ptr<content::ReadbackYUVInterface> | 313 scoped_ptr<content::ReadbackYUVInterface> |
315 yuv_readback_pipeline_; | 314 yuv_readback_pipeline_; |
316 | 315 |
317 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 316 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 317 |
| 318 cc::BeginFrameSource* begin_frame_source_; |
318 }; | 319 }; |
319 | 320 |
320 } // namespace content | 321 } // namespace content |
321 | 322 |
322 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 323 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |