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

Unified Diff: tests/GeometryTest.cpp

Issue 1041573002: impl SkConvertQuadToCubic w/ Sk2s (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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/core/SkGeometry.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GeometryTest.cpp
diff --git a/tests/GeometryTest.cpp b/tests/GeometryTest.cpp
index 0ec7d68abfbb0ff1505e6f1a2e426a2091dac16b..00fc7797dc08d8b0ae0ff9f925ba4c88221ff32e 100644
--- a/tests/GeometryTest.cpp
+++ b/tests/GeometryTest.cpp
@@ -116,14 +116,11 @@ DEF_TEST(Geometry, reporter) {
REPORTER_ASSERT(reporter, count == 1 || count == 2);
pts[0].set(0, 0);
- pts[1].set(SkIntToScalar(3), 0);
- pts[2].set(SkIntToScalar(3), SkIntToScalar(3));
+ pts[1].set(3, 0);
+ pts[2].set(3, 3);
SkConvertQuadToCubic(pts, dst);
const SkPoint cubic[] = {
- { 0, 0, },
- { SkIntToScalar(2), 0, },
- { SkIntToScalar(3), SkIntToScalar(1), },
- { SkIntToScalar(3), SkIntToScalar(3) },
+ { 0, 0, }, { 2, 0, }, { 3, 1, }, { 3, 3 },
};
for (int i = 0; i < 4; ++i) {
REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i]));
« no previous file with comments | « src/core/SkGeometry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698