crbug_913349.cpp 682 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2019 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #include "gm/gm.h"
  8. #include "include/core/SkCanvas.h"
  9. #include "include/core/SkPaint.h"
  10. #include "include/core/SkPath.h"
  11. DEF_SIMPLE_GM(crbug_913349, canvas, 500, 600) {
  12. SkPaint paint;
  13. paint.setAntiAlias(true);
  14. paint.setStyle(SkPaint::kFill_Style);
  15. // This is a reduction from crbug.com/913349 to 5 verts.
  16. SkPath path;
  17. path.moveTo( 349.5, 225.75);
  18. path.lineTo( 96.5, 74);
  19. path.lineTo( 500.50, 226);
  20. path.lineTo( 350, 226);
  21. path.lineTo( 350, 224);
  22. canvas->drawPath(path, paint);
  23. }