Index: gm/imagefiltersgraph.cpp |
diff --git a/gm/imagefiltersgraph.cpp b/gm/imagefiltersgraph.cpp |
index 4e46869a4ec48fe654cd1f1bab8f2ce13e35c5cd..3de07993f8cd0d15f43d78d332ed66fc7edff4b5 100644 |
--- a/gm/imagefiltersgraph.cpp |
+++ b/gm/imagefiltersgraph.cpp |
@@ -140,7 +140,7 @@ protected: |
SkScalar matrix[20] = { SK_Scalar1, 0, 0, 0, 0, |
0, SK_Scalar1, 0, 0, 0, |
0, 0, SK_Scalar1, 0, 0, |
- 0, 0, 0, SkFloatToScalar(0.5f), 0 }; |
+ 0, 0, 0, 0.5f, 0 }; |
SkAutoTUnref<SkColorFilter> matrixFilter(new SkColorMatrixFilter(matrix)); |
SkAutoTUnref<SkImageFilter> colorMorph(SkColorFilterImageFilter::Create(matrixFilter, morph)); |
@@ -156,7 +156,7 @@ protected: |
SkScalar matrix[20] = { SK_Scalar1, 0, 0, 0, 0, |
0, SK_Scalar1, 0, 0, 0, |
0, 0, SK_Scalar1, 0, 0, |
- 0, 0, 0, SkFloatToScalar(0.5f), 0 }; |
+ 0, 0, 0, 0.5f, 0 }; |
SkColorMatrixFilter matrixCF(matrix); |
SkAutoTUnref<SkImageFilter> matrixFilter(SkColorFilterImageFilter::Create(&matrixCF)); |
SimpleOffsetFilter offsetFilter(SkIntToScalar(10), SkIntToScalar(10), matrixFilter); |