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

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

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Cleanup 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 void EvictFrame(); 47 void EvictFrame();
48 void SetNeedsBeginFrame(bool needs_begin_frame); 48 void SetNeedsBeginFrame(bool needs_begin_frame);
49 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, 49 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id,
50 CompositorFrame frame); 50 CompositorFrame frame);
51 void Require(const LocalSurfaceId& local_surface_id, 51 void Require(const LocalSurfaceId& local_surface_id,
52 const SurfaceSequence& sequence); 52 const SurfaceSequence& sequence);
53 void Satisfy(const SurfaceSequence& sequence); 53 void Satisfy(const SurfaceSequence& sequence);
54 void AddChildFrameSink(const FrameSinkId& child_frame_sink_id); 54 void AddChildFrameSink(const FrameSinkId& child_frame_sink_id);
55 void RemoveChildFrameSink(const FrameSinkId& child_frame_sink_id); 55 void RemoveChildFrameSink(const FrameSinkId& child_frame_sink_id);
56 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request);
56 57
57 private: 58 private:
58 // Update surface references with SurfaceManager for current CompositorFrame 59 // Update surface references with SurfaceManager for current CompositorFrame
59 // that has |local_surface_id|. UpdateReferences() must be called on 60 // that has |local_surface_id|. UpdateReferences() must be called on
60 // |reference_tracker_| before calling this. Will add and remove top-level 61 // |reference_tracker_| before calling this. Will add and remove top-level
61 // root references if |display_| is not null. 62 // root references if |display_| is not null.
62 void UpdateSurfaceReferences(const SurfaceId& last_surface_id, 63 void UpdateSurfaceReferences(const SurfaceId& last_surface_id,
63 const LocalSurfaceId& local_surface_id); 64 const LocalSurfaceId& local_surface_id);
64 65
65 void AddTopLevelRootReference(const SurfaceId& surface_id); 66 void AddTopLevelRootReference(const SurfaceId& surface_id);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 const bool submits_to_display_compositor_; 115 const bool submits_to_display_compositor_;
115 116
116 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; 117 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); 119 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
119 }; 120 };
120 121
121 } // namespace cc 122 } // namespace cc
122 123
123 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 124 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698