Index: gm/imagefilterscropexpand.cpp |
diff --git a/gm/imagefilterscropexpand.cpp b/gm/imagefilterscropexpand.cpp |
index 4ce845d9eea06ff1f6ce831a72b038a698f55873..8794897c6b1c5ca78b9b8a57d74a1b6a135e136a 100644 |
--- a/gm/imagefilterscropexpand.cpp |
+++ b/gm/imagefilterscropexpand.cpp |
@@ -50,11 +50,10 @@ protected: |
sk_sp<SkImageFilter> gradientCircleSource(SkImageSource::Make(std::move(gradientCircle))); |
sk_sp<SkImageFilter> noopCropped(SkOffsetImageFilter::Make(0, 0, nullptr, &cropRect)); |
robertphillips
2016/05/18 12:36:00
// This color matrix saturates the green component
|
- SkScalar sk255 = SkIntToScalar(255); |
SkScalar matrix[20] = { 1, 0, 0, 0, 0, |
- 0, 1, 0, 0, sk255, |
+ 0, 1, 0, 0, 255, |
0, 0, 1, 0, 0, |
- 0, 0, 0, 0, sk255 }; |
+ 0, 0, 0, 1, 32 }; |
sk_sp<SkColorFilter> cfAlphaTrans(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); |
SkRect r = SkRect::MakeWH(SkIntToScalar(64), SkIntToScalar(64)); |