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

Side by Side Diff: services/ui/surfaces/display_compositor.h

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ 5 #ifndef SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_
6 #define SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ 6 #define SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const cc::FrameSinkId& frame_sink_id, 75 const cc::FrameSinkId& frame_sink_id,
76 cc::mojom::MojoCompositorFrameSinkRequest request, 76 cc::mojom::MojoCompositorFrameSinkRequest request,
77 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 77 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
78 cc::mojom::MojoCompositorFrameSinkClientPtr client) override; 78 cc::mojom::MojoCompositorFrameSinkClientPtr client) override;
79 void RegisterFrameSinkHierarchy( 79 void RegisterFrameSinkHierarchy(
80 const cc::FrameSinkId& parent_frame_sink_id, 80 const cc::FrameSinkId& parent_frame_sink_id,
81 const cc::FrameSinkId& child_frame_sink_id) override; 81 const cc::FrameSinkId& child_frame_sink_id) override;
82 void UnregisterFrameSinkHierarchy( 82 void UnregisterFrameSinkHierarchy(
83 const cc::FrameSinkId& parent_frame_sink_id, 83 const cc::FrameSinkId& parent_frame_sink_id,
84 const cc::FrameSinkId& child_frame_sink_id) override; 84 const cc::FrameSinkId& child_frame_sink_id) override;
85 void DropTemporaryReference(const cc::SurfaceId& surface_id) override;
85 86
86 private: 87 private:
87 std::unique_ptr<cc::Display> CreateDisplay( 88 std::unique_ptr<cc::Display> CreateDisplay(
88 const cc::FrameSinkId& frame_sink_id, 89 const cc::FrameSinkId& frame_sink_id,
89 gpu::SurfaceHandle surface_handle, 90 gpu::SurfaceHandle surface_handle,
90 cc::SyntheticBeginFrameSource* begin_frame_source); 91 cc::SyntheticBeginFrameSource* begin_frame_source);
91 92
92 // It is necessary to pass |frame_sink_id| by value because the id 93 // It is necessary to pass |frame_sink_id| by value because the id
93 // is owned by the GpuCompositorFrameSink in the map. When the sink is 94 // is owned by the GpuCompositorFrameSink in the map. When the sink is
94 // removed from the map, |frame_sink_id| would also be destroyed if it were a 95 // removed from the map, |frame_sink_id| would also be destroyed if it were a
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 cc::mojom::DisplayCompositorClientPtr client_; 129 cc::mojom::DisplayCompositorClientPtr client_;
129 mojo::Binding<cc::mojom::DisplayCompositor> binding_; 130 mojo::Binding<cc::mojom::DisplayCompositor> binding_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor); 132 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor);
132 }; 133 };
133 134
134 } // namespace ui 135 } // namespace ui
135 136
136 #endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ 137 #endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « components/display_compositor/gpu_root_compositor_frame_sink.cc ('k') | services/ui/surfaces/display_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698