OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 #include "gm.h" | 9 #include "gm.h" |
10 #include "SkTArray.h" | 10 #include "SkTArray.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 p.setAntiAlias(true); | 316 p.setAntiAlias(true); |
317 p.setStyle(SkPaint::kStroke_Style); | 317 p.setStyle(SkPaint::kStroke_Style); |
318 p.setStrokeWidth(strokeWidths[i]); | 318 p.setStrokeWidth(strokeWidths[i]); |
319 p.setColor(color); | 319 p.setColor(color); |
320 | 320 |
321 canvas->drawRRect(circleRect, p); | 321 canvas->drawRRect(circleRect, p); |
322 canvas->restore(); | 322 canvas->restore(); |
323 } | 323 } |
324 } | 324 } |
325 | 325 |
326 // test old entry point (skbug.com/3786) | 326 // test old entry point ( https://bug.skia.org/3786 ) |
327 { | 327 { |
328 canvas->save(); | 328 canvas->save(); |
329 | 329 |
330 canvas->translate(kXStart + SK_Scalar1 * kXStep * 5 + SK_Scalar1 / 4
, | 330 canvas->translate(kXStart + SK_Scalar1 * kXStep * 5 + SK_Scalar1 / 4
, |
331 kYStart + SK_Scalar1 * kYStep * 4 + SK_Scalar1 / 4
+ | 331 kYStart + SK_Scalar1 * kYStep * 4 + SK_Scalar1 / 4
+ |
332 SK_ScalarHalf * kYStep); | 332 SK_ScalarHalf * kYStep); |
333 | 333 |
334 const SkColor color = gen_color(&rand); | 334 const SkColor color = gen_color(&rand); |
335 | 335 |
336 SkPaint p; | 336 SkPaint p; |
(...skipping 12 matching lines...) Expand all Loading... |
349 | 349 |
350 typedef GM INHERITED; | 350 typedef GM INHERITED; |
351 }; | 351 }; |
352 | 352 |
353 ////////////////////////////////////////////////////////////////////////////// | 353 ////////////////////////////////////////////////////////////////////////////// |
354 | 354 |
355 static GM* MyFactory(void*) { return new RoundRectGM; } | 355 static GM* MyFactory(void*) { return new RoundRectGM; } |
356 static GMRegistry reg(MyFactory); | 356 static GMRegistry reg(MyFactory); |
357 | 357 |
358 } | 358 } |
OLD | NEW |