Index: src/gpu/gl/GrGLSL.h |
diff --git a/src/gpu/gl/GrGLSL.h b/src/gpu/gl/GrGLSL.h |
index b031a40a61c8508c863f55d3fdb041add7f19745..99671c130e0c5e3a431cc5b74a0ba27f2be7594c 100644 |
--- a/src/gpu/gl/GrGLSL.h |
+++ b/src/gpu/gl/GrGLSL.h |
@@ -106,6 +106,10 @@ public: |
return fExpr.c_str(); |
} |
+ bool isValid() const { |
+ return kFullExpr_ExprType != fType || !fExpr.isEmpty(); |
+ } |
+ |
protected: |
/** Constructs an invalid expression. |
* Useful only as a return value from functions that never actually return |
@@ -166,10 +170,6 @@ protected: |
fExpr.appendf(format, in0, in1); |
} |
- bool isValid() const { |
- return kFullExpr_ExprType != fType || !fExpr.isEmpty(); |
- } |
- |
/** Returns expression casted to another type. |
* Generic implementation that is called for non-trivial cases of casts. */ |
template <typename T> |