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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // cc::SurfaceFactoryClient implementation. | 125 // cc::SurfaceFactoryClient implementation. |
126 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 126 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
127 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; | 127 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; |
128 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 128 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
129 | 129 |
130 bool CanCopyToBitmap() const; | 130 bool CanCopyToBitmap() const; |
131 | 131 |
132 // Public interface exposed to RenderWidgetHostView. | 132 // Public interface exposed to RenderWidgetHostView. |
133 | 133 |
134 void SwapDelegatedFrame(uint32_t output_surface_id, | 134 void SwapDelegatedFrame(uint32_t output_surface_id, |
135 std::unique_ptr<cc::CompositorFrame> frame); | 135 cc::CompositorFrame frame); |
136 void ClearDelegatedFrame(); | 136 void ClearDelegatedFrame(); |
137 void WasHidden(); | 137 void WasHidden(); |
138 void WasShown(const ui::LatencyInfo& latency_info); | 138 void WasShown(const ui::LatencyInfo& latency_info); |
139 void WasResized(); | 139 void WasResized(); |
140 bool HasSavedFrame(); | 140 bool HasSavedFrame(); |
141 gfx::Size GetRequestedRendererSize() const; | 141 gfx::Size GetRequestedRendererSize() const; |
142 void SetCompositor(ui::Compositor* compositor); | 142 void SetCompositor(ui::Compositor* compositor); |
143 void ResetCompositor(); | 143 void ResetCompositor(); |
144 void SetVSyncParameters(const base::TimeTicks& timebase, | 144 void SetVSyncParameters(const base::TimeTicks& timebase, |
145 const base::TimeDelta& interval); | 145 const base::TimeDelta& interval); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // YUV readback pipeline. | 327 // YUV readback pipeline. |
328 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 328 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
329 yuv_readback_pipeline_; | 329 yuv_readback_pipeline_; |
330 | 330 |
331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
332 }; | 332 }; |
333 | 333 |
334 } // namespace content | 334 } // namespace content |
335 | 335 |
336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |