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

Unified Diff: components/exo/surface.h

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed webkit_unit_tests 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
Index: components/exo/surface.h
diff --git a/components/exo/surface.h b/components/exo/surface.h
index 2db62989149770e85fa198fc54dfbca8a453b93c..9a36ab7f3ea334a3e19bd4976c9d33524889de90 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -102,7 +102,7 @@ class Surface : public ui::LayerOwnerDelegate,
aura::Window* window() { return window_.get(); }
- cc::SurfaceId surface_id() const { return surface_id_; }
+ const cc::SurfaceId& surface_id() const { return surface_id_; }
// Set a buffer as the content of this surface. A buffer can only be attached
// to one surface at a time.
@@ -215,7 +215,7 @@ class Surface : public ui::LayerOwnerDelegate,
// Overridden from ui::ContextFactoryObserver.
void OnLostResources() override;
- void WillDraw(cc::SurfaceId surface_id);
+ void WillDraw(const cc::SurfaceId& surface_id);
// Check whether this Surface and its children need to create new cc::Surface
// IDs for their contents next time they get new buffer contents.

Powered by Google App Engine
This is Rietveld 408576698