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