| 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" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 namespace skiagm { | 63 namespace skiagm { |
| 64 | 64 |
| 65 class PathReverseGM : public GM { | 65 class PathReverseGM : public GM { |
| 66 public: | 66 public: |
| 67 PathReverseGM() { | 67 PathReverseGM() { |
| 68 | 68 |
| 69 } | 69 } |
| 70 | 70 |
| 71 protected: | 71 protected: |
| 72 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 73 return kSkipTiled_Flag; |
| 74 } |
| 75 |
| 72 virtual SkString onShortName() { | 76 virtual SkString onShortName() { |
| 73 return SkString("path-reverse"); | 77 return SkString("path-reverse"); |
| 74 } | 78 } |
| 75 | 79 |
| 76 virtual SkISize onISize() { | 80 virtual SkISize onISize() { |
| 77 return make_isize(640, 480); | 81 return make_isize(640, 480); |
| 78 } | 82 } |
| 79 | 83 |
| 80 virtual void onDraw(SkCanvas* canvas) { | 84 virtual void onDraw(SkCanvas* canvas) { |
| 81 if (false) test_rev(canvas); // avoid bit rot, suppress warning | 85 if (false) test_rev(canvas); // avoid bit rot, suppress warning |
| (...skipping 28 matching lines...) Expand all Loading... |
| 110 private: | 114 private: |
| 111 typedef GM INHERITED; | 115 typedef GM INHERITED; |
| 112 }; | 116 }; |
| 113 | 117 |
| 114 ////////////////////////////////////////////////////////////////////////////// | 118 ////////////////////////////////////////////////////////////////////////////// |
| 115 | 119 |
| 116 static GM* MyFactory(void*) { return new PathReverseGM; } | 120 static GM* MyFactory(void*) { return new PathReverseGM; } |
| 117 static GMRegistry reg(MyFactory); | 121 static GMRegistry reg(MyFactory); |
| 118 | 122 |
| 119 } | 123 } |
| OLD | NEW |