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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace cc { | 34 namespace cc { |
35 class SurfaceFactory; | 35 class SurfaceFactory; |
36 enum class SurfaceDrawStatus; | 36 enum class SurfaceDrawStatus; |
37 } | 37 } |
38 | 38 |
39 namespace media { | 39 namespace media { |
40 class VideoFrame; | 40 class VideoFrame; |
41 } | 41 } |
42 | 42 |
| 43 namespace display_compositor { |
| 44 class ReadbackYUVInterface; |
| 45 } |
| 46 |
43 namespace content { | 47 namespace content { |
44 | 48 |
45 class DelegatedFrameHost; | 49 class DelegatedFrameHost; |
46 class ReadbackYUVInterface; | |
47 class RenderWidgetHostViewFrameSubscriber; | 50 class RenderWidgetHostViewFrameSubscriber; |
48 class RenderWidgetHostImpl; | 51 class RenderWidgetHostImpl; |
49 class ResizeLock; | 52 class ResizeLock; |
50 | 53 |
51 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, | 54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, |
52 // which manages delegated frames, and the ui::Compositor being used to | 55 // which manages delegated frames, and the ui::Compositor being used to |
53 // display them. | 56 // display them. |
54 class CONTENT_EXPORT DelegatedFrameHostClient { | 57 class CONTENT_EXPORT DelegatedFrameHostClient { |
55 public: | 58 public: |
56 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0; | 59 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // Subscriber that listens to frame presentation events. | 311 // Subscriber that listens to frame presentation events. |
309 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 312 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
310 std::vector<scoped_refptr<OwnedMailbox>> idle_frame_subscriber_textures_; | 313 std::vector<scoped_refptr<OwnedMailbox>> idle_frame_subscriber_textures_; |
311 | 314 |
312 // Callback used to pass the output request to the layer or to a function | 315 // Callback used to pass the output request to the layer or to a function |
313 // specified by a test. | 316 // specified by a test. |
314 base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)> | 317 base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)> |
315 request_copy_of_output_callback_for_testing_; | 318 request_copy_of_output_callback_for_testing_; |
316 | 319 |
317 // YUV readback pipeline. | 320 // YUV readback pipeline. |
318 std::unique_ptr<content::ReadbackYUVInterface> yuv_readback_pipeline_; | 321 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
| 322 yuv_readback_pipeline_; |
319 | 323 |
320 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 324 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
321 }; | 325 }; |
322 | 326 |
323 } // namespace content | 327 } // namespace content |
324 | 328 |
325 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 329 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |