| 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace cc { | 36 namespace cc { |
| 37 class CompositorFrameSinkSupport; | 37 class CompositorFrameSinkSupport; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace media { | 40 namespace media { |
| 41 class VideoFrame; | 41 class VideoFrame; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace display_compositor { | 44 namespace viz { |
| 45 class ReadbackYUVInterface; | 45 class ReadbackYUVInterface; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace content { | 48 namespace content { |
| 49 | 49 |
| 50 class DelegatedFrameHost; | 50 class DelegatedFrameHost; |
| 51 class RenderWidgetHostViewFrameSubscriber; | 51 class RenderWidgetHostViewFrameSubscriber; |
| 52 class CompositorResizeLock; | 52 class CompositorResizeLock; |
| 53 | 53 |
| 54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, | 54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // Subscriber that listens to frame presentation events. | 305 // Subscriber that listens to frame presentation events. |
| 306 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 306 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
| 307 std::vector<scoped_refptr<OwnedMailbox>> idle_frame_subscriber_textures_; | 307 std::vector<scoped_refptr<OwnedMailbox>> idle_frame_subscriber_textures_; |
| 308 | 308 |
| 309 // Callback used to pass the output request to the layer or to a function | 309 // Callback used to pass the output request to the layer or to a function |
| 310 // specified by a test. | 310 // specified by a test. |
| 311 base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)> | 311 base::Callback<void(std::unique_ptr<cc::CopyOutputRequest>)> |
| 312 request_copy_of_output_callback_for_testing_; | 312 request_copy_of_output_callback_for_testing_; |
| 313 | 313 |
| 314 // YUV readback pipeline. | 314 // YUV readback pipeline. |
| 315 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 315 std::unique_ptr<viz::ReadbackYUVInterface> yuv_readback_pipeline_; |
| 316 yuv_readback_pipeline_; | |
| 317 | 316 |
| 318 bool needs_begin_frame_ = false; | 317 bool needs_begin_frame_ = false; |
| 319 uint32_t latest_confirmed_begin_frame_source_id_ = 0; | 318 uint32_t latest_confirmed_begin_frame_source_id_ = 0; |
| 320 uint64_t latest_confirmed_begin_frame_sequence_number_ = | 319 uint64_t latest_confirmed_begin_frame_sequence_number_ = |
| 321 cc::BeginFrameArgs::kInvalidFrameNumber; | 320 cc::BeginFrameArgs::kInvalidFrameNumber; |
| 322 | 321 |
| 323 bool has_frame_ = false; | 322 bool has_frame_ = false; |
| 324 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = | 323 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
| 325 nullptr; | 324 nullptr; |
| 326 | 325 |
| 327 std::unique_ptr<viz::FrameEvictor> frame_evictor_; | 326 std::unique_ptr<viz::FrameEvictor> frame_evictor_; |
| 328 }; | 327 }; |
| 329 | 328 |
| 330 } // namespace content | 329 } // namespace content |
| 331 | 330 |
| 332 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 331 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |