Skip to content

Commit f6ae967

Browse files
Ink Open Sourcecopybara-github
authored andcommitted
Ink: Move polyline_processing_jni from geometry module to strokes module and rename to mesh_creation_jni
It was already moved to the strokes package in cl/716272805, but its directory wasn't changed at that time. Also, the previous naming pattern was inconsistent with other JNI objects - the Kotlin-side object that this connects with is called MeshCreation, so use the name mesh_creation_jni. PiperOrigin-RevId: 721499367
1 parent dd22722 commit f6ae967

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

ink/geometry/internal/jni/BUILD.bazel

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ cc_library(
3030
":parallelogram_jni",
3131
":parallelogram_jni_helper",
3232
":partitioned_mesh_jni",
33-
":polyline_processing_jni",
3433
":rect_jni",
3534
":rect_jni_helper",
3635
":triangle_jni",
@@ -336,28 +335,3 @@ cc_library(
336335
}),
337336
alwayslink = 1,
338337
)
339-
340-
cc_library(
341-
name = "polyline_processing_jni",
342-
srcs = ["polyline_processing_jni.cc"],
343-
deps = [
344-
":vec_jni_helper",
345-
"//ink/geometry:mesh",
346-
"//ink/geometry:mesh_format",
347-
"//ink/geometry:partitioned_mesh",
348-
"//ink/geometry:point",
349-
"//ink/geometry:tessellator",
350-
"//ink/geometry/internal:polyline_processing",
351-
"//ink/jni/internal:jni_defines",
352-
"//ink/jni/internal:jni_throw_util",
353-
"//ink/strokes/input:stroke_input_batch",
354-
"@com_google_absl//absl/status:statusor",
355-
"@com_google_absl//absl/types:span",
356-
] + select({
357-
"@platforms//os:android": [],
358-
"//conditions:default": [
359-
"@rules_jni//jni",
360-
],
361-
}),
362-
alwayslink = 1,
363-
)

ink/strokes/internal/jni/BUILD.bazel

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ cc_library(
2121
visibility = ["//visibility:public"],
2222
deps = [
2323
":in_progress_stroke_jni",
24+
":mesh_creation_jni",
2425
":stroke_input_batch_jni",
2526
":stroke_jni",
2627
"//ink/brush/internal/jni:brush_behavior_jni",
@@ -128,3 +129,28 @@ cc_library(
128129
}),
129130
alwayslink = 1,
130131
)
132+
133+
cc_library(
134+
name = "mesh_creation_jni",
135+
srcs = ["mesh_creation_jni.cc"],
136+
deps = [
137+
"//ink/geometry:mesh",
138+
"//ink/geometry:mesh_format",
139+
"//ink/geometry:partitioned_mesh",
140+
"//ink/geometry:point",
141+
"//ink/geometry:tessellator",
142+
"//ink/geometry/internal:polyline_processing",
143+
"//ink/geometry/internal/jni:vec_jni_helper",
144+
"//ink/jni/internal:jni_defines",
145+
"//ink/jni/internal:jni_throw_util",
146+
"//ink/strokes/input:stroke_input_batch",
147+
"@com_google_absl//absl/status:statusor",
148+
"@com_google_absl//absl/types:span",
149+
] + select({
150+
"@platforms//os:android": [],
151+
"//conditions:default": [
152+
"@rules_jni//jni",
153+
],
154+
}),
155+
alwayslink = 1,
156+
)
File renamed without changes.

0 commit comments

Comments
 (0)