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

Unified Diff: src/core/SkImageFilter.cpp

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 | « include/effects/SkPictureImageFilter.h ('k') | src/core/SkPictureCommon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageFilter.cpp
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index c7a570121b9a4d96f99244c1f7afa417f8f5cd1d..63f10ad85e3e06e6b7598c568ce6d7bbe6816f73 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -446,3 +446,13 @@ sk_sp<SkSpecialImage> SkImageFilter::filterInput(int index,
void SkImageFilter::PurgeCache() {
SkImageFilterCache::Get()->purge();
}
+
+int SkImageFilter::numSlowPaths() const {
+ int count = 0;
+ for (int i = 0; i < fInputs.count(); i++) {
+ if (fInputs[i]) {
+ count += fInputs[i]->numSlowPaths();
+ }
+ }
+ return count;
+}
« no previous file with comments | « include/effects/SkPictureImageFilter.h ('k') | src/core/SkPictureCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698