diff options
author | Romain Guy <romainguy@google.com> | 2012-02-23 13:26:23 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-02-23 17:05:32 -0800 |
commit | 3a4550bea55f523b161fe05d97f2a745e7847110 (patch) | |
tree | 992656f46417903efa91b61951274a0aaa15c4c8 /include | |
parent | aafd212a55b35fd004aeabb22a25cd3476801798 (diff) | |
download | external_skia-3a4550bea55f523b161fe05d97f2a745e7847110.zip external_skia-3a4550bea55f523b161fe05d97f2a745e7847110.tar.gz external_skia-3a4550bea55f523b161fe05d97f2a745e7847110.tar.bz2 |
Add new "sourcePath" API to SkPath
This is required to optimize texture generation in display lists.
Change-Id: I7291e3af85771bfa74190b718d45e61555c7087d
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 859486c..536e887 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -732,6 +732,8 @@ public: #ifdef SK_BUILD_FOR_ANDROID uint32_t getGenerationID() const; + const SkPath* getSourcePath() const; + void setSourcePath(const SkPath* path); #endif SkDEBUGCODE(void validate() const;) @@ -746,6 +748,7 @@ private: mutable uint8_t fConvexity; #ifdef SK_BUILD_FOR_ANDROID uint32_t fGenerationID; + const SkPath* fSourcePath; #endif // called, if dirty, by getBounds() |