Index: bench/ColorFilterBench.cpp |
diff --git a/bench/ColorFilterBench.cpp b/bench/ColorFilterBench.cpp |
index 4f7f1517dd5b0767e22770b7177bcbbbf4b601a8..3c4ddd86e5f47216f4b7700903cdb66f6753945f 100644 |
--- a/bench/ColorFilterBench.cpp |
+++ b/bench/ColorFilterBench.cpp |
@@ -28,7 +28,7 @@ protected: |
SkRect::MakeWH(FILTER_WIDTH_LARGE, FILTER_HEIGHT_LARGE); |
} |
- static SkImageFilter* make_brightness(float amount, SkImageFilter* input = NULL) { |
+ static SkImageFilter* make_brightness(float amount, SkImageFilter* input = nullptr) { |
SkScalar amount255 = SkScalarMul(amount, SkIntToScalar(255)); |
SkScalar matrix[20] = { 1, 0, 0, 0, amount255, |
0, 1, 0, 0, amount255, |
@@ -38,7 +38,7 @@ protected: |
return SkColorFilterImageFilter::Create(filter, input); |
} |
- static SkImageFilter* make_grayscale(SkImageFilter* input = NULL) { |
+ static SkImageFilter* make_grayscale(SkImageFilter* input = nullptr) { |
SkScalar matrix[20]; |
memset(matrix, 0, 20 * sizeof(SkScalar)); |
matrix[0] = matrix[5] = matrix[10] = 0.2126f; |
@@ -49,7 +49,7 @@ protected: |
return SkColorFilterImageFilter::Create(filter, input); |
} |
- static SkImageFilter* make_mode_blue(SkImageFilter* input = NULL) { |
+ static SkImageFilter* make_mode_blue(SkImageFilter* input = nullptr) { |
SkAutoTUnref<SkColorFilter> filter( |
SkColorFilter::CreateModeFilter(SK_ColorBLUE, SkXfermode::kSrcIn_Mode)); |
return SkColorFilterImageFilter::Create(filter, input); |