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

Unified Diff: tests/SkColor4fTest.cpp

Issue 1726983002: Retire SkShader::kSupports4f_Flag (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: kPrefers4f_Flag 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/effects/gradients/Sk4fGradientBase.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 ea9a80f134f3f4120fa4d68da5361266af7b0d56..c9656b9b2a0f3933f1d93a04e68d2aa391c37f92 100644
--- a/tests/SkColor4fTest.cpp
+++ b/tests/SkColor4fTest.cpp
@@ -157,8 +157,7 @@ DEF_TEST(Color4f_shader, reporter) {
SkShader::ContextRec::kPM4f_DstType);
SkASSERT(paint.getShader()->contextSize(contextRec) <= sizeof(storage));
SkShader::Context* ctx = paint.getShader()->createContext(contextRec, storage);
- REPORTER_ASSERT(reporter, ctx->supports4f() == rec.fSupports4f);
- if (ctx->supports4f()) {
+ if (rec.fSupports4f) {
reed1 2016/02/24 03:01:13 I think we can even skip this, since all shaders "
const int N = 100;
SkPM4f buffer4f[N];
ctx->shadeSpan4f(0, 0, buffer4f, N);
« no previous file with comments | « src/effects/gradients/Sk4fGradientBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698