diff options
author | fmalita <fmalita@chromium.org> | 2016-05-25 11:31:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-25 11:31:04 -0700 |
commit | b5fc58e1de6c2428f786034262a2ecdc8388d21d (patch) | |
tree | a3c81e24d8118339a5ca9590797c12317582d886 /include | |
parent | f34cd632d777e8f8be2ec1f4f3a0c363a7a6214d (diff) |
Complex clipPath accounting
Add a clipPath heuristic to SkPathCounter, and extend
SkPictureGpuAnalyzer to support external clipPath() op accounting.
BUG=skia:5347
R=reed@google.com,mtklein@google.com,senorblanco@chromium.org,bsalomon@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2000423005
Review-Url: https://codereview.chromium.org/2000423005
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPictureAnalyzer.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/core/SkPictureAnalyzer.h b/include/core/SkPictureAnalyzer.h index fa8cdb1fd1..b7a76cce80 100644 --- a/include/core/SkPictureAnalyzer.h +++ b/include/core/SkPictureAnalyzer.h @@ -9,11 +9,13 @@ #define SkPictureAnalyzer_DEFINED #include "SkRefCnt.h" +#include "SkRegion.h" #include "SkTypes.h" #if SK_SUPPORT_GPU #include "GrContext.h" +class SkPath; class SkPicture; /** \class SkPictureGpuAnalyzer @@ -29,7 +31,15 @@ public: /** * Process the given picture and accumulate its stats. */ - void analyze(const SkPicture*); + void analyzePicture(const SkPicture*); + + // Legacy/transitional alias. + void analyze(const SkPicture* picture) { this->analyzePicture(picture); } + + /** + * Process an explicit clipPath op. + */ + void analyzeClipPath(const SkPath&, SkRegion::Op, bool doAntiAlias); /** * Reset all accumulated stats. |