@shopify/react-native-skia 2.6.4 → 2.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/CMakeLists.txt +8 -4
- package/android/build.gradle +22 -3
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +62 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaWebGPUViewManagerDelegate.java +35 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaWebGPUViewManagerInterface.java +17 -0
- package/apple/RNSkApplePlatformContext.h +2 -0
- package/apple/RNSkApplePlatformContext.mm +71 -0
- package/apple/RNWebGPUAppleNativeBuffer.mm +33 -0
- package/cpp/api/JsiNativeBuffer.h +9 -1
- package/cpp/api/JsiSkAnimatedImageFactory.h +1 -1
- package/cpp/api/JsiSkApi.h +2 -2
- package/cpp/api/JsiSkCanvas.h +34 -1
- package/cpp/api/JsiSkDataFactory.h +1 -1
- package/cpp/api/JsiSkFont.h +1 -1
- package/cpp/api/JsiSkFontMgr.h +1 -1
- package/cpp/api/JsiSkHostObjects.h +3 -3
- package/cpp/api/JsiSkImage.h +14 -6
- package/cpp/api/JsiSkImageFactory.h +2 -2
- package/cpp/api/JsiSkPath.h +1 -1
- package/cpp/api/JsiSkPathFactory.h +1 -1
- package/cpp/api/JsiSkSurface.h +18 -6
- package/cpp/api/JsiSkTypeface.h +1 -1
- package/cpp/api/JsiSkTypefaceFontProvider.h +1 -1
- package/cpp/api/JsiSkiaContext.h +2 -2
- package/cpp/api/JsiTextureInfo.h +1 -1
- package/cpp/api/JsiVideo.h +2 -2
- package/cpp/api/recorder/Drawings.h +1 -1
- package/cpp/api/recorder/JsiRecorder.h +4 -4
- package/cpp/api/recorder/RNRecorder.h +1 -1
- package/cpp/jsi/ViewProperty.h +1 -1
- package/cpp/rnskia/RNDawnContext.h +13 -0
- package/cpp/rnskia/RNDawnUtils.h +11 -1
- package/cpp/rnskia/RNSkJsiViewApi.h +2 -2
- package/cpp/rnskia/RNSkManager.cpp +88 -2
- package/cpp/rnskia/RNSkPictureView.h +4 -4
- package/cpp/rnskia/RNSkPlatformContext.h +7 -0
- package/cpp/rnskia/RNSkView.h +9 -6
- package/cpp/rnwgpu/ArrayBuffer.h +51 -7
- package/cpp/rnwgpu/api/AppleNativeBuffer.h +22 -0
- package/cpp/rnwgpu/api/Convertors.h +33 -11
- package/cpp/rnwgpu/api/GPU.cpp +0 -3
- package/cpp/rnwgpu/api/GPUAdapter.cpp +37 -7
- package/cpp/rnwgpu/api/GPUBuffer.h +1 -1
- package/cpp/rnwgpu/api/GPUDevice.cpp +84 -6
- package/cpp/rnwgpu/api/GPUDevice.h +12 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.cpp +139 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.h +52 -2
- package/cpp/rnwgpu/api/GPUQueue.cpp +50 -45
- package/cpp/rnwgpu/api/GPUShaderModule.cpp +1 -1
- package/cpp/rnwgpu/api/GPUSharedFence.cpp +80 -0
- package/cpp/rnwgpu/api/GPUSharedFence.h +53 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.cpp +135 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.h +75 -0
- package/cpp/rnwgpu/api/ImageBitmap.h +62 -0
- package/cpp/rnwgpu/api/NativeBufferUtils.h +87 -0
- package/cpp/rnwgpu/api/descriptors/GPUBindGroupEntry.h +4 -1
- package/cpp/rnwgpu/api/descriptors/GPUCanvasConfiguration.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUDawnTogglesDescriptor.h +56 -0
- package/cpp/rnwgpu/api/descriptors/GPUDeviceDescriptor.h +10 -0
- package/cpp/rnwgpu/api/descriptors/GPUExternalTextureDescriptor.h +43 -24
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyExternalImage.h +9 -9
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyTexture.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUImageCopyTextureTagged.h +2 -2
- package/cpp/rnwgpu/api/descriptors/GPUSharedFenceDescriptor.h +58 -0
- package/cpp/rnwgpu/api/descriptors/GPUSharedFenceState.h +51 -0
- package/cpp/rnwgpu/api/descriptors/GPUSharedTextureMemoryDescriptor.h +73 -0
- package/cpp/rnwgpu/api/descriptors/GPUTextureDescriptor.h +1 -1
- package/cpp/rnwgpu/api/descriptors/GPUUncapturedErrorEventInit.h +1 -1
- package/cpp/skia/include/android/GrAHardwareBufferUtils.h +1 -1
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +1 -1
- package/cpp/skia/include/android/SkAnimatedImage.h +1 -1
- package/cpp/skia/include/codec/SkCodec.h +0 -8
- package/cpp/skia/include/codec/SkEncodedOrigin.h +1 -1
- package/cpp/skia/include/codec/SkPngRustDecoder.h +1 -1
- package/cpp/skia/include/core/SkBitmap.h +2 -8
- package/cpp/skia/include/core/SkCPURecorder.h +3 -1
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +1 -1
- package/cpp/skia/include/core/SkColorType.h +5 -3
- package/cpp/skia/include/core/SkContourMeasure.h +1 -1
- package/cpp/skia/include/core/SkCoverageMode.h +1 -1
- package/cpp/skia/include/core/SkCubicMap.h +1 -1
- package/cpp/skia/include/core/SkExecutor.h +1 -1
- package/cpp/skia/include/core/SkFont.h +15 -0
- package/cpp/skia/include/core/SkFontArguments.h +6 -1
- package/cpp/skia/include/core/SkFontMetrics.h +1 -1
- package/cpp/skia/include/core/SkFontMgr.h +36 -1
- package/cpp/skia/include/core/SkFontParameters.h +1 -1
- package/cpp/skia/include/core/SkFontScanner.h +1 -1
- package/cpp/skia/include/core/SkFontTypes.h +1 -1
- package/cpp/skia/include/core/SkM44.h +1 -1
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +1 -1
- package/cpp/skia/include/core/SkPathBuilder.h +10 -4
- package/cpp/skia/include/core/SkPathIter.h +1 -1
- package/cpp/skia/include/core/SkPathTypes.h +1 -1
- package/cpp/skia/include/core/SkPixelRef.h +4 -1
- package/cpp/skia/include/core/SkRecorder.h +2 -1
- package/cpp/skia/include/core/SkRegion.h +17 -6
- package/cpp/skia/include/core/SkSamplingOptions.h +1 -1
- package/cpp/skia/include/core/SkSerialProcs.h +8 -1
- package/cpp/skia/include/core/SkShader.h +3 -5
- package/cpp/skia/include/core/SkSpan.h +1 -1
- package/cpp/skia/include/core/SkStream.h +1 -1
- package/cpp/skia/include/core/SkStrikeRef.h +80 -0
- package/cpp/skia/include/core/SkTileMode.h +1 -1
- package/cpp/skia/include/core/SkVertices.h +1 -1
- package/cpp/skia/include/core/SkYUVAPixmaps.h +3 -5
- package/cpp/skia/include/docs/SkPDFDocument.h +1 -1
- package/cpp/skia/include/docs/SkXPSDocument.h +1 -1
- package/cpp/skia/include/effects/SkGradient.h +1 -1
- package/cpp/skia/include/effects/SkHighContrastFilter.h +1 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +2 -2
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +1 -1
- package/cpp/skia/include/effects/SkTrimPathEffect.h +1 -1
- package/cpp/skia/include/encode/SkEncoder.h +1 -1
- package/cpp/skia/include/encode/SkJpegEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngRustEncoder.h +1 -1
- package/cpp/skia/include/encode/SkWebpEncoder.h +1 -1
- package/cpp/skia/include/gpu/GpuTypes.h +2 -0
- package/cpp/skia/include/gpu/MutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +6 -62
- package/cpp/skia/include/gpu/ganesh/GrContextThreadSafeProxy.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +2 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +59 -0
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrBackendDrawableInfo.h +1 -1
- package/cpp/skia/include/gpu/graphite/Context.h +12 -5
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +6 -0
- package/cpp/skia/include/gpu/graphite/Image.h +82 -9
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +7 -2
- package/cpp/skia/include/gpu/graphite/Recorder.h +6 -4
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileColorFilter.h +11 -1
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileShader.h +1 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/mtl/MtlMemoryAllocator.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanMemoryAllocator.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +1 -1
- package/cpp/skia/include/ports/SkCFObject.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_Fontations.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_android_ndk.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_data.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +1 -1
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +1 -1
- package/cpp/skia/include/ports/SkFontScanner_Fontations.h +1 -1
- package/cpp/skia/include/ports/SkFontScanner_FreeType.h +1 -1
- package/cpp/skia/include/ports/SkTypeface_fontations.h +1 -1
- package/cpp/skia/include/private/SkExif.h +1 -1
- package/cpp/skia/include/private/SkGainmapInfo.h +1 -1
- package/cpp/skia/include/private/SkGainmapShader.h +1 -1
- package/cpp/skia/include/private/SkHdrMetadata.h +21 -0
- package/cpp/skia/include/private/SkJpegGainmapEncoder.h +1 -1
- package/cpp/skia/include/private/SkPixelStorage.h +37 -0
- package/cpp/skia/include/private/SkXmp.h +1 -1
- package/cpp/skia/include/private/base/SkAssert.h +6 -5
- package/cpp/skia/include/private/base/SkContainers.h +1 -1
- package/cpp/skia/include/private/base/SkFeatures.h +30 -30
- package/cpp/skia/include/private/base/SkLog.h +1 -7
- package/cpp/skia/include/private/base/SkLogPriority.h +4 -5
- package/cpp/skia/include/private/base/SkMacros.h +1 -1
- package/cpp/skia/include/private/base/SkMalloc.h +1 -1
- package/cpp/skia/include/private/base/SkSafe32.h +1 -1
- package/cpp/skia/include/private/base/SkSpan_impl.h +1 -1
- package/cpp/skia/include/private/base/SkTDArray.h +13 -1
- package/cpp/skia/include/private/base/SkTPin.h +1 -1
- package/cpp/skia/include/private/base/SkTo.h +1 -1
- package/cpp/skia/include/private/chromium/GrVkSecondaryCBDrawContext.h +1 -1
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -1
- package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +52 -0
- package/cpp/skia/include/private/chromium/SkExifChromium.h +26 -0
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +2 -1
- package/cpp/skia/include/private/gpu/vk/SkiaVulkan.h +1 -1
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +1 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_icd.h +41 -51
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_layer.h +42 -53
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +2 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std.h +158 -154
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_decode.h +68 -65
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_encode.h +90 -87
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std.h +9 -9
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_decode.h +2 -2
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_encode.h +82 -79
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std.h +24 -24
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_decode.h +2 -2
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_encode.h +95 -96
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std.h +151 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std_decode.h +68 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codecs_common.h +1 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +5 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +7 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_beta.h +291 -158
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +13174 -10113
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_directfb.h +23 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_fuchsia.h +159 -165
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ggp.h +22 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +3 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +3 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_metal.h +94 -88
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ohos.h +120 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_screen.h +55 -51
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_vi.h +18 -15
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_wayland.h +23 -19
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +31 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +5 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib.h +27 -27
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib_xrandr.h +20 -16
- package/cpp/skia/include/utils/SkEventTracer.h +6 -1
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +1 -1
- package/cpp/skia/include/utils/SkShadowUtils.h +1 -1
- package/cpp/skia/include/utils/SkTextUtils.h +1 -1
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +20 -4
- package/cpp/skia/modules/skcms/src/Transform_inl.h +11 -15
- package/cpp/skia/modules/skcms/src/skcms_public.h +2 -0
- package/cpp/skia/modules/skottie/include/ExternalLayer.h +1 -1
- package/cpp/skia/modules/skottie/include/Skottie.h +1 -1
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +1 -1
- package/cpp/skia/modules/skottie/include/SlotManager.h +1 -1
- package/cpp/skia/modules/skottie/include/TextShaper.h +1 -1
- package/cpp/skia/modules/skottie/src/SkottieValue.h +1 -1
- package/cpp/skia/modules/skottie/src/animator/Animator.h +1 -1
- package/cpp/skia/modules/skottie/src/text/Font.h +1 -1
- package/cpp/skia/modules/skottie/src/text/TextAdapter.h +1 -1
- package/cpp/skia/modules/skottie/src/text/TextAnimator.h +3 -2
- package/cpp/skia/modules/skottie/src/text/TextValue.h +1 -1
- package/cpp/skia/modules/skparagraph/include/DartTypes.h +1 -1
- package/cpp/skia/modules/skparagraph/include/FontArguments.h +1 -1
- package/cpp/skia/modules/skparagraph/include/FontCollection.h +5 -1
- package/cpp/skia/modules/skparagraph/include/Metrics.h +1 -1
- package/cpp/skia/modules/skparagraph/include/Paragraph.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphPainter.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphStyle.h +12 -5
- package/cpp/skia/modules/skparagraph/include/TextShadow.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TextStyle.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGClipEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGColorFilter.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGDraw.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGEffectNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGeometryEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGeometryNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGradient.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGGroup.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGImage.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGInvalidationController.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGMaskEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGMerge.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGOpacityEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPaint.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPath.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGPlane.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGScene.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGText.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGTransform.h +1 -1
- package/cpp/skia/modules/skshaper/include/SkShaper_coretext.h +8 -1
- package/cpp/skia/modules/svg/include/SkSVGFe.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGMask.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/src/base/SkAutoLocaleSetter.h +94 -0
- package/cpp/skia/src/base/SkUTF.h +1 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/types/WebGPU.d.ts +153 -0
- package/lib/commonjs/skia/types/WebGPU.js +6 -0
- package/lib/commonjs/skia/types/WebGPU.js.map +1 -0
- package/lib/commonjs/skia/types/index.d.ts +1 -0
- package/lib/commonjs/skia/types/index.js +11 -0
- package/lib/commonjs/skia/types/index.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js +19 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/module/skia/types/WebGPU.d.ts +153 -0
- package/lib/module/skia/types/WebGPU.js +2 -0
- package/lib/module/skia/types/WebGPU.js.map +1 -0
- package/lib/module/skia/types/index.d.ts +1 -0
- package/lib/module/skia/types/index.js +1 -0
- package/lib/module/skia/types/index.js.map +1 -1
- package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js +19 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +1 -2
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/typescript/lib/commonjs/skia/types/WebGPU.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/WebGPU.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +10 -1
- package/lib/typescript/src/skia/types/WebGPU.d.ts +153 -0
- package/lib/typescript/src/skia/types/index.d.ts +1 -0
- package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +1 -0
- package/package.json +14 -12
- package/react-native-skia.podspec +59 -7
- package/src/skia/types/NativeBuffer/NativeBufferFactory.ts +10 -1
- package/src/skia/types/WebGPU.ts +186 -0
- package/src/skia/types/index.ts +1 -0
- package/src/skia/web/JsiSkNativeBufferFactory.ts +20 -0
- package/src/skia/web/JsiSkPath.ts +8 -2
- package/scripts/install-libs.js +0 -133
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
#ifndef VULKAN_VIDEO_CODEC_VP9STD_H_
|
|
2
|
+
#define VULKAN_VIDEO_CODEC_VP9STD_H_ 1
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
|
+
**
|
|
7
|
+
** SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
** This header is generated from the Khronos Vulkan XML API Registry.
|
|
12
|
+
**
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#ifdef __cplusplus
|
|
17
|
+
extern "C" {
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// vulkan_video_codec_vp9std is a preprocessor guard. Do not pass it to API calls.
|
|
23
|
+
#define vulkan_video_codec_vp9std 1
|
|
24
|
+
#include "vulkan_video_codecs_common.h"
|
|
25
|
+
#define STD_VIDEO_VP9_NUM_REF_FRAMES 8U
|
|
26
|
+
#define STD_VIDEO_VP9_REFS_PER_FRAME 3U
|
|
27
|
+
#define STD_VIDEO_VP9_MAX_REF_FRAMES 4U
|
|
28
|
+
#define STD_VIDEO_VP9_LOOP_FILTER_ADJUSTMENTS 2U
|
|
29
|
+
#define STD_VIDEO_VP9_MAX_SEGMENTS 8U
|
|
30
|
+
#define STD_VIDEO_VP9_SEG_LVL_MAX 4U
|
|
31
|
+
#define STD_VIDEO_VP9_MAX_SEGMENTATION_TREE_PROBS 7U
|
|
32
|
+
#define STD_VIDEO_VP9_MAX_SEGMENTATION_PRED_PROB 3U
|
|
33
|
+
|
|
34
|
+
typedef enum StdVideoVP9Profile {
|
|
35
|
+
STD_VIDEO_VP9_PROFILE_0 = 0,
|
|
36
|
+
STD_VIDEO_VP9_PROFILE_1 = 1,
|
|
37
|
+
STD_VIDEO_VP9_PROFILE_2 = 2,
|
|
38
|
+
STD_VIDEO_VP9_PROFILE_3 = 3,
|
|
39
|
+
STD_VIDEO_VP9_PROFILE_INVALID = 0x7FFFFFFF,
|
|
40
|
+
STD_VIDEO_VP9_PROFILE_MAX_ENUM = 0x7FFFFFFF
|
|
41
|
+
} StdVideoVP9Profile;
|
|
42
|
+
|
|
43
|
+
typedef enum StdVideoVP9Level {
|
|
44
|
+
STD_VIDEO_VP9_LEVEL_1_0 = 0,
|
|
45
|
+
STD_VIDEO_VP9_LEVEL_1_1 = 1,
|
|
46
|
+
STD_VIDEO_VP9_LEVEL_2_0 = 2,
|
|
47
|
+
STD_VIDEO_VP9_LEVEL_2_1 = 3,
|
|
48
|
+
STD_VIDEO_VP9_LEVEL_3_0 = 4,
|
|
49
|
+
STD_VIDEO_VP9_LEVEL_3_1 = 5,
|
|
50
|
+
STD_VIDEO_VP9_LEVEL_4_0 = 6,
|
|
51
|
+
STD_VIDEO_VP9_LEVEL_4_1 = 7,
|
|
52
|
+
STD_VIDEO_VP9_LEVEL_5_0 = 8,
|
|
53
|
+
STD_VIDEO_VP9_LEVEL_5_1 = 9,
|
|
54
|
+
STD_VIDEO_VP9_LEVEL_5_2 = 10,
|
|
55
|
+
STD_VIDEO_VP9_LEVEL_6_0 = 11,
|
|
56
|
+
STD_VIDEO_VP9_LEVEL_6_1 = 12,
|
|
57
|
+
STD_VIDEO_VP9_LEVEL_6_2 = 13,
|
|
58
|
+
STD_VIDEO_VP9_LEVEL_INVALID = 0x7FFFFFFF,
|
|
59
|
+
STD_VIDEO_VP9_LEVEL_MAX_ENUM = 0x7FFFFFFF
|
|
60
|
+
} StdVideoVP9Level;
|
|
61
|
+
|
|
62
|
+
typedef enum StdVideoVP9FrameType {
|
|
63
|
+
STD_VIDEO_VP9_FRAME_TYPE_KEY = 0,
|
|
64
|
+
STD_VIDEO_VP9_FRAME_TYPE_NON_KEY = 1,
|
|
65
|
+
STD_VIDEO_VP9_FRAME_TYPE_INVALID = 0x7FFFFFFF,
|
|
66
|
+
STD_VIDEO_VP9_FRAME_TYPE_MAX_ENUM = 0x7FFFFFFF
|
|
67
|
+
} StdVideoVP9FrameType;
|
|
68
|
+
|
|
69
|
+
typedef enum StdVideoVP9ReferenceName {
|
|
70
|
+
STD_VIDEO_VP9_REFERENCE_NAME_INTRA_FRAME = 0,
|
|
71
|
+
STD_VIDEO_VP9_REFERENCE_NAME_LAST_FRAME = 1,
|
|
72
|
+
STD_VIDEO_VP9_REFERENCE_NAME_GOLDEN_FRAME = 2,
|
|
73
|
+
STD_VIDEO_VP9_REFERENCE_NAME_ALTREF_FRAME = 3,
|
|
74
|
+
STD_VIDEO_VP9_REFERENCE_NAME_INVALID = 0x7FFFFFFF,
|
|
75
|
+
STD_VIDEO_VP9_REFERENCE_NAME_MAX_ENUM = 0x7FFFFFFF
|
|
76
|
+
} StdVideoVP9ReferenceName;
|
|
77
|
+
|
|
78
|
+
typedef enum StdVideoVP9InterpolationFilter {
|
|
79
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_EIGHTTAP = 0,
|
|
80
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_EIGHTTAP_SMOOTH = 1,
|
|
81
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_EIGHTTAP_SHARP = 2,
|
|
82
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_BILINEAR = 3,
|
|
83
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_SWITCHABLE = 4,
|
|
84
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_INVALID = 0x7FFFFFFF,
|
|
85
|
+
STD_VIDEO_VP9_INTERPOLATION_FILTER_MAX_ENUM = 0x7FFFFFFF
|
|
86
|
+
} StdVideoVP9InterpolationFilter;
|
|
87
|
+
|
|
88
|
+
typedef enum StdVideoVP9ColorSpace {
|
|
89
|
+
STD_VIDEO_VP9_COLOR_SPACE_UNKNOWN = 0,
|
|
90
|
+
STD_VIDEO_VP9_COLOR_SPACE_BT_601 = 1,
|
|
91
|
+
STD_VIDEO_VP9_COLOR_SPACE_BT_709 = 2,
|
|
92
|
+
STD_VIDEO_VP9_COLOR_SPACE_SMPTE_170 = 3,
|
|
93
|
+
STD_VIDEO_VP9_COLOR_SPACE_SMPTE_240 = 4,
|
|
94
|
+
STD_VIDEO_VP9_COLOR_SPACE_BT_2020 = 5,
|
|
95
|
+
STD_VIDEO_VP9_COLOR_SPACE_RESERVED = 6,
|
|
96
|
+
STD_VIDEO_VP9_COLOR_SPACE_RGB = 7,
|
|
97
|
+
STD_VIDEO_VP9_COLOR_SPACE_INVALID = 0x7FFFFFFF,
|
|
98
|
+
STD_VIDEO_VP9_COLOR_SPACE_MAX_ENUM = 0x7FFFFFFF
|
|
99
|
+
} StdVideoVP9ColorSpace;
|
|
100
|
+
typedef struct StdVideoVP9ColorConfigFlags {
|
|
101
|
+
uint32_t color_range : 1;
|
|
102
|
+
uint32_t reserved : 31;
|
|
103
|
+
} StdVideoVP9ColorConfigFlags;
|
|
104
|
+
|
|
105
|
+
typedef struct StdVideoVP9ColorConfig {
|
|
106
|
+
StdVideoVP9ColorConfigFlags flags;
|
|
107
|
+
uint8_t BitDepth;
|
|
108
|
+
uint8_t subsampling_x;
|
|
109
|
+
uint8_t subsampling_y;
|
|
110
|
+
uint8_t reserved1;
|
|
111
|
+
StdVideoVP9ColorSpace color_space;
|
|
112
|
+
} StdVideoVP9ColorConfig;
|
|
113
|
+
|
|
114
|
+
typedef struct StdVideoVP9LoopFilterFlags {
|
|
115
|
+
uint32_t loop_filter_delta_enabled : 1;
|
|
116
|
+
uint32_t loop_filter_delta_update : 1;
|
|
117
|
+
uint32_t reserved : 30;
|
|
118
|
+
} StdVideoVP9LoopFilterFlags;
|
|
119
|
+
|
|
120
|
+
typedef struct StdVideoVP9LoopFilter {
|
|
121
|
+
StdVideoVP9LoopFilterFlags flags;
|
|
122
|
+
uint8_t loop_filter_level;
|
|
123
|
+
uint8_t loop_filter_sharpness;
|
|
124
|
+
uint8_t update_ref_delta;
|
|
125
|
+
int8_t loop_filter_ref_deltas[STD_VIDEO_VP9_MAX_REF_FRAMES];
|
|
126
|
+
uint8_t update_mode_delta;
|
|
127
|
+
int8_t loop_filter_mode_deltas[STD_VIDEO_VP9_LOOP_FILTER_ADJUSTMENTS];
|
|
128
|
+
} StdVideoVP9LoopFilter;
|
|
129
|
+
|
|
130
|
+
typedef struct StdVideoVP9SegmentationFlags {
|
|
131
|
+
uint32_t segmentation_update_map : 1;
|
|
132
|
+
uint32_t segmentation_temporal_update : 1;
|
|
133
|
+
uint32_t segmentation_update_data : 1;
|
|
134
|
+
uint32_t segmentation_abs_or_delta_update : 1;
|
|
135
|
+
uint32_t reserved : 28;
|
|
136
|
+
} StdVideoVP9SegmentationFlags;
|
|
137
|
+
|
|
138
|
+
typedef struct StdVideoVP9Segmentation {
|
|
139
|
+
StdVideoVP9SegmentationFlags flags;
|
|
140
|
+
uint8_t segmentation_tree_probs[STD_VIDEO_VP9_MAX_SEGMENTATION_TREE_PROBS];
|
|
141
|
+
uint8_t segmentation_pred_prob[STD_VIDEO_VP9_MAX_SEGMENTATION_PRED_PROB];
|
|
142
|
+
uint8_t FeatureEnabled[STD_VIDEO_VP9_MAX_SEGMENTS];
|
|
143
|
+
int16_t FeatureData[STD_VIDEO_VP9_MAX_SEGMENTS][STD_VIDEO_VP9_SEG_LVL_MAX];
|
|
144
|
+
} StdVideoVP9Segmentation;
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
#ifdef __cplusplus
|
|
148
|
+
}
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
#endif
|
package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std_decode.h
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#ifndef VULKAN_VIDEO_CODEC_VP9STD_DECODE_H_
|
|
2
|
+
#define VULKAN_VIDEO_CODEC_VP9STD_DECODE_H_ 1
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
|
+
**
|
|
7
|
+
** SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
** This header is generated from the Khronos Vulkan XML API Registry.
|
|
12
|
+
**
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#ifdef __cplusplus
|
|
17
|
+
extern "C" {
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// vulkan_video_codec_vp9std_decode is a preprocessor guard. Do not pass it to API calls.
|
|
23
|
+
#define vulkan_video_codec_vp9std_decode 1
|
|
24
|
+
#include "vulkan_video_codec_vp9std.h"
|
|
25
|
+
|
|
26
|
+
#define VK_STD_VULKAN_VIDEO_CODEC_VP9_DECODE_API_VERSION_1_0_0 VK_MAKE_VIDEO_STD_VERSION(1, 0, 0)
|
|
27
|
+
|
|
28
|
+
#define VK_STD_VULKAN_VIDEO_CODEC_VP9_DECODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_VP9_DECODE_API_VERSION_1_0_0
|
|
29
|
+
#define VK_STD_VULKAN_VIDEO_CODEC_VP9_DECODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_vp9_decode"
|
|
30
|
+
typedef struct StdVideoDecodeVP9PictureInfoFlags {
|
|
31
|
+
uint32_t error_resilient_mode : 1;
|
|
32
|
+
uint32_t intra_only : 1;
|
|
33
|
+
uint32_t allow_high_precision_mv : 1;
|
|
34
|
+
uint32_t refresh_frame_context : 1;
|
|
35
|
+
uint32_t frame_parallel_decoding_mode : 1;
|
|
36
|
+
uint32_t segmentation_enabled : 1;
|
|
37
|
+
uint32_t show_frame : 1;
|
|
38
|
+
uint32_t UsePrevFrameMvs : 1;
|
|
39
|
+
uint32_t reserved : 24;
|
|
40
|
+
} StdVideoDecodeVP9PictureInfoFlags;
|
|
41
|
+
|
|
42
|
+
typedef struct StdVideoDecodeVP9PictureInfo {
|
|
43
|
+
StdVideoDecodeVP9PictureInfoFlags flags;
|
|
44
|
+
StdVideoVP9Profile profile;
|
|
45
|
+
StdVideoVP9FrameType frame_type;
|
|
46
|
+
uint8_t frame_context_idx;
|
|
47
|
+
uint8_t reset_frame_context;
|
|
48
|
+
uint8_t refresh_frame_flags;
|
|
49
|
+
uint8_t ref_frame_sign_bias_mask;
|
|
50
|
+
StdVideoVP9InterpolationFilter interpolation_filter;
|
|
51
|
+
uint8_t base_q_idx;
|
|
52
|
+
int8_t delta_q_y_dc;
|
|
53
|
+
int8_t delta_q_uv_dc;
|
|
54
|
+
int8_t delta_q_uv_ac;
|
|
55
|
+
uint8_t tile_cols_log2;
|
|
56
|
+
uint8_t tile_rows_log2;
|
|
57
|
+
uint16_t reserved1[3];
|
|
58
|
+
const StdVideoVP9ColorConfig* pColorConfig;
|
|
59
|
+
const StdVideoVP9LoopFilter* pLoopFilter;
|
|
60
|
+
const StdVideoVP9Segmentation* pSegmentation;
|
|
61
|
+
} StdVideoDecodeVP9PictureInfo;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
#ifdef __cplusplus
|
|
65
|
+
}
|
|
66
|
+
#endif
|
|
67
|
+
|
|
68
|
+
#endif
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#define VULKAN_H_ 1
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
** Copyright 2015-
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
6
|
**
|
|
7
7
|
** SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
@@ -96,4 +96,8 @@
|
|
|
96
96
|
#include "vulkan_beta.h"
|
|
97
97
|
#endif
|
|
98
98
|
|
|
99
|
+
#ifdef VK_USE_PLATFORM_OHOS
|
|
100
|
+
#include "vulkan_ohos.h"
|
|
101
|
+
#endif
|
|
102
|
+
|
|
99
103
|
#endif // VULKAN_H_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#define VULKAN_ANDROID_H_ 1
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
** Copyright 2015-
|
|
5
|
+
** Copyright 2015-2026 The Khronos Group Inc.
|
|
6
6
|
**
|
|
7
7
|
** SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
@@ -35,12 +35,14 @@ typedef struct VkAndroidSurfaceCreateInfoKHR {
|
|
|
35
35
|
typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
|
|
36
36
|
|
|
37
37
|
#ifndef VK_NO_PROTOTYPES
|
|
38
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
38
39
|
VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(
|
|
39
40
|
VkInstance instance,
|
|
40
41
|
const VkAndroidSurfaceCreateInfoKHR* pCreateInfo,
|
|
41
42
|
const VkAllocationCallbacks* pAllocator,
|
|
42
43
|
VkSurfaceKHR* pSurface);
|
|
43
44
|
#endif
|
|
45
|
+
#endif
|
|
44
46
|
|
|
45
47
|
|
|
46
48
|
// VK_ANDROID_external_memory_android_hardware_buffer is a preprocessor guard. Do not pass it to API calls.
|
|
@@ -109,16 +111,20 @@ typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(Vk
|
|
|
109
111
|
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryAndroidHardwareBufferANDROID)(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, struct AHardwareBuffer** pBuffer);
|
|
110
112
|
|
|
111
113
|
#ifndef VK_NO_PROTOTYPES
|
|
114
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
112
115
|
VKAPI_ATTR VkResult VKAPI_CALL vkGetAndroidHardwareBufferPropertiesANDROID(
|
|
113
116
|
VkDevice device,
|
|
114
117
|
const struct AHardwareBuffer* buffer,
|
|
115
118
|
VkAndroidHardwareBufferPropertiesANDROID* pProperties);
|
|
119
|
+
#endif
|
|
116
120
|
|
|
121
|
+
#ifndef VK_ONLY_EXPORTED_PROTOTYPES
|
|
117
122
|
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryAndroidHardwareBufferANDROID(
|
|
118
123
|
VkDevice device,
|
|
119
124
|
const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo,
|
|
120
125
|
struct AHardwareBuffer** pBuffer);
|
|
121
126
|
#endif
|
|
127
|
+
#endif
|
|
122
128
|
|
|
123
129
|
|
|
124
130
|
// VK_ANDROID_external_format_resolve is a preprocessor guard. Do not pass it to API calls.
|