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

Unified Diff: tests/PDFDocumentTest.cpp

Issue 1552263003: SkPDF: Change handling of large-numbers in matricies. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-01-05 (Tuesday) 13:11:15 EST Created 4 years, 11 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 | « src/pdf/SkPDFDevice.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PDFDocumentTest.cpp
diff --git a/tests/PDFDocumentTest.cpp b/tests/PDFDocumentTest.cpp
index c3a5f0e04165846749a4203861ad250396f94dd1..995e35f8c0381b9ca1881cd827c156e4e846c0ad 100644
--- a/tests/PDFDocumentTest.cpp
+++ b/tests/PDFDocumentTest.cpp
@@ -154,3 +154,15 @@ DEF_TEST(document_dct_encoder, r) {
REPORTER_ASSERT(r, count_bytes(bm, true) < count_bytes(bm, false));
}
}
+
+DEF_TEST(document_skbug_4734, r) {
+ REQUIRE_PDF_DOCUMENT(document_skbug_4734, r);
+ SkDynamicMemoryWStream stream;
+ SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&stream));
+ SkCanvas* canvas = doc->beginPage(64, 64);
+ canvas->scale(10000.0f, 10000.0f);
+ canvas->translate(20.0f, 10.0f);
+ canvas->rotate(30.0f);
+ const char text[] = "HELLO";
+ canvas->drawText(text, strlen(text), 0, 0, SkPaint());
+}
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698