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