crbug_887103.cpp 707 B

1234567891011121314151617181920212223242526272829303132
  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_887103, canvas, 520, 520) {
  12. SkPaint paint;
  13. paint.setAntiAlias(true);
  14. paint.setStyle(SkPaint::kFill_Style);
  15. SkPath path;
  16. path.moveTo(510, 20);
  17. path.lineTo(500, 20);
  18. path.lineTo(510, 500);
  19. path.moveTo(500, 20);
  20. path.lineTo(510, 500);
  21. path.lineTo(500, 510);
  22. path.moveTo(500, 30);
  23. path.lineTo(510, 10);
  24. path.lineTo( 10, 30);
  25. canvas->drawPath(path, paint);
  26. }