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

Unified Diff: include/core/SkPathRef.h

Issue 26557003: Add a GPU paths to resource cache of the context (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: a Created 7 years, 2 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: include/core/SkPathRef.h
diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h
index 22287894d98cf698d617f90aac6b43bfe3c9e6be..a68dcdfabc810ae799fa0142311611fd375da717 100644
--- a/include/core/SkPathRef.h
+++ b/include/core/SkPathRef.h
@@ -234,6 +234,8 @@ public:
*/
uint32_t writeSize();
+ uint32_t getHash() const { return static_cast<uint32_t>(this->genID()); }
+
private:
enum SerializationOffsets {
kIsFinite_SerializationShift = 25, // requires 1 bit

Powered by Google App Engine
This is Rietveld 408576698