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

Side by Side Diff: cc/surfaces/compositor_frame_sink_support.h

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Remove callback Created 3 years, 10 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
« no previous file with comments | « cc/ipc/mojo_compositor_frame_sink.mojom ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_set> 9 #include <unordered_set>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void EvictFrame(); 49 void EvictFrame();
50 void SetNeedsBeginFrame(bool needs_begin_frame); 50 void SetNeedsBeginFrame(bool needs_begin_frame);
51 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, 51 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id,
52 CompositorFrame frame); 52 CompositorFrame frame);
53 void Require(const LocalSurfaceId& local_surface_id, 53 void Require(const LocalSurfaceId& local_surface_id,
54 const SurfaceSequence& sequence); 54 const SurfaceSequence& sequence);
55 void Satisfy(const SurfaceSequence& sequence); 55 void Satisfy(const SurfaceSequence& sequence);
56 void AddChildFrameSink(const FrameSinkId& child_frame_sink_id); 56 void AddChildFrameSink(const FrameSinkId& child_frame_sink_id);
57 void RemoveChildFrameSink(const FrameSinkId& child_frame_sink_id); 57 void RemoveChildFrameSink(const FrameSinkId& child_frame_sink_id);
58 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request);
58 59
59 private: 60 private:
60 // Update surface references with SurfaceManager for current CompositorFrame 61 // Update surface references with SurfaceManager for current CompositorFrame
61 // that has |local_surface_id|. UpdateReferences() must be called on 62 // that has |local_surface_id|. UpdateReferences() must be called on
62 // |reference_tracker_| before calling this. Will add and remove top-level 63 // |reference_tracker_| before calling this. Will add and remove top-level
63 // root references if |display_| is not null. 64 // root references if |display_| is not null.
64 void UpdateSurfaceReferences(const SurfaceId& last_surface_id, 65 void UpdateSurfaceReferences(const SurfaceId& last_surface_id,
65 const LocalSurfaceId& local_surface_id); 66 const LocalSurfaceId& local_surface_id);
66 67
67 void AddTopLevelRootReference(const SurfaceId& surface_id); 68 void AddTopLevelRootReference(const SurfaceId& surface_id);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const bool handles_frame_sink_id_invalidation_; 133 const bool handles_frame_sink_id_invalidation_;
133 134
134 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; 135 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
135 136
136 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); 137 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
137 }; 138 };
138 139
139 } // namespace cc 140 } // namespace cc
140 141
141 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 142 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
OLDNEW
« no previous file with comments | « cc/ipc/mojo_compositor_frame_sink.mojom ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698