diff --git a/packages/skia/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h b/packages/skia/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h index 1f9c3446ba..360c1520f2 100644 --- a/packages/skia/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +++ b/packages/skia/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h @@ -1,6 +1,5 @@ #pragma once -// TODO: Add android flags #if __ANDROID_API__ >= 26 #include #endif @@ -28,7 +27,6 @@ #pragma clang diagnostic pop namespace RNSkia { -namespace jsi = facebook::jsi; class RNSkAndroidPlatformContext : public RNSkPlatformContext { public: @@ -178,16 +176,16 @@ class RNSkAndroidPlatformContext : public RNSkPlatformContext { if (!SkImages::GetBackendTextureFromImage(image, &texture, true)) { throw std::runtime_error("Couldn't get backend texture from image."); } - return getJSITextureInfo(texture); + return getTextureInfo(texture); } const TextureInfo getTexture(sk_sp surface) override { GrBackendTexture texture = SkSurfaces::GetBackendTexture( surface.get(), SkSurface::BackendHandleAccess::kFlushRead); - return getJSITextureInfo(texture); + return getTextureInfo(texture); } - static const TextureInfo getJSITextureInfo(const GrBackendTexture &texture) { + static const TextureInfo getTextureInfo(const GrBackendTexture &texture) { if (!texture.isValid()) { throw std::runtime_error("invalid backend texture"); } diff --git a/packages/skia/cpp/rnskia/RNSkPlatformContext.h b/packages/skia/cpp/rnskia/RNSkPlatformContext.h index c124209ad4..2b802e8e4e 100644 --- a/packages/skia/cpp/rnskia/RNSkPlatformContext.h +++ b/packages/skia/cpp/rnskia/RNSkPlatformContext.h @@ -27,7 +27,6 @@ namespace RNSkia { -namespace jsi = facebook::jsi; namespace react = facebook::react; struct TextureInfo { diff --git a/packages/skia/ios/RNSkia-iOS/RNSkiOSPlatformContext.h b/packages/skia/ios/RNSkia-iOS/RNSkiOSPlatformContext.h index 2839dde033..5efe4afc6a 100644 --- a/packages/skia/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +++ b/packages/skia/ios/RNSkia-iOS/RNSkiOSPlatformContext.h @@ -10,8 +10,6 @@ #include "RNSkPlatformContext.h" #include "ViewScreenshotService.h" -#include - namespace facebook { namespace react { class CallInvoker; @@ -20,8 +18,6 @@ class CallInvoker; namespace RNSkia { -namespace jsi = facebook::jsi; - class RNSkiOSPlatformContext : public RNSkPlatformContext { public: RNSkiOSPlatformContext(