| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "gm.h" | 9 #include "gm.h" |
| 10 #include "SkTArray.h" | 10 #include "SkTArray.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 protected: | 29 protected: |
| 30 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 30 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 31 return kSkipTiled_Flag; | 31 return kSkipTiled_Flag; |
| 32 } | 32 } |
| 33 | 33 |
| 34 virtual SkString onShortName() SK_OVERRIDE { | 34 virtual SkString onShortName() SK_OVERRIDE { |
| 35 return SkString("roundrects"); | 35 return SkString("roundrects"); |
| 36 } | 36 } |
| 37 | 37 |
| 38 virtual SkISize onISize() SK_OVERRIDE { | 38 virtual SkISize onISize() SK_OVERRIDE { |
| 39 return make_isize(1200, 900); | 39 return SkISize::Make(1200, 900); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void makePaints() { | 42 void makePaints() { |
| 43 { | 43 { |
| 44 // no AA | 44 // no AA |
| 45 SkPaint p; | 45 SkPaint p; |
| 46 fPaints.push_back(p); | 46 fPaints.push_back(p); |
| 47 } | 47 } |
| 48 | 48 |
| 49 { | 49 { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 typedef GM INHERITED; | 335 typedef GM INHERITED; |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 ////////////////////////////////////////////////////////////////////////////// | 338 ////////////////////////////////////////////////////////////////////////////// |
| 339 | 339 |
| 340 static GM* MyFactory(void*) { return new RoundRectGM; } | 340 static GM* MyFactory(void*) { return new RoundRectGM; } |
| 341 static GMRegistry reg(MyFactory); | 341 static GMRegistry reg(MyFactory); |
| 342 | 342 |
| 343 } | 343 } |
| OLD | NEW |