sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
reed | aa4c7a7 | 2015-04-02 20:31:17 -0700 | [diff] [blame] | 7 | |
tfarina | f168b86 | 2014-06-19 12:32:29 -0700 | [diff] [blame] | 8 | #include "Benchmark.h" |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 9 | #include "SkCanvas.h" |
| 10 | #include "SkColorFilterImageFilter.h" |
| 11 | #include "SkColorMatrixFilter.h" |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 12 | |
| 13 | #define FILTER_WIDTH_SMALL SkIntToScalar(32) |
| 14 | #define FILTER_HEIGHT_SMALL SkIntToScalar(32) |
| 15 | #define FILTER_WIDTH_LARGE SkIntToScalar(256) |
| 16 | #define FILTER_HEIGHT_LARGE SkIntToScalar(256) |
| 17 | |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 18 | static sk_sp<SkImageFilter> make_brightness(float amount, sk_sp<SkImageFilter> input) { |
| 19 | SkScalar amount255 = SkScalarMul(amount, SkIntToScalar(255)); |
| 20 | SkScalar matrix[20] = { 1, 0, 0, 0, amount255, |
| 21 | 0, 1, 0, 0, amount255, |
| 22 | 0, 0, 1, 0, amount255, |
| 23 | 0, 0, 0, 1, 0 }; |
| 24 | sk_sp<SkColorFilter> filter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); |
| 25 | return SkColorFilterImageFilter::Make(std::move(filter), std::move(input)); |
| 26 | } |
| 27 | |
| 28 | static sk_sp<SkImageFilter> make_grayscale(sk_sp<SkImageFilter> input) { |
| 29 | SkScalar matrix[20]; |
| 30 | memset(matrix, 0, 20 * sizeof(SkScalar)); |
| 31 | matrix[0] = matrix[5] = matrix[10] = 0.2126f; |
| 32 | matrix[1] = matrix[6] = matrix[11] = 0.7152f; |
| 33 | matrix[2] = matrix[7] = matrix[12] = 0.0722f; |
| 34 | matrix[18] = 1.0f; |
| 35 | sk_sp<SkColorFilter> filter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); |
| 36 | return SkColorFilterImageFilter::Make(std::move(filter), std::move(input)); |
| 37 | } |
| 38 | |
| 39 | static sk_sp<SkImageFilter> make_mode_blue(sk_sp<SkImageFilter> input) { |
| 40 | sk_sp<SkColorFilter> filter(SkColorFilter::MakeModeFilter(SK_ColorBLUE, |
| 41 | SkXfermode::kSrcIn_Mode)); |
| 42 | return SkColorFilterImageFilter::Make(std::move(filter), std::move(input)); |
| 43 | } |
| 44 | |
tfarina | f168b86 | 2014-06-19 12:32:29 -0700 | [diff] [blame] | 45 | class ColorFilterBaseBench : public Benchmark { |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 46 | |
| 47 | public: |
robertphillips | 8c0326d | 2016-04-05 12:48:34 -0700 | [diff] [blame] | 48 | ColorFilterBaseBench(bool small) : fIsSmall(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 49 | |
| 50 | protected: |
| 51 | SkRect getFilterRect() const { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 52 | return this->isSmall() ? SkRect::MakeWH(FILTER_WIDTH_SMALL, FILTER_HEIGHT_SMALL) : |
| 53 | SkRect::MakeWH(FILTER_WIDTH_LARGE, FILTER_HEIGHT_LARGE); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | inline bool isSmall() const { return fIsSmall; } |
reed | aa4c7a7 | 2015-04-02 20:31:17 -0700 | [diff] [blame] | 57 | |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 58 | private: |
| 59 | bool fIsSmall; |
| 60 | |
tfarina | f168b86 | 2014-06-19 12:32:29 -0700 | [diff] [blame] | 61 | typedef Benchmark INHERITED; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 62 | }; |
| 63 | |
| 64 | class ColorFilterDimBrightBench : public ColorFilterBaseBench { |
| 65 | |
| 66 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 67 | ColorFilterDimBrightBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 68 | |
| 69 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 70 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 71 | return this->isSmall() ? "colorfilter_dim_bright_small" : "colorfilter_dim_bright_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 72 | } |
| 73 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 74 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 75 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 76 | SkPaint paint; |
| 77 | paint.setColor(SK_ColorRED); |
mtklein@google.com | c289743 | 2013-09-10 19:23:38 +0000 | [diff] [blame] | 78 | |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 79 | for (int i = 0; i < loops; i++) { |
mtklein@google.com | c289743 | 2013-09-10 19:23:38 +0000 | [diff] [blame] | 80 | for (float brightness = -1.0f; brightness <= 1.0f; brightness += 0.4f) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 81 | sk_sp<SkImageFilter> dim(make_brightness(-brightness, nullptr)); |
| 82 | paint.setImageFilter(make_brightness(brightness, std::move(dim))); |
mtklein@google.com | c289743 | 2013-09-10 19:23:38 +0000 | [diff] [blame] | 83 | canvas->drawRect(r, paint); |
| 84 | } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 85 | } |
| 86 | } |
| 87 | |
| 88 | private: |
| 89 | typedef ColorFilterBaseBench INHERITED; |
| 90 | }; |
| 91 | |
| 92 | class ColorFilterBrightGrayBench : public ColorFilterBaseBench { |
| 93 | |
| 94 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 95 | ColorFilterBrightGrayBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 96 | |
| 97 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 98 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 99 | return this->isSmall() ? "colorfilter_bright_gray_small" : "colorfilter_bright_gray_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 100 | } |
| 101 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 102 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 103 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 104 | SkPaint paint; |
| 105 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 106 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 107 | sk_sp<SkImageFilter> brightness(make_brightness(0.9f, nullptr)); |
| 108 | paint.setImageFilter(make_grayscale(std::move(brightness))); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 109 | canvas->drawRect(r, paint); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | private: |
| 114 | typedef ColorFilterBaseBench INHERITED; |
| 115 | }; |
| 116 | |
| 117 | class ColorFilterGrayBrightBench : public ColorFilterBaseBench { |
| 118 | |
| 119 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 120 | ColorFilterGrayBrightBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 121 | |
| 122 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 123 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 124 | return this->isSmall() ? "colorfilter_gray_bright_small" : "colorfilter_gray_bright_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 125 | } |
| 126 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 127 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 128 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 129 | SkPaint paint; |
| 130 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 131 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 132 | sk_sp<SkImageFilter> grayscale(make_grayscale(nullptr)); |
| 133 | paint.setImageFilter(make_brightness(0.9f, std::move(grayscale))); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 134 | canvas->drawRect(r, paint); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | private: |
| 139 | typedef ColorFilterBaseBench INHERITED; |
| 140 | }; |
| 141 | |
| 142 | class ColorFilterBlueBrightBench : public ColorFilterBaseBench { |
| 143 | |
| 144 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 145 | ColorFilterBlueBrightBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 146 | |
| 147 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 148 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 149 | return this->isSmall() ? "colorfilter_blue_bright_small" : "colorfilter_blue_bright_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 150 | } |
| 151 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 152 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 153 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 154 | SkPaint paint; |
| 155 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 156 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 157 | sk_sp<SkImageFilter> blue(make_mode_blue(nullptr)); |
| 158 | paint.setImageFilter(make_brightness(1.0f, std::move(blue))); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 159 | canvas->drawRect(r, paint); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | private: |
| 164 | typedef ColorFilterBaseBench INHERITED; |
| 165 | }; |
| 166 | |
| 167 | class ColorFilterBrightBlueBench : public ColorFilterBaseBench { |
| 168 | |
| 169 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 170 | ColorFilterBrightBlueBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 171 | |
| 172 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 173 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 174 | return this->isSmall() ? "colorfilter_bright_blue_small" : "colorfilter_bright_blue_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 175 | } |
| 176 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 177 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 178 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 179 | SkPaint paint; |
| 180 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 181 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 182 | sk_sp<SkImageFilter> brightness(make_brightness(1.0f, nullptr)); |
| 183 | paint.setImageFilter(make_mode_blue(std::move(brightness))); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 184 | canvas->drawRect(r, paint); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | private: |
| 189 | typedef ColorFilterBaseBench INHERITED; |
| 190 | }; |
| 191 | |
| 192 | class ColorFilterBrightBench : public ColorFilterBaseBench { |
| 193 | |
| 194 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 195 | ColorFilterBrightBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 196 | |
| 197 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 198 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 199 | return this->isSmall() ? "colorfilter_bright_small" : "colorfilter_bright_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 200 | } |
| 201 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 202 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 203 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 204 | SkPaint paint; |
| 205 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 206 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 207 | paint.setImageFilter(make_brightness(1.0f, nullptr)); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 208 | canvas->drawRect(r, paint); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | private: |
| 213 | typedef ColorFilterBaseBench INHERITED; |
| 214 | }; |
| 215 | |
| 216 | class ColorFilterBlueBench : public ColorFilterBaseBench { |
| 217 | |
| 218 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 219 | ColorFilterBlueBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 220 | |
| 221 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 222 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 223 | return this->isSmall() ? "colorfilter_blue_small" : "colorfilter_blue_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 224 | } |
| 225 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 226 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 227 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 228 | SkPaint paint; |
| 229 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 230 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 231 | paint.setImageFilter(make_mode_blue(nullptr)); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 232 | canvas->drawRect(r, paint); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | private: |
| 237 | typedef ColorFilterBaseBench INHERITED; |
| 238 | }; |
| 239 | |
| 240 | class ColorFilterGrayBench : public ColorFilterBaseBench { |
| 241 | |
| 242 | public: |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 243 | ColorFilterGrayBench(bool small) : INHERITED(small) { } |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 244 | |
| 245 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 246 | const char* onGetName() override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 247 | return this->isSmall() ? "colorfilter_gray_small" : "colorfilter_gray_large"; |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 248 | } |
| 249 | |
mtklein | a1ebeb2 | 2015-10-01 09:43:39 -0700 | [diff] [blame] | 250 | void onDraw(int loops, SkCanvas* canvas) override { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 251 | SkRect r = this->getFilterRect(); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 252 | SkPaint paint; |
| 253 | paint.setColor(SK_ColorRED); |
commit-bot@chromium.org | 3361471 | 2013-12-03 18:17:16 +0000 | [diff] [blame] | 254 | for (int i = 0; i < loops; i++) { |
robertphillips | 5605b56 | 2016-04-05 11:50:42 -0700 | [diff] [blame] | 255 | paint.setImageFilter(make_grayscale(nullptr)); |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 256 | canvas->drawRect(r, paint); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | private: |
| 261 | typedef ColorFilterBaseBench INHERITED; |
| 262 | }; |
| 263 | |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 264 | /////////////////////////////////////////////////////////////////////////////// |
| 265 | |
mtklein@google.com | 410e6e8 | 2013-09-13 19:52:27 +0000 | [diff] [blame] | 266 | DEF_BENCH( return new ColorFilterDimBrightBench(true); ) |
| 267 | DEF_BENCH( return new ColorFilterBrightGrayBench(true); ) |
| 268 | DEF_BENCH( return new ColorFilterGrayBrightBench(true); ) |
| 269 | DEF_BENCH( return new ColorFilterBlueBrightBench(true); ) |
| 270 | DEF_BENCH( return new ColorFilterBrightBlueBench(true); ) |
| 271 | DEF_BENCH( return new ColorFilterBrightBench(true); ) |
| 272 | DEF_BENCH( return new ColorFilterBlueBench(true); ) |
| 273 | DEF_BENCH( return new ColorFilterGrayBench(true); ) |
sugoi@google.com | 580a172 | 2013-04-23 14:20:45 +0000 | [diff] [blame] | 274 | |
mtklein@google.com | 410e6e8 | 2013-09-13 19:52:27 +0000 | [diff] [blame] | 275 | DEF_BENCH( return new ColorFilterDimBrightBench(false); ) |
| 276 | DEF_BENCH( return new ColorFilterBrightGrayBench(false); ) |
| 277 | DEF_BENCH( return new ColorFilterGrayBrightBench(false); ) |
| 278 | DEF_BENCH( return new ColorFilterBlueBrightBench(false); ) |
| 279 | DEF_BENCH( return new ColorFilterBrightBlueBench(false); ) |
| 280 | DEF_BENCH( return new ColorFilterBrightBench(false); ) |
| 281 | DEF_BENCH( return new ColorFilterBlueBench(false); ) |
| 282 | DEF_BENCH( return new ColorFilterGrayBench(false); ) |