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 | 9 |
10 class SkJSCanvas { | 10 class SkJSCanvas { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ctx.restore(); | 171 ctx.restore(); |
172 | 172 |
173 ctx.fillText("As Expected - line width 1", 10, 10); | 173 ctx.fillText("As Expected - line width 1", 10, 10); |
174 } | 174 } |
175 | 175 |
176 class Poly2PolyGM : public skiagm::GM { | 176 class Poly2PolyGM : public skiagm::GM { |
177 public: | 177 public: |
178 Poly2PolyGM() {} | 178 Poly2PolyGM() {} |
179 | 179 |
180 protected: | 180 protected: |
| 181 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 182 return kSkipTiled_Flag; |
| 183 } |
| 184 |
181 virtual SkString onShortName() SK_OVERRIDE { | 185 virtual SkString onShortName() SK_OVERRIDE { |
182 return SkString("poly2poly"); | 186 return SkString("poly2poly"); |
183 } | 187 } |
184 | 188 |
185 virtual SkISize onISize() SK_OVERRIDE { | 189 virtual SkISize onISize() SK_OVERRIDE { |
186 return SkISize::Make(835, 840); | 190 return SkISize::Make(835, 840); |
187 } | 191 } |
188 | 192 |
189 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[], | 193 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[], |
190 const int idst[], int count) { | 194 const int idst[], int count) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 canvas->restore(); | 266 canvas->restore(); |
263 } | 267 } |
264 | 268 |
265 private: | 269 private: |
266 typedef skiagm::GM INHERITED; | 270 typedef skiagm::GM INHERITED; |
267 }; | 271 }; |
268 | 272 |
269 ////////////////////////////////////////////////////////////////////////////// | 273 ////////////////////////////////////////////////////////////////////////////// |
270 | 274 |
271 DEF_GM( return new Poly2PolyGM; ) | 275 DEF_GM( return new Poly2PolyGM; ) |
OLD | NEW |