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

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

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 11 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/surfaces/surface_info.h ('k') | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void AddObserver(SurfaceObserver* obs) { observer_list_.AddObserver(obs); } 54 void AddObserver(SurfaceObserver* obs) { observer_list_.AddObserver(obs); }
55 55
56 void RemoveObserver(SurfaceObserver* obs) { 56 void RemoveObserver(SurfaceObserver* obs) {
57 observer_list_.RemoveObserver(obs); 57 observer_list_.RemoveObserver(obs);
58 } 58 }
59 59
60 bool SurfaceModified(const SurfaceId& surface_id); 60 bool SurfaceModified(const SurfaceId& surface_id);
61 61
62 // Called when a CompositorFrame is submitted to a SurfaceFactory for a given 62 // Called when a CompositorFrame is submitted to a SurfaceFactory for a given
63 // |surface_id| for the first time. 63 // |surface_id| for the first time.
64 void SurfaceCreated(const SurfaceId& surface_id, 64 void SurfaceCreated(const SurfaceInfo& surface_info);
65 const gfx::Size& frame_size,
66 float device_scale_factor);
67 65
68 // A frame for a surface satisfies a set of sequence numbers in a particular 66 // A frame for a surface satisfies a set of sequence numbers in a particular
69 // id namespace. 67 // id namespace.
70 void DidSatisfySequences(const FrameSinkId& frame_sink_id, 68 void DidSatisfySequences(const FrameSinkId& frame_sink_id,
71 std::vector<uint32_t>* sequence); 69 std::vector<uint32_t>* sequence);
72 70
73 void RegisterFrameSinkId(const FrameSinkId& frame_sink_id); 71 void RegisterFrameSinkId(const FrameSinkId& frame_sink_id);
74 72
75 // Invalidate a frame_sink_id that might still have associated sequences, 73 // Invalidate a frame_sink_id that might still have associated sequences,
76 // possibly because a renderer process has crashed. 74 // possibly because a renderer process has crashed.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 scoped_refptr<SurfaceReferenceFactory> reference_factory_; 205 scoped_refptr<SurfaceReferenceFactory> reference_factory_;
208 206
209 base::WeakPtrFactory<SurfaceManager> weak_factory_; 207 base::WeakPtrFactory<SurfaceManager> weak_factory_;
210 208
211 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); 209 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
212 }; 210 };
213 211
214 } // namespace cc 212 } // namespace cc
215 213
216 #endif // CC_SURFACES_SURFACE_MANAGER_H_ 214 #endif // CC_SURFACES_SURFACE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_info.h ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698