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

Unified Diff: tests/SkColor4fTest.cpp

Issue 1720443002: remove supports4f flag for colorfilters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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/SkModeColorFilter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SkColor4fTest.cpp
diff --git a/tests/SkColor4fTest.cpp b/tests/SkColor4fTest.cpp
index 46c10f18f893d7270269bd95c552d6fc6304e7a1..5700e4b79c347caa7e6d71fc17e6c04a818fa9ce 100644
--- a/tests/SkColor4fTest.cpp
+++ b/tests/SkColor4fTest.cpp
@@ -188,14 +188,11 @@ DEF_TEST(Color4f_colorfilter, reporter) {
for (const auto& rec : recs) {
SkAutoTUnref<SkColorFilter> filter(rec.fFact());
- REPORTER_ASSERT(reporter, filter->supports4f() == rec.fSupports4f);
- if (filter->supports4f()) {
- SkPMColor dst4b[N];
- filter->filterSpan(src4b, N, dst4b);
- SkPM4f dst4f[N];
- filter->filterSpan4f(src4f, N, dst4f);
- compare_spans(dst4f, dst4b, N, reporter);
- }
+ SkPMColor dst4b[N];
+ filter->filterSpan(src4b, N, dst4b);
+ SkPM4f dst4f[N];
+ filter->filterSpan4f(src4f, N, dst4f);
+ compare_spans(dst4f, dst4b, N, reporter);
}
}
« no previous file with comments | « src/core/SkModeColorFilter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698