From 50bdad85db2fe6be4d0bf0c5b6473f712b1bdd32 Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Tue, 3 Jan 2012 20:51:57 +0000 Subject: Implement the color matrix filter in Ganesh. Also, fix and enable the color matrix test slide. This was basically implemented in the same places where the blending-based color filter was being done. The shader simply does a mat4 matrix multiply and a vec4 add. Review URL: http://codereview.appspot.com/5489107/ git-svn-id: http://skia.googlecode.com/svn/trunk@2948 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/colormatrix.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gm/colormatrix.cpp') diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp index 2c6e44c1f2..7d57b3278b 100644 --- a/gm/colormatrix.cpp +++ b/gm/colormatrix.cpp @@ -34,6 +34,7 @@ protected: bm.setConfig(SkBitmap::kARGB_8888_Config, width, height); bm.allocPixels(); SkCanvas canvas(bm); + canvas.clear(0x0); for (int y = 0; y < height; ++y) { for (int x = 0; x < width; ++x) { SkPaint paint; -- cgit v1.2.3