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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2150633002: cc: Pass SurfaceId by const ref in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/surface_hittest.cc ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index d5c9ed0f5956c393a7f2478da886f8d6151cf076..6261fb363c3953701547d6bde52267c439c9800c 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -33,12 +33,12 @@ class CC_SURFACES_EXPORT SurfaceManager {
~SurfaceManager();
void RegisterSurface(Surface* surface);
- void DeregisterSurface(SurfaceId surface_id);
+ void DeregisterSurface(const SurfaceId& surface_id);
// Destroy the Surface once a set of sequence numbers has been satisfied.
void Destroy(std::unique_ptr<Surface> surface);
- Surface* GetSurfaceForId(SurfaceId surface_id);
+ Surface* GetSurfaceForId(const SurfaceId& surface_id);
void AddObserver(SurfaceDamageObserver* obs) {
observer_list_.AddObserver(obs);
@@ -48,7 +48,7 @@ class CC_SURFACES_EXPORT SurfaceManager {
observer_list_.RemoveObserver(obs);
}
- bool SurfaceModified(SurfaceId surface_id);
+ bool SurfaceModified(const SurfaceId& surface_id);
// A frame for a surface satisfies a set of sequence numbers in a particular
// id namespace.
« no previous file with comments | « cc/surfaces/surface_hittest.cc ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698