| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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" | |
| 10 #include "SkRectShaderImageFilter.h" | |
| 11 #include "SkPerlinNoiseShader.h" | 9 #include "SkPerlinNoiseShader.h" |
| 12 | 10 |
| 13 namespace skiagm { | 11 namespace skiagm { |
| 14 | 12 |
| 15 class PerlinNoiseGM : public GM { | 13 class PerlinNoiseGM : public GM { |
| 16 public: | 14 public: |
| 17 PerlinNoiseGM() { | 15 PerlinNoiseGM() { |
| 18 this->setBGColor(0xFF000000); | 16 this->setBGColor(0xFF000000); |
| 19 fSize = SkISize::Make(80, 80); | 17 fSize = SkISize::Make(80, 80); |
| 20 } | 18 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 typedef GM INHERITED; | 104 typedef GM INHERITED; |
| 107 SkISize fSize; | 105 SkISize fSize; |
| 108 }; | 106 }; |
| 109 | 107 |
| 110 ////////////////////////////////////////////////////////////////////////////// | 108 ////////////////////////////////////////////////////////////////////////////// |
| 111 | 109 |
| 112 static GM* MyFactory(void*) { return new PerlinNoiseGM; } | 110 static GM* MyFactory(void*) { return new PerlinNoiseGM; } |
| 113 static GMRegistry reg(MyFactory); | 111 static GMRegistry reg(MyFactory); |
| 114 | 112 |
| 115 } | 113 } |
| OLD | NEW |