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

Unified Diff: src/core/SkPath.cpp

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: src/core/SkPath.cpp
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 3b3a125d0eca7237e106b0a4ddc0416da18070e6..494a6750a89719d7f795664f2c577a83e5a5d39e 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -344,6 +344,10 @@ void SkPath::setSourcePath(const SkPath* path) {
}
#endif
+uint32_t SkPath::getHash() const {
+ return fPathRef->getHash();
+}
+
void SkPath::reset() {
SkDEBUGCODE(this->validate();)
« include/gpu/GrContext.h ('K') | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698