Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: content/browser/renderer_host/delegated_frame_host.h

Issue 1902463002: Introduce components/display_compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove bot changes. Will do in a separate CL Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698