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

Unified Diff: include/core/SkPathRef.h

Issue 694503003: Implement conics for NVPR (Closed) Base URL: https://skia.googlesource.com/skia.git@hairline-test-fix-unskip-nvpr
Patch Set: cleanup Created 6 years, 1 month 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 4b57fc80e4c39fe595e9a7275ce282584818b02e..f988b57710df8cfc30eb055a9428fbcfa296185b 100644
--- a/include/core/SkPathRef.h
+++ b/include/core/SkPathRef.h
@@ -235,6 +235,11 @@ public:
return this->points()[index];
}
+ const SkScalar& atConicWeight(int index) const {
+ SkASSERT((unsigned) index < (unsigned) fConicWeights.count());
+ return this->conicWeights()[index];
+ }
+
bool operator== (const SkPathRef& ref) const;
/**
« include/core/SkPath.h ('K') | « include/core/SkPath.h ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698