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