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

Unified Diff: include/core/SkPictureAnalyzer.h

Issue 2031243003: SkPictureAnalyzer: expose the number of slow GPU commands. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove early-out veto Created 4 years, 6 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 b58807ca89361845be31b886362f19f42ade29dc..c46ca1e85436999cd2c89138f42640878c3e56d2 100644
--- a/include/core/SkPictureAnalyzer.h
+++ b/include/core/SkPictureAnalyzer.h
@@ -48,6 +48,12 @@ public:
*/
bool suitableForGpuRasterization(const char** whyNot = nullptr) const;
+ /**
+ * Returns the number of commands which are slow to draw on the GPU, capped at the predicate
+ * max.
+ */
+ uint32_t numSlowGpuCommands() { return fNumSlowPaths; }
+
private:
uint32_t fNumSlowPaths;
« 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