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

Unified Diff: include/core/SkTextBlob.h

Issue 1036613002: simple patch to always init SkTextBlob uniqueID (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 9 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 | src/core/SkTextBlob.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTextBlob.h
diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h
index 6970e6d5c78294b19787bddd32d984c069d5c7f8..d31ec5c760d01a31abe1cc58d3cb7c9a28b56ae1 100644
--- a/include/core/SkTextBlob.h
+++ b/include/core/SkTextBlob.h
@@ -30,7 +30,7 @@ public:
/**
* Return a non-zero, unique value representing the text blob.
*/
- uint32_t uniqueID() const;
+ uint32_t uniqueID() const { return fUniqueID; }
/**
* Serialize to a buffer.
@@ -98,7 +98,7 @@ private:
const int fRunCount;
const SkRect fBounds;
- mutable uint32_t fUniqueID;
+ const uint32_t fUniqueID;
SkDEBUGCODE(size_t fStorageSize;)
« no previous file with comments | « no previous file | src/core/SkTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698