When applying a color matrix, unpremultiply the source, and premultiply the
result. If the input color is missing, set to all-zeros or all-ones as
appropriate. Add an alpha test case to the colormatrix GM.
Review URL: http://codereview.appspot.com/5520046/
git-svn-id: http://skia.googlecode.com/svn/trunk@2974 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrGLProgram.h b/src/gpu/GrGLProgram.h
index 7d19f7a..b4ad4af 100644
--- a/src/gpu/GrGLProgram.h
+++ b/src/gpu/GrGLProgram.h
@@ -231,6 +231,7 @@
private:
const ProgramDesc& getDesc() { return fProgramDesc; }
+ const char* adjustInColor(const GrStringBuilder& inColor) const;
public:
enum {