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 8 #include "gm.h" 9 #include "SkCanvas.h" 10 #include "SkPath.h" 11 12 DEF_SIMPLE_GM(crbug_887103, canvas, 520, 520) { 13 SkPaint paint; 14 15 paint.setAntiAlias(true); 16 paint.setStyle(SkPaint::kFill_Style); 17 18 SkPath path; 19 path.moveTo(510, 20); 20 path.lineTo(500, 20); 21 path.lineTo(510, 500); 22 23 path.moveTo(500, 20); 24 path.lineTo(510, 500); 25 path.lineTo(500, 510); 26 27 path.moveTo(500, 30); 28 path.lineTo(510, 10); 29 path.lineTo( 10, 30); 30 canvas->drawPath(path, paint); 31 } 32