| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPath.h" | 10 #include "SkPath.h" |
| 11 #include "SkTypeface.h" | 11 #include "SkTypeface.h" |
| 12 | 12 |
| 13 namespace skiagm { | 13 namespace skiagm { |
| 14 | 14 |
| 15 class StrokeFillGM : public GM { | 15 class StrokeFillGM : public GM { |
| 16 public: | 16 public: |
| 17 StrokeFillGM() { | 17 StrokeFillGM() { |
| 18 | 18 |
| 19 } | 19 } |
| 20 | 20 |
| 21 protected: | 21 protected: |
| 22 uint32_t onGetFlags() const SK_OVERRIDE { | |
| 23 return kSkipTiled_Flag; | |
| 24 } | |
| 25 | 22 |
| 26 SkString onShortName() SK_OVERRIDE { | 23 SkString onShortName() SK_OVERRIDE { |
| 27 return SkString("stroke-fill"); | 24 return SkString("stroke-fill"); |
| 28 } | 25 } |
| 29 | 26 |
| 30 SkISize onISize() SK_OVERRIDE { | 27 SkISize onISize() SK_OVERRIDE { |
| 31 return SkISize::Make(640, 480); | 28 return SkISize::Make(640, 480); |
| 32 } | 29 } |
| 33 | 30 |
| 34 static void show_bold(SkCanvas* canvas, const void* text, int len, | 31 static void show_bold(SkCanvas* canvas, const void* text, int len, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 116 |
| 120 private: | 117 private: |
| 121 typedef GM INHERITED; | 118 typedef GM INHERITED; |
| 122 }; | 119 }; |
| 123 | 120 |
| 124 ////////////////////////////////////////////////////////////////////////////// | 121 ////////////////////////////////////////////////////////////////////////////// |
| 125 | 122 |
| 126 DEF_GM(return SkNEW(StrokeFillGM);) | 123 DEF_GM(return SkNEW(StrokeFillGM);) |
| 127 | 124 |
| 128 } | 125 } |
| OLD | NEW |