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

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

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Address comments Created 3 years, 7 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_aggregator_unittest.cc ('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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void SetDependencyTracker( 62 void SetDependencyTracker(
63 std::unique_ptr<SurfaceDependencyTracker> dependency_tracker); 63 std::unique_ptr<SurfaceDependencyTracker> dependency_tracker);
64 SurfaceDependencyTracker* dependency_tracker() { 64 SurfaceDependencyTracker* dependency_tracker() {
65 return dependency_tracker_.get(); 65 return dependency_tracker_.get();
66 } 66 }
67 67
68 void RequestSurfaceResolution(Surface* pending_surface); 68 void RequestSurfaceResolution(Surface* pending_surface);
69 69
70 std::unique_ptr<Surface> CreateSurface( 70 std::unique_ptr<Surface> CreateSurface(
71 base::WeakPtr<CompositorFrameSinkSupport> compositor_frame_sink_support, 71 base::WeakPtr<CompositorFrameSinkSupport> compositor_frame_sink_support,
72 const LocalSurfaceId& local_surface_id); 72 const SurfaceInfo& surface_info);
73 73
74 // Destroy the Surface once a set of sequence numbers has been satisfied. 74 // Destroy the Surface once a set of sequence numbers has been satisfied.
75 void DestroySurface(std::unique_ptr<Surface> surface); 75 void DestroySurface(std::unique_ptr<Surface> surface);
76 76
77 Surface* GetSurfaceForId(const SurfaceId& surface_id); 77 Surface* GetSurfaceForId(const SurfaceId& surface_id);
78 78
79 void AddObserver(SurfaceObserver* obs) { observer_list_.AddObserver(obs); } 79 void AddObserver(SurfaceObserver* obs) { observer_list_.AddObserver(obs); }
80 80
81 void RemoveObserver(SurfaceObserver* obs) { 81 void RemoveObserver(SurfaceObserver* obs) {
82 observer_list_.RemoveObserver(obs); 82 observer_list_.RemoveObserver(obs);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 std::unique_ptr<SurfaceDependencyTracker> dependency_tracker_; 291 std::unique_ptr<SurfaceDependencyTracker> dependency_tracker_;
292 292
293 base::WeakPtrFactory<SurfaceManager> weak_factory_; 293 base::WeakPtrFactory<SurfaceManager> weak_factory_;
294 294
295 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); 295 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
296 }; 296 };
297 297
298 } // namespace cc 298 } // namespace cc
299 299
300 #endif // CC_SURFACES_SURFACE_MANAGER_H_ 300 #endif // CC_SURFACES_SURFACE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698