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

Unified Diff: src/core/SkPictureAnalyzer.cpp

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 | « include/core/SkPictureAnalyzer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureAnalyzer.cpp
diff --git a/src/core/SkPictureAnalyzer.cpp b/src/core/SkPictureAnalyzer.cpp
index 9f62d1dafed3783fb001c70e0151af22086c0d77..b1d61aebbac513434b8cb4ec4b58433fa0d26118 100644
--- a/src/core/SkPictureAnalyzer.cpp
+++ b/src/core/SkPictureAnalyzer.cpp
@@ -31,7 +31,7 @@ SkPictureGpuAnalyzer::SkPictureGpuAnalyzer(const sk_sp<SkPicture>& picture,
}
void SkPictureGpuAnalyzer::analyzePicture(const SkPicture* picture) {
- if (!picture || veto_predicate(fNumSlowPaths)) {
+ if (!picture) {
return;
}
@@ -39,10 +39,6 @@ void SkPictureGpuAnalyzer::analyzePicture(const SkPicture* picture) {
}
void SkPictureGpuAnalyzer::analyzeClipPath(const SkPath& path, SkRegion::Op op, bool doAntiAlias) {
- if (veto_predicate(fNumSlowPaths)) {
- return;
- }
-
const SkRecords::ClipPath clipOp = {
SkIRect::MakeEmpty(), // Willie don't care.
path,
« no previous file with comments | « include/core/SkPictureAnalyzer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698