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

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

Issue 2651213004: Revert of Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: 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 | « no previous file | cc/surfaces/surface_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACE_MANAGER_H_ 5 #ifndef CC_SURFACES_SURFACE_MANAGER_H_
6 #define CC_SURFACES_SURFACE_MANAGER_H_ 6 #define CC_SURFACES_SURFACE_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const FrameSinkId& child_frame_sink_id); 122 const FrameSinkId& child_frame_sink_id);
123 void UnregisterFrameSinkHierarchy(const FrameSinkId& parent_frame_sink_id, 123 void UnregisterFrameSinkHierarchy(const FrameSinkId& parent_frame_sink_id,
124 const FrameSinkId& child_frame_sink_id); 124 const FrameSinkId& child_frame_sink_id);
125 125
126 // SurfaceReferenceManager: 126 // SurfaceReferenceManager:
127 const SurfaceId& GetRootSurfaceId() const override; 127 const SurfaceId& GetRootSurfaceId() const override;
128 void AddSurfaceReference(const SurfaceId& parent_id, 128 void AddSurfaceReference(const SurfaceId& parent_id,
129 const SurfaceId& child_id) override; 129 const SurfaceId& child_id) override;
130 void RemoveSurfaceReference(const SurfaceId& parent_id, 130 void RemoveSurfaceReference(const SurfaceId& parent_id,
131 const SurfaceId& child_id) override; 131 const SurfaceId& child_id) override;
132 void AddSurfaceReferences(
133 const std::vector<SurfaceReference>& references) override;
134 void RemoveSurfaceReferences(
135 const std::vector<SurfaceReference>& references) override;
136 size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override; 132 size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override;
137 size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override; 133 size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override;
138 134
139 scoped_refptr<SurfaceReferenceFactory> reference_factory() { 135 scoped_refptr<SurfaceReferenceFactory> reference_factory() {
140 return reference_factory_; 136 return reference_factory_;
141 } 137 }
142 138
143 private: 139 private:
144 friend class SurfaceManagerRefTest; 140 friend class SurfaceManagerRefTest;
145 141
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 temp_references_; 243 temp_references_;
248 244
249 base::WeakPtrFactory<SurfaceManager> weak_factory_; 245 base::WeakPtrFactory<SurfaceManager> weak_factory_;
250 246
251 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); 247 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
252 }; 248 };
253 249
254 } // namespace cc 250 } // namespace cc
255 251
256 #endif // CC_SURFACES_SURFACE_MANAGER_H_ 252 #endif // CC_SURFACES_SURFACE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698