Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c623af2

Browse files
committed
[PathKit] Add conic tests and re-create expectations.
Expectations changed in https://skia-review.googlesource.com/147720 Also apparently I missed a spot when adding conics. Bug: skia: Change-Id: I6a9b40ef4518a304bcb575a1ea9be1c900ef18d1 Reviewed-on: https://skia-review.googlesource.com/147816 Reviewed-by: Kevin Lubick <kjlubick@google.com>
1 parent c7f8f6c commit c623af2

File tree

5 files changed

+2149
-87
lines changed

5 files changed

+2149
-87
lines changed

experimental/pathkit/pathkit_wasm_bindings.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ SkPathOrNull EMSCRIPTEN_KEEPALIVE FromCmds(uintptr_t /* float* */ cptr, int numC
130130
x2 = cmds[i++], y2 = cmds[i++];
131131
path.quadTo(x1, y1, x2, y2);
132132
break;
133+
case CONIC:
134+
CHECK_NUM_ARGS(6);
135+
x1 = cmds[i++], y1 = cmds[i++];
136+
x2 = cmds[i++], y2 = cmds[i++];
137+
x3 = cmds[i++]; // width
138+
path.conicTo(x1, y1, x2, y2, x3);
139+
break;
133140
case CUBIC:
134141
CHECK_NUM_ARGS(6);
135142
x1 = cmds[i++], y1 = cmds[i++];

0 commit comments

Comments
 (0)