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 15 matching lines...) Expand all Loading... |
26 #include "ui/compositor/layer_owner_delegate.h" | 26 #include "ui/compositor/layer_owner_delegate.h" |
27 #include "ui/events/event.h" | 27 #include "ui/events/event.h" |
28 #include "ui/gfx/geometry/rect_conversions.h" | 28 #include "ui/gfx/geometry/rect_conversions.h" |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class TickClock; | 31 class TickClock; |
32 } | 32 } |
33 | 33 |
34 namespace cc { | 34 namespace cc { |
35 class SurfaceFactory; | 35 class SurfaceFactory; |
36 enum class SurfaceDrawStatus; | |
37 } | 36 } |
38 | 37 |
39 namespace media { | 38 namespace media { |
40 class VideoFrame; | 39 class VideoFrame; |
41 } | 40 } |
42 | 41 |
43 namespace display_compositor { | 42 namespace display_compositor { |
44 class ReadbackYUVInterface; | 43 class ReadbackYUVInterface; |
45 } | 44 } |
46 | 45 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 scoped_refptr<OwnedMailbox> subscriber_texture, | 231 scoped_refptr<OwnedMailbox> subscriber_texture, |
233 std::unique_ptr<cc::SingleReleaseCallback> release_callback, | 232 std::unique_ptr<cc::SingleReleaseCallback> release_callback, |
234 bool result); | 233 bool result); |
235 static void ReturnSubscriberTexture( | 234 static void ReturnSubscriberTexture( |
236 base::WeakPtr<DelegatedFrameHost> rwhva, | 235 base::WeakPtr<DelegatedFrameHost> rwhva, |
237 scoped_refptr<OwnedMailbox> subscriber_texture, | 236 scoped_refptr<OwnedMailbox> subscriber_texture, |
238 const gpu::SyncToken& sync_token); | 237 const gpu::SyncToken& sync_token); |
239 | 238 |
240 void SendReclaimCompositorResources(uint32_t output_surface_id, | 239 void SendReclaimCompositorResources(uint32_t output_surface_id, |
241 bool is_swap_ack); | 240 bool is_swap_ack); |
242 void SurfaceDrawn(uint32_t output_surface_id, cc::SurfaceDrawStatus drawn); | 241 void SurfaceDrawn(uint32_t output_surface_id); |
243 | 242 |
244 // Called to consult the current |frame_subscriber_|, to determine and maybe | 243 // Called to consult the current |frame_subscriber_|, to determine and maybe |
245 // initiate a copy-into-video-frame request. | 244 // initiate a copy-into-video-frame request. |
246 void AttemptFrameSubscriberCapture(const gfx::Rect& damage_rect); | 245 void AttemptFrameSubscriberCapture(const gfx::Rect& damage_rect); |
247 | 246 |
248 DelegatedFrameHostClient* const client_; | 247 DelegatedFrameHostClient* const client_; |
249 ui::Compositor* compositor_; | 248 ui::Compositor* compositor_; |
250 | 249 |
251 // The vsync manager we are observing for changes, if any. | 250 // The vsync manager we are observing for changes, if any. |
252 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; | 251 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 // YUV readback pipeline. | 325 // YUV readback pipeline. |
327 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 326 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
328 yuv_readback_pipeline_; | 327 yuv_readback_pipeline_; |
329 | 328 |
330 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 329 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
331 }; | 330 }; |
332 | 331 |
333 } // namespace content | 332 } // namespace content |
334 | 333 |
335 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 334 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |