diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-11-04 15:22:22 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-06 20:44:19 +0000 |
commit | fddb6c03990f3eb3dfd90a14aacddb82613591dd (patch) | |
tree | f4e0f5aa228e7869287b33ab17e91872d131b189 /src/core/SkPathPriv.h | |
parent | b35344a9d941b9e660956cccdfa4dc253af4255a (diff) |
Setup CCPR testing with GrMockContext
Beefs up the mock context to be able to support CCPR, sets up a
framework for testing CCPR with the mock context, and adds a new test.
Bug: skia:
Change-Id: If95f92726f7b1a7f52ad04ca8126551f58ea8032
Reviewed-on: https://skia-review.googlesource.com/67980
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/core/SkPathPriv.h')
-rw-r--r-- | src/core/SkPathPriv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h index 89c1e6572f..ec748a9e36 100644 --- a/src/core/SkPathPriv.h +++ b/src/core/SkPathPriv.h @@ -151,6 +151,12 @@ public: static const SkScalar* ConicWeightData(const SkPath& path) { return path.fPathRef->conicWeights(); } + + /** Returns true if the underlying SkPathRef has one single owner. */ + static bool TestingOnly_unique(const SkPath& path) { + return path.fPathRef->unique(); + } + }; #endif |