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

Side by Side Diff: components/display_compositor/gpu_root_compositor_frame_sink.h

Issue 2711913006: Move FrameSink hierarchy registration to DisplayCompositor interface (Closed)
Patch Set: Fix mojom Formatting Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/display_compositor.mojom.h" 8 #include "cc/ipc/display_compositor.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/surfaces/compositor_frame_sink_support_client.h" 10 #include "cc/surfaces/compositor_frame_sink_support_client.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // cc::mojom::MojoCompositorFrameSink: 57 // cc::mojom::MojoCompositorFrameSink:
58 void EvictFrame() override; 58 void EvictFrame() override;
59 void SetNeedsBeginFrame(bool needs_begin_frame) override; 59 void SetNeedsBeginFrame(bool needs_begin_frame) override;
60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
61 cc::CompositorFrame frame) override; 61 cc::CompositorFrame frame) override;
62 void Require(const cc::LocalSurfaceId& local_surface_id, 62 void Require(const cc::LocalSurfaceId& local_surface_id,
63 const cc::SurfaceSequence& sequence) override; 63 const cc::SurfaceSequence& sequence) override;
64 void Satisfy(const cc::SurfaceSequence& sequence) override; 64 void Satisfy(const cc::SurfaceSequence& sequence) override;
65 65
66 // cc::mojom::MojoCompositorFrameSinkPrivate: 66 // cc::mojom::MojoCompositorFrameSinkPrivate:
67 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override;
68 void RemoveChildFrameSink(
69 const cc::FrameSinkId& child_frame_sink_id) override;
70 void RequestCopyOfSurface( 67 void RequestCopyOfSurface(
71 std::unique_ptr<cc::CopyOutputRequest> request) override; 68 std::unique_ptr<cc::CopyOutputRequest> request) override;
72 69
73 private: 70 private:
74 // cc::DisplayClient: 71 // cc::DisplayClient:
75 void DisplayOutputSurfaceLost() override; 72 void DisplayOutputSurfaceLost() override;
76 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 73 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
77 const cc::RenderPassList& render_passes) override; 74 const cc::RenderPassList& render_passes) override;
78 void DisplayDidDrawAndSwap() override; 75 void DisplayDidDrawAndSwap() override;
79 76
(...skipping 24 matching lines...) Expand all
104 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 101 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
105 compositor_frame_sink_private_binding_; 102 compositor_frame_sink_private_binding_;
106 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 103 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
107 104
108 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); 105 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink);
109 }; 106 };
110 107
111 } // namespace display_compositor 108 } // namespace display_compositor
112 109
113 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 110 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698