OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 // This test only works with the GPU backend. | 9 // This test only works with the GPU backend. |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 protected: | 87 protected: |
88 virtual SkString onShortName() SK_OVERRIDE { | 88 virtual SkString onShortName() SK_OVERRIDE { |
89 return SkString("patch_primitive"); | 89 return SkString("patch_primitive"); |
90 } | 90 } |
91 | 91 |
92 virtual SkISize onISize() SK_OVERRIDE { | 92 virtual SkISize onISize() SK_OVERRIDE { |
93 return SkISize::Make(800, 800); | 93 return SkISize::Make(800, 800); |
94 } | 94 } |
95 | 95 |
96 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 96 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
97 return kSkipTiled_Flag | kSkipPipe_Flag | kSkipPicture_Flag; | 97 return kSkipTiled_Flag; |
mtklein
2014/08/04 18:23:03
Just checking, does this not draw correctly when t
dandov
2014/08/04 19:59:27
Yes this doesn't draw correctly with tiles. I trie
mtklein
2014/08/04 20:40:47
SGTM. Thanks for checking.
| |
98 } | 98 } |
99 | 99 |
100 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 100 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
101 | 101 |
102 SkPaint paint; | 102 SkPaint paint; |
103 SkColor colors[4] = { | 103 SkColor colors[4] = { |
104 SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorCYAN | 104 SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorCYAN |
105 }; | 105 }; |
106 SkPoint points[12] = { | 106 SkPoint points[12] = { |
107 {50,50},{75,20},{125,80}, {150,50}, | 107 {50,50},{75,20},{125,80}, {150,50}, |
(...skipping 27 matching lines...) Expand all Loading... | |
135 | 135 |
136 private: | 136 private: |
137 typedef GM INHERITED; | 137 typedef GM INHERITED; |
138 }; | 138 }; |
139 | 139 |
140 DEF_GM(return SkNEW(SkPatchGM); ) | 140 DEF_GM(return SkNEW(SkPatchGM); ) |
141 | 141 |
142 } | 142 } |
143 | 143 |
144 #endif | 144 #endif |
OLD | NEW |