diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/BUILD b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/BUILD index 91238b512e..57e7b7e298 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/BUILD +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/BUILD @@ -70,10 +70,10 @@ cc_library( "//mediapipe/tasks/cc/genai/inference/proto:tflite_delegate_options_cc_proto", "//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/proto:llm_options_cc_proto", "//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/proto:llm_response_context_cc_proto", - "//third_party/skia/HEAD:core", "@com_google_absl//absl/log:absl_log", "@com_google_absl//absl/status", "@com_google_absl//absl/strings", + "@skia//:core", ] + select({ "//conditions:default": [ "//mediapipe/tasks/cc/genai/inference/c:libllm_inference_engine_cpu", diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/llm.cc b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/llm.cc index b232033f53..4c22f55666 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/llm.cc +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/llm.cc @@ -24,16 +24,16 @@ #include "absl/log/absl_log.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" +#include "include/core/SkAlphaType.h" // from @skia +#include "include/core/SkBitmap.h" // from @skia +#include "include/core/SkImage.h" // from @skia +#include "include/core/SkImageInfo.h" // from @skia #include "mediapipe/java/com/google/mediapipe/framework/jni/class_registry.h" #include "mediapipe/java/com/google/mediapipe/framework/jni/jni_util.h" #include "mediapipe/tasks/cc/genai/inference/c/llm_inference_engine.h" #include "mediapipe/tasks/cc/genai/inference/proto/tflite_delegate_options.pb.h" #include "mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/proto/llm_options.pb.h" #include "mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni/proto/llm_response_context.pb.h" -#include "third_party/skia/HEAD/include/core/SkAlphaType.h" -#include "third_party/skia/HEAD/include/core/SkBitmap.h" -#include "third_party/skia/HEAD/include/core/SkImage.h" -#include "third_party/skia/HEAD/include/core/SkImageInfo.h" namespace {