crbug_884166.cpp 726 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright 2018 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_884166, canvas, 300, 300) {
  12. SkPaint paint;
  13. paint.setAntiAlias(true);
  14. paint.setStyle(SkPaint::kFill_Style);
  15. SkPath path;
  16. path.moveTo(153.25, 280.75);
  17. path.lineTo(161.75, 281.75);
  18. path.lineTo(164.25, 282.00);
  19. path.lineTo( 0.00, 276.00);
  20. path.lineTo(161.50, 0.00);
  21. path.lineTo(286.25, 231.25);
  22. path.lineTo(163.75, 282.00);
  23. path.lineTo(150.00, 280.00);
  24. canvas->drawPath(path, paint);
  25. }