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