@shopify/react-native-skia 2.11.0-next.1 → 2.12.0-next.1
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/cpp/api/JsiSkConverters.h +2 -2
- package/cpp/api/JsiSkNativeObjects.h +9 -9
- package/cpp/api/JsiSkRuntimeEffect.h +2 -2
- package/cpp/api/recorder/Convertor.h +57 -9
- package/cpp/api/third_party/SkottieUtils.cpp +1 -1
- package/cpp/dawn/include/dawn/dawn_proc_table.h +4 -4
- package/cpp/dawn/include/dawn/dawn_version.h +1 -1
- package/cpp/dawn/include/dawn/native/D3D12Backend.h +18 -1
- package/cpp/dawn/include/dawn/native/DawnNative.h +1 -2
- package/cpp/dawn/include/dawn/platform/DawnPlatform.h +8 -11
- package/cpp/dawn/include/dawn/webgpu_cpp_print.h +91 -79
- package/cpp/dawn/include/tint/tint.h +1 -0
- package/cpp/dawn/include/webgpu/webgpu.h +86 -44
- package/cpp/dawn/include/webgpu/webgpu_cpp.h +556 -283
- package/cpp/dawn/include/webgpu/webgpu_cpp_chained_struct.h +1 -1
- package/cpp/dawn/include/webgpu/webgpu_enum_class_bitmasks.h +2 -1
- package/cpp/jsi/EnumMapper.h +2 -2
- package/cpp/jsi/JSIConverter.h +2 -2
- package/cpp/jsi/NativeObject.h +13 -13
- package/cpp/jsi/Promise.cpp +2 -2
- package/cpp/jsi/Promise.h +2 -2
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +0 -2
- package/cpp/skia/include/android/vk/AndroidVulkanMemoryAllocator.h +1 -1
- package/cpp/skia/include/codec/SkAndroidCodec.h +1 -1
- package/cpp/skia/include/codec/SkAvifDecoder.h +1 -1
- package/cpp/skia/include/codec/SkBmpDecoder.h +1 -1
- package/cpp/skia/include/codec/SkBmpRustDecoder.h +42 -0
- package/cpp/skia/include/codec/SkCodec.h +3 -2
- package/cpp/skia/include/codec/SkGifDecoder.h +1 -1
- package/cpp/skia/include/codec/SkIcoDecoder.h +1 -1
- package/cpp/skia/include/codec/SkJpegDecoder.h +1 -1
- package/cpp/skia/include/codec/SkJpegxlDecoder.h +1 -1
- package/cpp/skia/include/codec/SkPixmapUtils.h +1 -1
- package/cpp/skia/include/codec/SkPngDecoder.h +1 -1
- package/cpp/skia/include/codec/SkPngRustDecoder.h +1 -1
- package/cpp/skia/include/codec/SkRawDecoder.h +1 -1
- package/cpp/skia/include/codec/SkWbmpDecoder.h +1 -1
- package/cpp/skia/include/codec/SkWebpDecoder.h +1 -1
- package/cpp/skia/include/core/SkBitmap.h +3 -3
- package/cpp/skia/include/core/SkCPUContext.h +1 -1
- package/cpp/skia/include/core/SkCPURecorder.h +2 -3
- package/cpp/skia/include/core/SkCanvas.h +23 -15
- package/cpp/skia/include/core/SkColor.h +2 -2
- package/cpp/skia/include/core/SkColorFilter.h +1 -1
- package/cpp/skia/include/core/SkColorSpace.h +2 -2
- package/cpp/skia/include/core/SkColorTable.h +1 -1
- package/cpp/skia/include/core/SkContourMeasure.h +1 -1
- package/cpp/skia/include/core/SkData.h +1 -1
- package/cpp/skia/include/core/SkDataTable.h +2 -2
- package/cpp/skia/include/core/SkDocument.h +1 -1
- package/cpp/skia/include/core/SkDrawable.h +1 -1
- package/cpp/skia/include/core/SkFont.h +2 -2
- package/cpp/skia/include/core/SkFontMetrics.h +1 -1
- package/cpp/skia/include/core/SkFontMgr.h +1 -1
- package/cpp/skia/include/core/SkFontScanner.h +3 -3
- package/cpp/skia/include/core/SkFontStyle.h +1 -1
- package/cpp/skia/include/core/SkGraphics.h +1 -1
- package/cpp/skia/include/core/SkImage.h +1 -1
- package/cpp/skia/include/core/SkImageFilter.h +1 -1
- package/cpp/skia/include/core/SkImageGenerator.h +1 -1
- package/cpp/skia/include/core/SkImageInfo.h +4 -4
- package/cpp/skia/include/core/SkMatrix.h +3 -3
- package/cpp/skia/include/core/SkMesh.h +2 -2
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOverdrawCanvas.h +1 -1
- package/cpp/skia/include/core/SkPaint.h +4 -4
- package/cpp/skia/include/core/SkPath.h +5 -23
- package/cpp/skia/include/core/SkPathBuilder.h +4 -2
- package/cpp/skia/include/core/SkPathMeasure.h +1 -1
- package/cpp/skia/include/core/SkPictureRecorder.h +1 -1
- package/cpp/skia/include/core/SkPixelRef.h +3 -5
- package/cpp/skia/include/core/SkPixmap.h +7 -2
- package/cpp/skia/include/core/SkPoint.h +555 -5
- package/cpp/skia/include/core/SkPoint3.h +2 -2
- package/cpp/skia/include/core/SkRRect.h +9 -1
- package/cpp/skia/include/core/SkRSXform.h +1 -1
- package/cpp/skia/include/core/SkRecorder.h +2 -3
- package/cpp/skia/include/core/SkRect.h +3 -3
- package/cpp/skia/include/core/SkRefCnt.h +1 -1
- package/cpp/skia/include/core/SkRegion.h +4 -4
- package/cpp/skia/include/core/SkScalar.h +2 -3
- package/cpp/skia/include/core/SkSerialProcs.h +1 -1
- package/cpp/skia/include/core/SkShader.h +1 -1
- package/cpp/skia/include/core/SkSize.h +1 -1
- package/cpp/skia/include/core/SkSpan.h +165 -4
- package/cpp/skia/include/core/SkStream.h +2 -2
- package/cpp/skia/include/core/SkStrikeRef.h +16 -0
- package/cpp/skia/include/core/SkString.h +2 -2
- package/cpp/skia/include/core/SkStrokeRec.h +1 -1
- package/cpp/skia/include/core/SkSurfaceProps.h +1 -1
- package/cpp/skia/include/core/SkSwizzle.h +1 -1
- package/cpp/skia/include/core/SkTextBlob.h +2 -2
- package/cpp/skia/include/core/SkTiledImageUtils.h +1 -1
- package/cpp/skia/include/core/SkTypeface.h +8 -2
- package/cpp/skia/include/core/SkTypes.h +6 -6
- package/cpp/skia/include/core/SkUnPreMultiply.h +1 -1
- package/cpp/skia/include/core/SkVertices.h +1 -1
- package/cpp/skia/include/core/SkYUVAPixmaps.h +1 -1
- package/cpp/skia/include/docs/SkPDFDocument.h +9 -3
- package/cpp/skia/include/effects/SkGradient.h +1 -1
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +1 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +4 -4
- package/cpp/skia/include/encode/SkEncoder.h +3 -3
- package/cpp/skia/include/encode/SkICC.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 +16 -1
- package/cpp/skia/include/encode/SkWebpEncoder.h +1 -1
- package/cpp/skia/include/gpu/GpuTypes.h +1 -1
- package/cpp/skia/include/gpu/MutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +2 -2
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +3 -3
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkaroundsAutogen.h +39 -37
- package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +3 -2
- package/cpp/skia/include/gpu/ganesh/GrTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkMeshGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLConfig.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLExtensions.h +2 -2
- package/cpp/skia/include/gpu/ganesh/gl/GrGLFunctions.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLMakeWebGLInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/epoxy/GrGLMakeEpoxyEGLInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/ios/GrGLMakeIOSInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/mac/GrGLMakeMacInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/win/GrGLMakeWinInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkDirectContext.h +1 -1
- package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +2 -2
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +2 -2
- package/cpp/skia/include/gpu/graphite/Context.h +3 -3
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +8 -2
- package/cpp/skia/include/gpu/graphite/PersistentPipelineStorage.h +1 -1
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +16 -2
- package/cpp/skia/include/gpu/graphite/Recorder.h +8 -7
- package/cpp/skia/include/gpu/graphite/Recording.h +6 -4
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +2 -2
- package/cpp/skia/include/gpu/graphite/dawn/DawnGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes_cpp.h +1 -1
- package/cpp/skia/include/gpu/graphite/precompile/PaintOptions.h +2 -2
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileImageFilter.h +1 -1
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteContext.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanBackendContext.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +3 -3
- package/cpp/skia/include/gpu/vk/VulkanMutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanPreferredFeatures.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +1 -1
- package/cpp/skia/include/pathops/SkPathOps.h +2 -2
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +2 -2
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +2 -2
- package/cpp/skia/include/private/{base/SingleOwner.h → SingleOwner.h} +5 -5
- package/cpp/skia/include/private/{base/SkAPI.h → SkAPI.h} +1 -1
- package/cpp/skia/include/private/{base/SkAlign.h → SkAlign.h} +1 -1
- package/cpp/skia/include/private/{base/SkAnySubclass.h → SkAnySubclass.h} +1 -1
- package/cpp/skia/include/private/{base/SkAssert.h → SkAssert.h} +4 -4
- package/cpp/skia/include/private/{base/SkAttributes.h → SkAttributes.h} +2 -2
- package/cpp/skia/include/private/{base/SkContainers.h → SkContainers.h} +3 -3
- package/cpp/skia/include/private/{base/SkDebug.h → SkDebug.h} +3 -3
- package/cpp/skia/include/private/{base/SkDeque.h → SkDeque.h} +1 -1
- package/cpp/skia/include/private/SkEncodedInfo.h +2 -2
- package/cpp/skia/include/private/SkEnumBitMask.h +92 -0
- package/cpp/skia/include/private/SkExif.h +1 -1
- package/cpp/skia/include/private/{base/SkFixed.h → SkFixed.h} +4 -4
- package/cpp/skia/include/private/{base/SkFloatingPoint.h → SkFloatingPoint.h} +2 -2
- package/cpp/skia/include/private/SkGainmapShader.h +1 -1
- package/cpp/skia/include/private/SkHdrMetadata.h +1 -1
- package/cpp/skia/include/private/SkIDChangeListener.h +3 -3
- package/cpp/skia/include/private/{base/SkLoadUserConfig.h → SkLoadUserConfig.h} +2 -2
- package/cpp/skia/include/private/{base/SkLog.h → SkLog.h} +4 -4
- package/cpp/skia/include/private/{base/SkMacros.h → SkMacros.h} +1 -1
- package/cpp/skia/include/private/{base/SkMalloc.h → SkMalloc.h} +1 -1
- package/cpp/skia/include/private/{base/SkMath.h → SkMath.h} +2 -2
- package/cpp/skia/include/private/{base/SkMutex.h → SkMutex.h} +5 -5
- package/cpp/skia/include/private/{base/SkNoncopyable.h → SkNoncopyable.h} +1 -1
- package/cpp/skia/include/private/{base/SkOnce.h → SkOnce.h} +1 -1
- package/cpp/skia/include/private/SkPathRef.h +4 -4
- package/cpp/skia/include/private/SkPixelStorage.h +20 -5
- package/cpp/skia/include/private/{base/SkSafe32.h → SkSafe32.h} +2 -2
- package/cpp/skia/include/private/{base/SkSemaphore.h → SkSemaphore.h} +3 -3
- package/cpp/skia/include/private/{base/SkTArray.h → SkTArray.h} +10 -11
- package/cpp/skia/include/private/{base/SkTDArray.h → SkTDArray.h} +4 -4
- package/cpp/skia/include/private/{base/SkTFitsIn.h → SkTFitsIn.h} +0 -2
- package/cpp/skia/include/private/{base/SkTLogic.h → SkTLogic.h} +1 -1
- package/cpp/skia/include/private/{base/SkTemplates.h → SkTemplates.h} +5 -6
- package/cpp/skia/include/private/{base/SkThreadAnnotations.h → SkThreadAnnotations.h} +1 -1
- package/cpp/skia/include/private/{base/SkThreadID.h → SkThreadID.h} +2 -2
- package/cpp/skia/include/private/{base/SkTo.h → SkTo.h} +2 -2
- package/cpp/skia/include/private/{base/SkTypeTraits.h → SkTypeTraits.h} +20 -0
- package/cpp/skia/include/private/SkXmp.h +1 -1
- package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +1 -1
- package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +1 -1
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -1
- package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkExifChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkImageChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkPMColor.h +1 -1
- package/cpp/skia/include/private/chromium/Slug.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +2 -2
- package/cpp/skia/include/private/gpu/ganesh/GrTextureGenerator.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +4 -4
- package/cpp/skia/include/utils/SkCamera.h +1 -1
- package/cpp/skia/include/utils/SkNWayCanvas.h +1 -1
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +1 -1
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +6 -6
- package/cpp/skia/modules/jsonreader/SkJSONReader.h +2 -2
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +1 -1
- package/cpp/skia/modules/skottie/include/SlotManager.h +2 -2
- package/cpp/skia/modules/skottie/include/TextShaper.h +1 -1
- package/cpp/skia/modules/skottie/src/text/Font.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +1 -1
- package/cpp/skia/modules/skresources/include/SkResources.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGNode.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/skunicode/include/SkUnicode.h +3 -3
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +1 -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 +2 -2
- 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/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/SkSVGGradient.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGLine.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGMask.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGNode.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGShape.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGStop.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGValue.h +1 -1
- package/cpp/skia/src/{base → core}/SkArenaAlloc.h +5 -5
- package/cpp/skia/src/{base → core}/SkAutoLocaleSetter.h +1 -1
- package/cpp/skia/src/core/SkChecksum.h +1 -1
- package/cpp/skia/src/core/SkLRUCache.h +1 -1
- package/cpp/skia/src/{base → core}/SkMathPriv.h +3 -3
- package/cpp/skia/src/core/SkTHash.h +1 -1
- package/cpp/skia/src/{base → core}/SkTInternalLList.h +3 -3
- package/cpp/skia/src/{base → core}/SkTLazy.h +1 -1
- package/cpp/skia/src/{base → core}/SkUTF.h +1 -1
- package/cpp/skia/src/gpu/graphite/ContextOptionsPriv.h +1 -1
- package/cpp/skia/src/gpu/graphite/ResourceTypes.h +3 -3
- package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.js +28 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Core.js +8 -1
- package/lib/commonjs/sksg/Recorder/Core.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js +8 -0
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.js +4 -0
- package/lib/commonjs/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/commonjs/sksg/utils.d.ts +4 -0
- package/lib/commonjs/sksg/utils.js +14 -1
- package/lib/commonjs/sksg/utils.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/module/renderer/processors/Animations/Animations.js +21 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/module/sksg/Recorder/Core.js +8 -1
- package/lib/module/sksg/Recorder/Core.js.map +1 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js +9 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/module/sksg/Recorder/Recorder.js +5 -1
- package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/module/sksg/utils.d.ts +4 -0
- package/lib/module/sksg/utils.js +12 -0
- package/lib/module/sksg/utils.js.map +1 -1
- package/lib/typescript/lib/commonjs/renderer/processors/Animations/Animations.d.ts +22 -0
- package/lib/typescript/lib/commonjs/sksg/utils.d.ts +1 -0
- package/lib/typescript/lib/module/mock/index.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/Animations.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/index.d.ts +1 -1
- package/lib/typescript/lib/module/sksg/utils.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/typescript/src/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/typescript/src/sksg/utils.d.ts +4 -0
- package/libs/.graphite +1 -1
- package/package.json +7 -7
- package/src/renderer/processors/Animations/Animations.ts +34 -1
- package/src/sksg/Recorder/Core.ts +11 -1
- package/src/sksg/Recorder/ReanimatedRecorder.ts +10 -1
- package/src/sksg/Recorder/Recorder.ts +7 -3
- package/src/sksg/utils.ts +18 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteUtils.h +0 -10
- package/cpp/skia/include/private/base/README.md +0 -4
- package/cpp/skia/include/private/base/SkPoint_impl.h +0 -560
- package/cpp/skia/include/private/base/SkSpan_impl.h +0 -158
- /package/cpp/skia/include/private/{base/SkASAN.h → SkASAN.h} +0 -0
- /package/cpp/skia/include/private/{base/SkAlignedStorage.h → SkAlignedStorage.h} +0 -0
- /package/cpp/skia/include/private/{base/SkCPUTypes.h → SkCPUTypes.h} +0 -0
- /package/cpp/skia/include/private/{base/SkFeatures.h → SkFeatures.h} +0 -0
- /package/cpp/skia/include/private/{base/SkLogPriority.h → SkLogPriority.h} +0 -0
- /package/cpp/skia/include/private/{base/SkTPin.h → SkTPin.h} +0 -0
|
@@ -214,7 +214,7 @@ template <typename T> struct JsiOptional : std::optional<T> {
|
|
|
214
214
|
|
|
215
215
|
} // namespace RNSkia
|
|
216
216
|
|
|
217
|
-
namespace
|
|
217
|
+
namespace RNJsi {
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* sk_sp<T> arguments (SkImage, SkShader, ...). Delegates to the wrapper
|
|
@@ -407,4 +407,4 @@ template <> struct JSIConverter<SkISize> {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
} // namespace
|
|
410
|
+
} // namespace RNJsi
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* be expressed as typed signatures (heterogeneous argument dispatch, typed
|
|
25
25
|
* array construction, lenient options objects, promises) — everything else
|
|
26
26
|
* uses installMethod/installGetter/installChainableMethod with typed C++
|
|
27
|
-
* signatures converted through
|
|
27
|
+
* signatures converted through RNJsi::JSIConverter.
|
|
28
28
|
*/
|
|
29
29
|
#define JSI_HOST_FUNCTION(NAME) \
|
|
30
30
|
jsi::Value NAME(jsi::Runtime &runtime, const jsi::Value &thisValue, \
|
|
@@ -36,7 +36,7 @@ namespace jsi = facebook::jsi;
|
|
|
36
36
|
|
|
37
37
|
// Minimum memory pressure reported for any native object — aliased from the
|
|
38
38
|
// NativeObject infrastructure so dispose() and create() agree on the floor.
|
|
39
|
-
static constexpr size_t kMinMemoryPressure =
|
|
39
|
+
static constexpr size_t kMinMemoryPressure = RNJsi::kMinMemoryPressure;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Creates the JS object for a wrapper instance (a class based on the
|
|
@@ -102,16 +102,16 @@ std::shared_ptr<T> getJsiObject(jsi::Runtime &runtime,
|
|
|
102
102
|
*
|
|
103
103
|
* Most methods use typed C++ signatures installed with installMethod /
|
|
104
104
|
* installGetter / installChainableMethod (arguments and results converted
|
|
105
|
-
* through
|
|
105
|
+
* through RNJsi::JSIConverter, see JsiSkConverters.h). Methods that cannot
|
|
106
106
|
* be typed keep the classic JSI_HOST_FUNCTION signature and are installed
|
|
107
107
|
* with installHostMethod, which resolves the C++ instance from `this` via
|
|
108
108
|
* native state.
|
|
109
109
|
*/
|
|
110
110
|
template <typename Derived>
|
|
111
|
-
class JsiSkNativeObject : public
|
|
111
|
+
class JsiSkNativeObject : public RNJsi::NativeObject<Derived> {
|
|
112
112
|
public:
|
|
113
113
|
explicit JsiSkNativeObject(std::shared_ptr<RNSkPlatformContext> context)
|
|
114
|
-
:
|
|
114
|
+
: RNJsi::NativeObject<Derived>(Derived::CLASS_NAME),
|
|
115
115
|
_context(std::move(context)) {}
|
|
116
116
|
|
|
117
117
|
/**
|
|
@@ -120,7 +120,7 @@ public:
|
|
|
120
120
|
*/
|
|
121
121
|
static std::shared_ptr<Derived> fromThis(jsi::Runtime &runtime,
|
|
122
122
|
const jsi::Value &thisValue) {
|
|
123
|
-
return
|
|
123
|
+
return RNJsi::NativeObject<Derived>::fromValue(runtime, thisValue);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
protected:
|
|
@@ -222,7 +222,7 @@ protected:
|
|
|
222
222
|
/**
|
|
223
223
|
* Installs a typed mutating method that returns `this` for chaining
|
|
224
224
|
* (e.g. path.moveTo(...).lineTo(...)). Arguments are converted through
|
|
225
|
-
*
|
|
225
|
+
* RNJsi::JSIConverter like installMethod; the member function's return
|
|
226
226
|
* value (if any) is ignored and the JS function returns thisValue.
|
|
227
227
|
*/
|
|
228
228
|
template <typename ReturnType, typename... Args>
|
|
@@ -270,7 +270,7 @@ private:
|
|
|
270
270
|
ReturnType (Derived::*method)(Args...),
|
|
271
271
|
jsi::Runtime &runtime, const jsi::Value *args,
|
|
272
272
|
std::index_sequence<Is...>, size_t count) {
|
|
273
|
-
(obj->*method)(
|
|
273
|
+
(obj->*method)(RNJsi::JSIConverter<std::decay_t<Args>>::fromJSI(
|
|
274
274
|
runtime, args[Is], Is >= count)...);
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -280,7 +280,7 @@ private:
|
|
|
280
280
|
jsi::Runtime &runtime, const jsi::Value *args, std::index_sequence<Is...>,
|
|
281
281
|
size_t count) {
|
|
282
282
|
(obj->*method)(runtime,
|
|
283
|
-
|
|
283
|
+
RNJsi::JSIConverter<std::decay_t<Args>>::fromJSI(
|
|
284
284
|
runtime, args[Is], Is >= count)...);
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -39,7 +39,7 @@ struct RuntimeEffectUniform {
|
|
|
39
39
|
|
|
40
40
|
} // namespace RNSkia
|
|
41
41
|
|
|
42
|
-
namespace
|
|
42
|
+
namespace RNJsi {
|
|
43
43
|
|
|
44
44
|
// RuntimeEffectUniform -> {columns, rows, slot, isInteger}
|
|
45
45
|
template <> struct JSIConverter<RNSkia::RuntimeEffectUniform> {
|
|
@@ -54,7 +54,7 @@ template <> struct JSIConverter<RNSkia::RuntimeEffectUniform> {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
} // namespace
|
|
57
|
+
} // namespace RNJsi
|
|
58
58
|
|
|
59
59
|
namespace RNSkia {
|
|
60
60
|
|
|
@@ -69,7 +69,51 @@ template <typename T> struct unwrap_optional<std::optional<T>> {
|
|
|
69
69
|
template <typename T>
|
|
70
70
|
T getPropertyValue(jsi::Runtime &runtime, const jsi::Value &value);
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
template <typename T, typename Target>
|
|
73
|
+
bool convertSelectorProperty(jsi::Runtime &runtime, const jsi::Value &prop,
|
|
74
|
+
Target &target, Variables &variables) {
|
|
75
|
+
if (!prop.isObject()) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
auto wrapper = prop.asObject(runtime);
|
|
79
|
+
if (!wrapper.hasProperty(runtime, "__sv") ||
|
|
80
|
+
!wrapper.hasProperty(runtime, "__key")) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
auto svVal = wrapper.getProperty(runtime, "__sv");
|
|
84
|
+
auto keyVal = wrapper.getProperty(runtime, "__key");
|
|
85
|
+
if (!isSharedValue(runtime, svVal) || !keyVal.isString()) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
auto sharedValue = svVal.asObject(runtime);
|
|
89
|
+
auto key = keyVal.asString(runtime).utf8(runtime);
|
|
90
|
+
auto name =
|
|
91
|
+
sharedValue.getProperty(runtime, "name").asString(runtime).utf8(runtime);
|
|
92
|
+
|
|
93
|
+
auto conv = [target = &target, key](jsi::Runtime &runtime,
|
|
94
|
+
const jsi::Object &val) {
|
|
95
|
+
auto value = val.getProperty(runtime, "value");
|
|
96
|
+
if (!value.isObject()) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
auto values = value.asObject(runtime);
|
|
100
|
+
if (!values.hasProperty(runtime, key.c_str())) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
auto selected = values.getProperty(runtime, key.c_str());
|
|
105
|
+
if (selected.isUndefined() || selected.isNull() ||
|
|
106
|
+
(selected.isObject() && selected.asObject(runtime).isFunction(runtime))) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
*target = getPropertyValue<T>(runtime, selected);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
variables[name].push_back(conv);
|
|
113
|
+
conv(runtime, sharedValue);
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
73
117
|
template <typename T, typename Target>
|
|
74
118
|
void convertPropertyImpl(jsi::Runtime &runtime, const jsi::Object &object,
|
|
75
119
|
const std::string &propertyName, Target &target,
|
|
@@ -78,13 +122,16 @@ void convertPropertyImpl(jsi::Runtime &runtime, const jsi::Object &object,
|
|
|
78
122
|
return;
|
|
79
123
|
}
|
|
80
124
|
|
|
81
|
-
auto
|
|
125
|
+
auto prop = object.getProperty(runtime, propertyName.c_str());
|
|
126
|
+
|
|
127
|
+
if (convertSelectorProperty<T>(runtime, prop, target, variables)) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
82
130
|
|
|
83
|
-
if (isSharedValue(runtime,
|
|
84
|
-
auto sharedValue =
|
|
85
|
-
auto name =
|
|
86
|
-
|
|
87
|
-
.utf8(runtime);
|
|
131
|
+
if (isSharedValue(runtime, prop)) {
|
|
132
|
+
auto sharedValue = prop.asObject(runtime);
|
|
133
|
+
auto name =
|
|
134
|
+
sharedValue.getProperty(runtime, "name").asString(runtime).utf8(runtime);
|
|
88
135
|
auto conv = [target = &target](jsi::Runtime &runtime,
|
|
89
136
|
const jsi::Object &val) {
|
|
90
137
|
auto value = val.getProperty(runtime, "value");
|
|
@@ -92,9 +139,10 @@ void convertPropertyImpl(jsi::Runtime &runtime, const jsi::Object &object,
|
|
|
92
139
|
};
|
|
93
140
|
variables[name].push_back(conv);
|
|
94
141
|
conv(runtime, sharedValue);
|
|
95
|
-
|
|
96
|
-
target = getPropertyValue<T>(runtime, property);
|
|
142
|
+
return;
|
|
97
143
|
}
|
|
144
|
+
|
|
145
|
+
target = getPropertyValue<T>(runtime, prop);
|
|
98
146
|
}
|
|
99
147
|
|
|
100
148
|
// Main convertProperty template
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#include "include/core/SkData.h"
|
|
11
11
|
#include "include/core/SkRect.h"
|
|
12
12
|
#include "include/core/SkSize.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAssert.h"
|
|
14
14
|
#include "modules/skottie/include/Skottie.h"
|
|
15
15
|
#include "modules/skresources/include/SkResources.h"
|
|
16
16
|
|
|
@@ -106,7 +106,9 @@ typedef struct DawnProcTable {
|
|
|
106
106
|
WGPUProcDeviceCreateComputePipeline deviceCreateComputePipeline;
|
|
107
107
|
WGPUProcDeviceCreateComputePipelineAsync deviceCreateComputePipelineAsync;
|
|
108
108
|
WGPUProcDeviceCreateErrorBuffer deviceCreateErrorBuffer;
|
|
109
|
+
WGPUProcDeviceCreateErrorComputePipeline deviceCreateErrorComputePipeline;
|
|
109
110
|
WGPUProcDeviceCreateErrorExternalTexture deviceCreateErrorExternalTexture;
|
|
111
|
+
WGPUProcDeviceCreateErrorRenderPipeline deviceCreateErrorRenderPipeline;
|
|
110
112
|
WGPUProcDeviceCreateErrorShaderModule deviceCreateErrorShaderModule;
|
|
111
113
|
WGPUProcDeviceCreateErrorTexture deviceCreateErrorTexture;
|
|
112
114
|
WGPUProcDeviceCreateExternalTexture deviceCreateExternalTexture;
|
|
@@ -237,8 +239,8 @@ typedef struct DawnProcTable {
|
|
|
237
239
|
|
|
238
240
|
WGPUProcResourceTableDestroy resourceTableDestroy;
|
|
239
241
|
WGPUProcResourceTableGetSize resourceTableGetSize;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
WGPUProcResourceTableInsert resourceTableInsert;
|
|
243
|
+
WGPUProcResourceTableRemove resourceTableRemove;
|
|
242
244
|
WGPUProcResourceTableSetLabel resourceTableSetLabel;
|
|
243
245
|
WGPUProcResourceTableUpdate resourceTableUpdate;
|
|
244
246
|
WGPUProcResourceTableAddRef resourceTableAddRef;
|
|
@@ -313,10 +315,8 @@ typedef struct DawnProcTable {
|
|
|
313
315
|
WGPUProcTextureGetTextureBindingViewDimension textureGetTextureBindingViewDimension;
|
|
314
316
|
WGPUProcTextureGetUsage textureGetUsage;
|
|
315
317
|
WGPUProcTextureGetWidth textureGetWidth;
|
|
316
|
-
WGPUProcTexturePin texturePin;
|
|
317
318
|
WGPUProcTextureSetLabel textureSetLabel;
|
|
318
319
|
WGPUProcTextureSetOwnershipForMemoryDump textureSetOwnershipForMemoryDump;
|
|
319
|
-
WGPUProcTextureUnpin textureUnpin;
|
|
320
320
|
WGPUProcTextureAddRef textureAddRef;
|
|
321
321
|
WGPUProcTextureRelease textureRelease;
|
|
322
322
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
namespace dawn {
|
|
35
35
|
|
|
36
36
|
// The version is a 20-byte SHA1 hash. If the hash is not available, it is all zeros.
|
|
37
|
-
static constexpr std::array<uint8_t, 20> kDawnVersion = {
|
|
37
|
+
static constexpr std::array<uint8_t, 20> kDawnVersion = { 0x1e, 0x89, 0x72, 0x75, 0x17, 0x2a, 0x23, 0xf2, 0x7b, 0x00, 0x22, 0xfa, 0x6b, 0xea, 0xe3, 0x08, 0x4e, 0xd5, 0x4a, 0x9b };
|
|
38
38
|
|
|
39
39
|
} // namespace dawn
|
|
40
40
|
|
|
@@ -28,8 +28,25 @@
|
|
|
28
28
|
#ifndef INCLUDE_DAWN_NATIVE_D3D12BACKEND_H_
|
|
29
29
|
#define INCLUDE_DAWN_NATIVE_D3D12BACKEND_H_
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// d3d12.h must be included first, before other d3d headers that may include it, to ensure
|
|
32
|
+
// we pick up the one from the Agility SDK when enabled.
|
|
33
|
+
#if defined(DAWN_USE_AGILITY_SDK)
|
|
34
|
+
// clang-format off
|
|
35
|
+
#if defined(__clang__)
|
|
36
|
+
#pragma clang diagnostic push
|
|
37
|
+
#pragma clang diagnostic ignored "-Wmicrosoft-enum-value"
|
|
38
|
+
#pragma clang diagnostic ignored "-Wnested-anon-types"
|
|
39
|
+
#endif
|
|
40
|
+
#include "third_party/agility-sdk/src/build/native/include/d3d12.h"
|
|
41
|
+
#if defined(__clang__)
|
|
42
|
+
#pragma clang diagnostic pop
|
|
43
|
+
#endif
|
|
44
|
+
#else // defined(DAWN_USE_AGILITY_SDK)
|
|
32
45
|
#include <d3d12.h>
|
|
46
|
+
#endif // defined(DAWN_USE_AGILITY_SDK)
|
|
47
|
+
// clang-format on
|
|
48
|
+
|
|
49
|
+
#include <d3d11on12.h>
|
|
33
50
|
#include <dxgi1_4.h>
|
|
34
51
|
#include <wrl/client.h>
|
|
35
52
|
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
#include <cstdint>
|
|
35
35
|
#include <memory>
|
|
36
36
|
#include <span>
|
|
37
|
-
#include <string_view>
|
|
38
37
|
|
|
39
38
|
#include "dawn/platform/dawn_platform_export.h"
|
|
40
39
|
|
|
@@ -54,21 +53,14 @@ class DAWN_PLATFORM_EXPORT CachingInterface {
|
|
|
54
53
|
|
|
55
54
|
// Returns zero if there does not exist a cached entry for |key|, otherwise returns a non-zero
|
|
56
55
|
// size indicating the size of cached data
|
|
57
|
-
virtual size_t FindKey(std::
|
|
56
|
+
virtual size_t FindKey(std::span<const std::byte> key) = 0;
|
|
58
57
|
|
|
59
58
|
// Returns zero if unable to load cached entry for |key| into |dest|, otherwise returns number
|
|
60
59
|
// of bytes written to |dest|.
|
|
61
|
-
virtual size_t LoadData(std::
|
|
60
|
+
virtual size_t LoadData(std::span<const std::byte> key, std::span<std::byte> dest) = 0;
|
|
62
61
|
|
|
63
62
|
// Stores the data in |src| at the entry specified by |key|.
|
|
64
|
-
virtual void StoreData(std::
|
|
65
|
-
|
|
66
|
-
// TODO(503801946): Remove these outdated default implementations and make the newer API above
|
|
67
|
-
// fully virtual once users are updated.
|
|
68
|
-
virtual size_t LoadData(const void* key, size_t keySize, void* valueOut, size_t valueSize) {
|
|
69
|
-
return 0;
|
|
70
|
-
}
|
|
71
|
-
virtual void StoreData(const void* key, size_t keySize, const void* value, size_t valueSize) {}
|
|
63
|
+
virtual void StoreData(std::span<const std::byte> key, std::span<const std::byte> src) = 0;
|
|
72
64
|
|
|
73
65
|
private:
|
|
74
66
|
CachingInterface(const CachingInterface&) = delete;
|
|
@@ -145,6 +137,7 @@ enum class Features {
|
|
|
145
137
|
kWebGPUUseSpirv14,
|
|
146
138
|
kWebGPUDecomposeUniformBuffers,
|
|
147
139
|
kWebGPUUseHLSL2021,
|
|
140
|
+
kWebGPUUseSpirvReconvergenceMode,
|
|
148
141
|
};
|
|
149
142
|
|
|
150
143
|
class DAWN_PLATFORM_EXPORT Platform {
|
|
@@ -200,6 +193,10 @@ class DAWN_PLATFORM_EXPORT Platform {
|
|
|
200
193
|
// Hook for querying if a Finch feature is enabled.
|
|
201
194
|
virtual bool IsFeatureEnabled(Features feature);
|
|
202
195
|
|
|
196
|
+
// Report GPU process progress so that the watchdog thread won't think that a long function is
|
|
197
|
+
// stuck.
|
|
198
|
+
virtual void ReportProgress();
|
|
199
|
+
|
|
203
200
|
private:
|
|
204
201
|
Platform(const Platform&) = delete;
|
|
205
202
|
Platform& operator=(const Platform&) = delete;
|