diff options
author | joshualitt <joshualitt@chromium.org> | 2015-03-25 13:40:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-25 13:40:13 -0700 |
commit | 2af858354d913397a6c316ef46a5d52d686e10ab (patch) | |
tree | 14a44b67e8ac1a5d6b7adaa27a0666ebe117f042 /include/core/SkTextBlob.h | |
parent | d4714af018158c15e13439bef2c9b5bafc25c1d7 (diff) |
simple patch to always init SkTextBlob uniqueID
BUG=skia:
Review URL: https://codereview.chromium.org/1036613002
Diffstat (limited to 'include/core/SkTextBlob.h')
-rw-r--r-- | include/core/SkTextBlob.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h index 6970e6d5c7..d31ec5c760 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;) |