| 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 "sk_tool_utils.h" | |
| 9 #include "SkBitmapSource.h" | 8 #include "SkBitmapSource.h" |
| 10 #include "SkDisplacementMapEffect.h" | 9 #include "SkDisplacementMapEffect.h" |
| 11 #include "gm.h" | 10 #include "gm.h" |
| 11 #include "sk_tool_utils.h" |
| 12 | 12 |
| 13 namespace skiagm { | 13 namespace skiagm { |
| 14 | 14 |
| 15 class DisplacementMapGM : public GM { | 15 class DisplacementMapGM : public GM { |
| 16 public: | 16 public: |
| 17 DisplacementMapGM() : fInitialized(false) { | 17 DisplacementMapGM() : fInitialized(false) { |
| 18 this->setBGColor(0xFF000000); | 18 this->setBGColor(0xFF000000); |
| 19 } | 19 } |
| 20 | 20 |
| 21 protected: | 21 protected: |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 SkBitmap fBitmap, fCheckerboard, fSmall, fLarge, fLargeW, fLargeH; | 207 SkBitmap fBitmap, fCheckerboard, fSmall, fLarge, fLargeW, fLargeH; |
| 208 bool fInitialized; | 208 bool fInitialized; |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 ////////////////////////////////////////////////////////////////////////////// | 211 ////////////////////////////////////////////////////////////////////////////// |
| 212 | 212 |
| 213 static GM* MyFactory(void*) { return new DisplacementMapGM; } | 213 static GM* MyFactory(void*) { return new DisplacementMapGM; } |
| 214 static GMRegistry reg(MyFactory); | 214 static GMRegistry reg(MyFactory); |
| 215 | 215 |
| 216 } | 216 } |
| OLD | NEW |