OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkRRect.h" | 10 #include "SkRRect.h" |
11 #include "SkPath.h" | 11 #include "SkPath.h" |
12 | 12 |
13 class DRRectGM : public skiagm::GM { | 13 class DRRectGM : public skiagm::GM { |
14 public: | 14 public: |
15 DRRectGM() {} | 15 DRRectGM() {} |
16 | 16 |
17 protected: | 17 protected: |
| 18 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 19 return kSkipTiled_Flag; |
| 20 } |
| 21 |
18 virtual SkString onShortName() SK_OVERRIDE { | 22 virtual SkString onShortName() SK_OVERRIDE { |
19 return SkString("drrect"); | 23 return SkString("drrect"); |
20 } | 24 } |
21 | 25 |
22 virtual SkISize onISize() SK_OVERRIDE { | 26 virtual SkISize onISize() SK_OVERRIDE { |
23 return SkISize::Make(640, 480); | 27 return SkISize::Make(640, 480); |
24 } | 28 } |
25 | 29 |
26 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 30 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
27 SkPaint paint; | 31 SkPaint paint; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 canvas->restore(); | 64 canvas->restore(); |
61 } | 65 } |
62 } | 66 } |
63 } | 67 } |
64 | 68 |
65 private: | 69 private: |
66 typedef GM INHERITED; | 70 typedef GM INHERITED; |
67 }; | 71 }; |
68 | 72 |
69 DEF_GM( return new DRRectGM; ) | 73 DEF_GM( return new DRRectGM; ) |
OLD | NEW |