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

Unified Diff: src/gpu/gl/GrGLSL.h

Issue 25023003: Implement color filter as GrGLEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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/gpu/gl/GrGLSL.h
diff --git a/src/gpu/gl/GrGLSL.h b/src/gpu/gl/GrGLSL.h
index b7457a2cbbb93c023790428be29aa7d582c801d4..828cda41bba82809a775cedca860a92100845280 100644
--- a/src/gpu/gl/GrGLSL.h
+++ b/src/gpu/gl/GrGLSL.h
@@ -197,6 +197,10 @@ public:
static const char* zerosStr();
static const char* onesStr();
+ bool isValid() const {
+ return kFullExpr_ExprType != fType || !fExpr.isEmpty();
+ }
+
private:
GrGLSLExpr(const char format[], const char in0[])
: fType(kFullExpr_ExprType) {
@@ -217,10 +221,6 @@ private:
template<int M>
static GrGLSLExpr<N> VectorCast(const GrGLSLExpr<M>&);
- bool isValid() const {
- return kFullExpr_ExprType != fType || !fExpr.isEmpty();
- }
-
static const char* expandComponentStr();
static const char* castStr();

Powered by Google App Engine
This is Rietveld 408576698