blob: 20744e2d8a7769abac4ea3a60ada036d777afbf7 [file] [log] [blame]
* Copyright 2019 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#include "gm.h"
#include "SkCanvas.h"
#include "SkPath.h"
DEF_SIMPLE_GM_BG(crbug_947055, canvas, 200, 50, SK_ColorBLUE) {
// Green 2D rectangle to highlight the red rectangle. Isn't necessary
// to trigger problem, but helps show the extreme corner outsets.
SkPaint paint;
canvas->drawRect(SkRect::MakeXYWH(19.f, 7.f, 180.f, 10.f), paint);
// Red perspective rectangle with bad AA on Ganesh
canvas->concat(SkMatrix::MakeAll(1.0f, 2.4520f, 19.0f,
0.0f, 0.3528f, 9.5f,
0.0f, 0.0225f, 1.0f));
canvas->drawRect(SkRect::MakeWH(180.f, 500.f), paint);