Chromium Code Reviews| Index: gm/skbug_4868.cpp |
| diff --git a/gm/skbug_4868.cpp b/gm/skbug_4868.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d573106a4eb2930d6b7adee8dc3db11da1db5aa4 |
| --- /dev/null |
| +++ b/gm/skbug_4868.cpp |
| @@ -0,0 +1,21 @@ |
| +/* |
| + * Copyright 2016 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" |
| + |
| +DEF_SIMPLE_GM(skbug_4868, canvas, 32, 32) { |
|
tomhudson
2016/02/24 20:10:56
It's pretty clear that there was misunderstanding
|
| + canvas->translate(-68.0f, -3378.0f); |
| + SkPaint paint; |
| + paint.setAntiAlias(true); |
| + paint.setStyle(SkPaint::kStroke_Style); |
| + canvas->scale(0.56692914f, 0.56692914f); |
| + SkRect rc = SkRect::MakeLTRB(158.0f, 5994.80273f, 165.0f, 5998.80225f); |
| + canvas->clipRect(rc); |
| + canvas->clear(0xFFCECFCE); |
| + canvas->drawLine(rc.left(), rc.top(), rc.right(), rc.bottom(), paint); |
| + canvas->drawLine(rc.right(), rc.top(), rc.left(), rc.bottom(), paint); |
| +} |