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

Unified Diff: include/core/SkPictureAnalyzer.h

Issue 2000423005: Complex clipPath accounting (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: review Created 4 years, 7 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
« no previous file with comments | « no previous file | src/core/SkPictureAnalyzer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPictureAnalyzer.h
diff --git a/include/core/SkPictureAnalyzer.h b/include/core/SkPictureAnalyzer.h
index fa8cdb1fd18b8c890ec3b65a70ed6ca91d64b0d3..b7a76cce80f69a015506bb66fca00226a033a24b 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.
« no previous file with comments | « no previous file | src/core/SkPictureAnalyzer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698