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

Unified Diff: cc/surfaces/display.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: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index 9df93d418a93ac9017e05c77f30d43adb1ac4262..3ac3ae588d754831bfe89c02e10a40baceaeb655 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -72,13 +72,13 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
// device_scale_factor is used to communicate to the external window system
// what scale this was rendered at.
- void SetSurfaceId(SurfaceId id, float device_scale_factor);
+ void SetSurfaceId(const SurfaceId& id, float device_scale_factor);
void Resize(const gfx::Size& new_size);
void SetColorSpace(const gfx::ColorSpace& color_space);
void SetExternalClip(const gfx::Rect& clip);
void SetOutputIsSecure(bool secure);
- SurfaceId CurrentSurfaceId();
+ const SurfaceId& CurrentSurfaceId();
// DisplaySchedulerClient implementation.
bool DrawAndSwap() override;
@@ -108,7 +108,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
void SetFullRootLayerDamage() override;
// SurfaceDamageObserver implementation.
- void OnSurfaceDamaged(SurfaceId surface, bool* changed) override;
+ void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
void SetEnlargePassTextureAmountForTesting(
const gfx::Size& enlarge_texture_amount) {

Powered by Google App Engine
This is Rietveld 408576698