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

Unified Diff: src/core/SkPictureCommon.h

Issue 2036783005: Add nested SkPictureImageFilters to the GPU veto. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « src/core/SkImageFilter.cpp ('k') | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureCommon.h
diff --git a/src/core/SkPictureCommon.h b/src/core/SkPictureCommon.h
index 1c38b049fa7314771a5c06f6762e696cd666f831..b81f5a604e3b6df9a37b7f0e98c21fa86ad30d82 100644
--- a/src/core/SkPictureCommon.h
+++ b/src/core/SkPictureCommon.h
@@ -91,6 +91,9 @@ struct SkPathCounter {
// Initially assume it's slow.
fNumSlowPathsAndDashEffects++;
}
+ if (paint && paint->getImageFilter()) {
+ fNumSlowPathsAndDashEffects += paint->getImageFilter()->numSlowPaths();
+ }
}
void operator()(const SkRecords::DrawPoints& op) {
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/effects/SkPictureImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698