| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "gm.h" | 8 #include "gm.h" |
| 9 #include "SkBitmapSource.h" | 9 #include "SkBitmapSource.h" |
| 10 #include "SkBlurImageFilter.h" | 10 #include "SkBlurImageFilter.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 add_paint(oif, paints); | 144 add_paint(oif, paints); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 // This GM visualizes the fast bounds for various combinations of geometry | 148 // This GM visualizes the fast bounds for various combinations of geometry |
| 149 // and image filter | 149 // and image filter |
| 150 class ImageFilterFastBoundGM : public GM { | 150 class ImageFilterFastBoundGM : public GM { |
| 151 public: | 151 public: |
| 152 ImageFilterFastBoundGM() { | 152 ImageFilterFastBoundGM() { |
| 153 this->setBGColor(sk_tool_utils::color_to_565(0xFFCCCCCC)); | 153 this->setBGColor(0xFFCCCCCC); |
| 154 } | 154 } |
| 155 | 155 |
| 156 protected: | 156 protected: |
| 157 static const int kTileWidth = 100; | 157 static const int kTileWidth = 100; |
| 158 static const int kTileHeight = 100; | 158 static const int kTileHeight = 100; |
| 159 static const int kNumVertTiles = 6; | 159 static const int kNumVertTiles = 6; |
| 160 static const int kNumXtraCols = 2; | 160 static const int kNumXtraCols = 2; |
| 161 | 161 |
| 162 SkString onShortName() override{ return SkString("filterfastbounds"); } | 162 SkString onShortName() override{ return SkString("filterfastbounds"); } |
| 163 | 163 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 private: | 318 private: |
| 319 typedef GM INHERITED; | 319 typedef GM INHERITED; |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 ////////////////////////////////////////////////////////////////////////////// | 322 ////////////////////////////////////////////////////////////////////////////// |
| 323 | 323 |
| 324 DEF_GM(return SkNEW(ImageFilterFastBoundGM);) | 324 DEF_GM(return SkNEW(ImageFilterFastBoundGM);) |
| 325 | 325 |
| 326 } | 326 } |
| OLD | NEW |