Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: gm/skbug_4868.cpp

Issue 1720863003: SkPDF: fix scalar serialization (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pdf/SkPDFUtils.cpp » ('j') | src/pdf/SkPDFUtils.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/skbug_4868.cpp
diff --git a/gm/skbug_4868.cpp b/gm/skbug_4868.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..261e86b65118d54095933049ac837a4ef1383674
--- /dev/null
+++ b/gm/skbug_4868.cpp
@@ -0,0 +1,22 @@
+/*
+ * 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) {
+ canvas->translate(-68.0f, -3378.0f);
+ SkPaint paint;
+ paint.setAntiAlias(true);
+ paint.setStyle(SkPaint::kStroke_Style);
+ SkScalar scale = 0.5669291338582677;
+ canvas->scale(scale, scale);
+ 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);
+}
« no previous file with comments | « no previous file | src/pdf/SkPDFUtils.cpp » ('j') | src/pdf/SkPDFUtils.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698