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

Unified Diff: src/effects/SkColorMatrixFilter.cpp

Issue 25048002: Express (GLSL expression, possibly known value) pairs as a class (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 2 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
Index: src/effects/SkColorMatrixFilter.cpp
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp
index 1f841d04892ff9458610550d06c19be59e26de86..d19e81ee9446e8ef2159d5a7bcd8f95e3710431d 100644
--- a/src/effects/SkColorMatrixFilter.cpp
+++ b/src/effects/SkColorMatrixFilter.cpp
@@ -409,7 +409,7 @@ public:
if (NULL == inputColor) {
// could optimize this case, but we aren't for now.
- inputColor = GrGLSLOnesVecf(4);
+ inputColor = GrGLSLExpr<4>(1).c_str();
}
// The max() is to guard against 0 / 0 during unpremul when the incoming color is
// transparent black.

Powered by Google App Engine
This is Rietveld 408576698