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

Unified Diff: cc/surfaces/surface.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 | « no previous file | cc/surfaces/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.h
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index e91d0bf6ad418fca3371484788ae52fde2687e00..d101f6dffed7b560069567cc26f9a44659b834d1 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -40,11 +40,11 @@ class CC_SURFACES_EXPORT Surface {
public:
using DrawCallback = SurfaceFactory::DrawCallback;
- Surface(SurfaceId id, SurfaceFactory* factory);
+ Surface(const SurfaceId& id, SurfaceFactory* factory);
~Surface();
- SurfaceId surface_id() const { return surface_id_; }
- SurfaceId previous_frame_surface_id() const {
+ const SurfaceId& surface_id() const { return surface_id_; }
+ const SurfaceId& previous_frame_surface_id() const {
return previous_frame_surface_id_;
}
« no previous file with comments | « no previous file | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698