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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Cleanup. 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 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, 75 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
76 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 76 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
77 cc::mojom::MojoCompositorFrameSinkClientPtr client, 77 cc::mojom::MojoCompositorFrameSinkClientPtr client,
78 cc::mojom::DisplayPrivateAssociatedRequest display_private_request) 78 cc::mojom::DisplayPrivateAssociatedRequest display_private_request)
79 override; 79 override;
80 void CreateCompositorFrameSink( 80 void CreateCompositorFrameSink(
81 const cc::FrameSinkId& frame_sink_id, 81 const cc::FrameSinkId& frame_sink_id,
82 cc::mojom::MojoCompositorFrameSinkRequest request, 82 cc::mojom::MojoCompositorFrameSinkRequest request,
83 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 83 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
84 cc::mojom::MojoCompositorFrameSinkClientPtr client) override; 84 cc::mojom::MojoCompositorFrameSinkClientPtr client) 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 void CreateCompositorFrameSinkInternal( 93 void CreateCompositorFrameSinkInternal(
93 const cc::FrameSinkId& frame_sink_id, 94 const cc::FrameSinkId& frame_sink_id,
94 gpu::SurfaceHandle surface_handle, 95 gpu::SurfaceHandle surface_handle,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 132
132 cc::mojom::DisplayCompositorClientPtr client_; 133 cc::mojom::DisplayCompositorClientPtr client_;
133 mojo::Binding<cc::mojom::DisplayCompositor> binding_; 134 mojo::Binding<cc::mojom::DisplayCompositor> binding_;
134 135
135 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor); 136 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor);
136 }; 137 };
137 138
138 } // namespace ui 139 } // namespace ui
139 140
140 #endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ 141 #endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698