@shopify/react-native-skia 0.1.115
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +7 -0
- package/README.md +7 -0
- package/android/CMakeLists.txt +132 -0
- package/android/README.md +14 -0
- package/android/build.gradle +196 -0
- package/android/cpp/jni/JniLoad.cpp +13 -0
- package/android/cpp/jni/JniPlatformContext.cpp +142 -0
- package/android/cpp/jni/JniSkiaDrawView.cpp +169 -0
- package/android/cpp/jni/JniSkiaManager.cpp +57 -0
- package/android/cpp/jni/SkiaOpenGLRenderer.cpp +340 -0
- package/android/cpp/jni/include/JniPlatformContext.h +75 -0
- package/android/cpp/jni/include/JniPlatformContextWrapper.h +54 -0
- package/android/cpp/jni/include/JniSkiaDrawView.h +82 -0
- package/android/cpp/jni/include/JniSkiaManager.h +81 -0
- package/android/cpp/jni/include/SkiaOpenGLRenderer.h +159 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +181 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +88 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +24 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaViewManager.java +72 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +137 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +66 -0
- package/cpp/api/JsiSkApi.h +97 -0
- package/cpp/api/JsiSkCanvas.h +532 -0
- package/cpp/api/JsiSkColorFilter.h +43 -0
- package/cpp/api/JsiSkColorFilterFactory.h +98 -0
- package/cpp/api/JsiSkContourMeasure.h +102 -0
- package/cpp/api/JsiSkContourMeasureIter.h +90 -0
- package/cpp/api/JsiSkData.h +46 -0
- package/cpp/api/JsiSkDataFactory.h +92 -0
- package/cpp/api/JsiSkFont.h +326 -0
- package/cpp/api/JsiSkFontMgr.h +84 -0
- package/cpp/api/JsiSkFontMgrFactory.h +48 -0
- package/cpp/api/JsiSkHostObjects.h +83 -0
- package/cpp/api/JsiSkImage.h +141 -0
- package/cpp/api/JsiSkImageFactory.h +50 -0
- package/cpp/api/JsiSkImageFilter.h +47 -0
- package/cpp/api/JsiSkImageFilterFactory.h +217 -0
- package/cpp/api/JsiSkImageInfo.h +57 -0
- package/cpp/api/JsiSkMaskFilter.h +45 -0
- package/cpp/api/JsiSkMaskFilterFactory.h +42 -0
- package/cpp/api/JsiSkMatrix.h +64 -0
- package/cpp/api/JsiSkPaint.h +227 -0
- package/cpp/api/JsiSkPath.h +557 -0
- package/cpp/api/JsiSkPathEffect.h +45 -0
- package/cpp/api/JsiSkPathEffectFactory.h +123 -0
- package/cpp/api/JsiSkPathFactory.h +64 -0
- package/cpp/api/JsiSkPoint.h +81 -0
- package/cpp/api/JsiSkRRect.h +93 -0
- package/cpp/api/JsiSkRSXform.h +105 -0
- package/cpp/api/JsiSkRect.h +119 -0
- package/cpp/api/JsiSkRuntimeEffect.h +217 -0
- package/cpp/api/JsiSkRuntimeEffectFactory.h +41 -0
- package/cpp/api/JsiSkSVG.h +43 -0
- package/cpp/api/JsiSkSVGFactory.h +48 -0
- package/cpp/api/JsiSkShader.h +45 -0
- package/cpp/api/JsiSkShaderFactory.h +214 -0
- package/cpp/api/JsiSkSurface.h +67 -0
- package/cpp/api/JsiSkSurfaceFactory.h +44 -0
- package/cpp/api/JsiSkTextBlob.h +50 -0
- package/cpp/api/JsiSkTextBlobFactory.h +109 -0
- package/cpp/api/JsiSkTypeface.h +76 -0
- package/cpp/api/JsiSkTypefaceFactory.h +30 -0
- package/cpp/api/JsiSkVertices.h +147 -0
- package/cpp/jsi/JsiHostObject.cpp +154 -0
- package/cpp/jsi/JsiHostObject.h +241 -0
- package/cpp/rnskia/RNSkAnimation.h +73 -0
- package/cpp/rnskia/RNSkDispatchQueue.cpp +84 -0
- package/cpp/rnskia/RNSkDispatchQueue.h +47 -0
- package/cpp/rnskia/RNSkDrawView.cpp +333 -0
- package/cpp/rnskia/RNSkDrawView.h +242 -0
- package/cpp/rnskia/RNSkInfoParameter.h +100 -0
- package/cpp/rnskia/RNSkJsiViewApi.h +305 -0
- package/cpp/rnskia/RNSkManager.cpp +81 -0
- package/cpp/rnskia/RNSkManager.h +81 -0
- package/cpp/rnskia/RNSkPlatformContext.h +196 -0
- package/cpp/rnskia/RNSkValueApi.h +69 -0
- package/cpp/rnskia/values/RNSkClockValue.h +133 -0
- package/cpp/rnskia/values/RNSkDerivedValue.h +92 -0
- package/cpp/rnskia/values/RNSkReadonlyValue.h +140 -0
- package/cpp/rnskia/values/RNSkValue.h +112 -0
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +61 -0
- package/cpp/skia/include/android/SkAnimatedImage.h +179 -0
- package/cpp/skia/include/c/sk_canvas.h +159 -0
- package/cpp/skia/include/c/sk_colorspace.h +25 -0
- package/cpp/skia/include/c/sk_data.h +65 -0
- package/cpp/skia/include/c/sk_image.h +71 -0
- package/cpp/skia/include/c/sk_imageinfo.h +62 -0
- package/cpp/skia/include/c/sk_maskfilter.h +47 -0
- package/cpp/skia/include/c/sk_matrix.h +49 -0
- package/cpp/skia/include/c/sk_paint.h +145 -0
- package/cpp/skia/include/c/sk_path.h +102 -0
- package/cpp/skia/include/c/sk_picture.h +70 -0
- package/cpp/skia/include/c/sk_shader.h +143 -0
- package/cpp/skia/include/c/sk_surface.h +73 -0
- package/cpp/skia/include/c/sk_types.h +278 -0
- package/cpp/skia/include/codec/SkAndroidCodec.h +263 -0
- package/cpp/skia/include/codec/SkCodec.h +992 -0
- package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
- package/cpp/skia/include/codec/SkEncodedOrigin.h +54 -0
- package/cpp/skia/include/config/SkUserConfig.h +89 -0
- package/cpp/skia/include/core/SkAnnotation.h +50 -0
- package/cpp/skia/include/core/SkBBHFactory.h +63 -0
- package/cpp/skia/include/core/SkBitmap.h +1212 -0
- package/cpp/skia/include/core/SkBlendMode.h +110 -0
- package/cpp/skia/include/core/SkBlender.h +33 -0
- package/cpp/skia/include/core/SkBlurTypes.h +22 -0
- package/cpp/skia/include/core/SkCanvas.h +2583 -0
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
- package/cpp/skia/include/core/SkClipOp.h +19 -0
- package/cpp/skia/include/core/SkColor.h +438 -0
- package/cpp/skia/include/core/SkColorFilter.h +90 -0
- package/cpp/skia/include/core/SkColorPriv.h +152 -0
- package/cpp/skia/include/core/SkColorSpace.h +245 -0
- package/cpp/skia/include/core/SkContourMeasure.h +131 -0
- package/cpp/skia/include/core/SkCoverageMode.h +30 -0
- package/cpp/skia/include/core/SkCubicMap.h +45 -0
- package/cpp/skia/include/core/SkCustomMesh.h +202 -0
- package/cpp/skia/include/core/SkData.h +188 -0
- package/cpp/skia/include/core/SkDataTable.h +118 -0
- package/cpp/skia/include/core/SkDeferredDisplayList.h +110 -0
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +97 -0
- package/cpp/skia/include/core/SkDocument.h +91 -0
- package/cpp/skia/include/core/SkDrawLooper.h +135 -0
- package/cpp/skia/include/core/SkDrawable.h +160 -0
- package/cpp/skia/include/core/SkEncodedImageFormat.h +35 -0
- package/cpp/skia/include/core/SkExecutor.h +41 -0
- package/cpp/skia/include/core/SkFlattenable.h +113 -0
- package/cpp/skia/include/core/SkFont.h +534 -0
- package/cpp/skia/include/core/SkFontArguments.h +62 -0
- package/cpp/skia/include/core/SkFontMetrics.h +138 -0
- package/cpp/skia/include/core/SkFontMgr.h +157 -0
- package/cpp/skia/include/core/SkFontParameters.h +42 -0
- package/cpp/skia/include/core/SkFontStyle.h +81 -0
- package/cpp/skia/include/core/SkFontTypes.h +25 -0
- package/cpp/skia/include/core/SkGraphics.h +153 -0
- package/cpp/skia/include/core/SkICC.h +19 -0
- package/cpp/skia/include/core/SkImage.h +1302 -0
- package/cpp/skia/include/core/SkImageEncoder.h +72 -0
- package/cpp/skia/include/core/SkImageFilter.h +114 -0
- package/cpp/skia/include/core/SkImageGenerator.h +215 -0
- package/cpp/skia/include/core/SkImageInfo.h +721 -0
- package/cpp/skia/include/core/SkM44.h +426 -0
- package/cpp/skia/include/core/SkMallocPixelRef.h +42 -0
- package/cpp/skia/include/core/SkMaskFilter.h +50 -0
- package/cpp/skia/include/core/SkMath.h +54 -0
- package/cpp/skia/include/core/SkMatrix.h +1986 -0
- package/cpp/skia/include/core/SkMilestone.h +9 -0
- package/cpp/skia/include/core/SkOverdrawCanvas.h +68 -0
- package/cpp/skia/include/core/SkPaint.h +720 -0
- package/cpp/skia/include/core/SkPath.h +1891 -0
- package/cpp/skia/include/core/SkPathBuilder.h +268 -0
- package/cpp/skia/include/core/SkPathEffect.h +106 -0
- package/cpp/skia/include/core/SkPathMeasure.h +88 -0
- package/cpp/skia/include/core/SkPathTypes.h +59 -0
- package/cpp/skia/include/core/SkPicture.h +280 -0
- package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
- package/cpp/skia/include/core/SkPixelRef.h +123 -0
- package/cpp/skia/include/core/SkPixmap.h +720 -0
- package/cpp/skia/include/core/SkPngChunkReader.h +45 -0
- package/cpp/skia/include/core/SkPoint.h +566 -0
- package/cpp/skia/include/core/SkPoint3.h +157 -0
- package/cpp/skia/include/core/SkPromiseImageTexture.h +46 -0
- package/cpp/skia/include/core/SkRRect.h +512 -0
- package/cpp/skia/include/core/SkRSXform.h +69 -0
- package/cpp/skia/include/core/SkRasterHandleAllocator.h +92 -0
- package/cpp/skia/include/core/SkRect.h +1378 -0
- package/cpp/skia/include/core/SkRefCnt.h +382 -0
- package/cpp/skia/include/core/SkRegion.h +672 -0
- package/cpp/skia/include/core/SkSamplingOptions.h +92 -0
- package/cpp/skia/include/core/SkScalar.h +194 -0
- package/cpp/skia/include/core/SkSerialProcs.h +73 -0
- package/cpp/skia/include/core/SkShader.h +148 -0
- package/cpp/skia/include/core/SkSize.h +90 -0
- package/cpp/skia/include/core/SkSpan.h +89 -0
- package/cpp/skia/include/core/SkStream.h +524 -0
- package/cpp/skia/include/core/SkString.h +302 -0
- package/cpp/skia/include/core/SkStringView.h +185 -0
- package/cpp/skia/include/core/SkStrokeRec.h +154 -0
- package/cpp/skia/include/core/SkSurface.h +1079 -0
- package/cpp/skia/include/core/SkSurfaceCharacterization.h +263 -0
- package/cpp/skia/include/core/SkSurfaceProps.h +92 -0
- package/cpp/skia/include/core/SkSwizzle.h +19 -0
- package/cpp/skia/include/core/SkTextBlob.h +503 -0
- package/cpp/skia/include/core/SkTileMode.h +41 -0
- package/cpp/skia/include/core/SkTime.h +63 -0
- package/cpp/skia/include/core/SkTraceMemoryDump.h +99 -0
- package/cpp/skia/include/core/SkTypeface.h +454 -0
- package/cpp/skia/include/core/SkTypes.h +621 -0
- package/cpp/skia/include/core/SkUnPreMultiply.h +56 -0
- package/cpp/skia/include/core/SkVertices.h +132 -0
- package/cpp/skia/include/core/SkYUVAInfo.h +304 -0
- package/cpp/skia/include/core/SkYUVAPixmaps.h +336 -0
- package/cpp/skia/include/docs/SkPDFDocument.h +196 -0
- package/cpp/skia/include/docs/SkXPSDocument.h +27 -0
- package/cpp/skia/include/effects/Sk1DPathEffect.h +35 -0
- package/cpp/skia/include/effects/Sk2DPathEffect.h +30 -0
- package/cpp/skia/include/effects/SkBlenders.h +27 -0
- package/cpp/skia/include/effects/SkBlurDrawLooper.h +26 -0
- package/cpp/skia/include/effects/SkBlurMaskFilter.h +35 -0
- package/cpp/skia/include/effects/SkColorMatrix.h +55 -0
- package/cpp/skia/include/effects/SkColorMatrixFilter.h +25 -0
- package/cpp/skia/include/effects/SkCornerPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkDashPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
- package/cpp/skia/include/effects/SkGradientShader.h +264 -0
- package/cpp/skia/include/effects/SkHighContrastFilter.h +80 -0
- package/cpp/skia/include/effects/SkImageFilters.h +551 -0
- package/cpp/skia/include/effects/SkLayerDrawLooper.h +161 -0
- package/cpp/skia/include/effects/SkLumaColorFilter.h +34 -0
- package/cpp/skia/include/effects/SkOpPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkOverdrawColorFilter.h +29 -0
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +54 -0
- package/cpp/skia/include/effects/SkRuntimeEffect.h +518 -0
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +24 -0
- package/cpp/skia/include/effects/SkStrokeAndFillPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkTableColorFilter.h +42 -0
- package/cpp/skia/include/effects/SkTableMaskFilter.h +37 -0
- package/cpp/skia/include/effects/SkTrimPathEffect.h +41 -0
- package/cpp/skia/include/encode/SkEncoder.h +42 -0
- package/cpp/skia/include/encode/SkJpegEncoder.h +97 -0
- package/cpp/skia/include/encode/SkPngEncoder.h +99 -0
- package/cpp/skia/include/encode/SkWebpEncoder.h +48 -0
- package/cpp/skia/include/gpu/GrBackendDrawableInfo.h +44 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +140 -0
- package/cpp/skia/include/gpu/GrBackendSurface.h +643 -0
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +91 -0
- package/cpp/skia/include/gpu/GrConfig.h +53 -0
- package/cpp/skia/include/gpu/GrContextOptions.h +364 -0
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +159 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +880 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +52 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +45 -0
- package/cpp/skia/include/gpu/GrRecordingContext.h +275 -0
- package/cpp/skia/include/gpu/GrSurfaceInfo.h +166 -0
- package/cpp/skia/include/gpu/GrTypes.h +244 -0
- package/cpp/skia/include/gpu/GrYUVABackendTextures.h +124 -0
- package/cpp/skia/include/gpu/ShaderErrorHandler.h +36 -0
- package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +35 -0
- package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +248 -0
- package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +95 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +11 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +39 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig.h +79 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig_chrome.h +14 -0
- package/cpp/skia/include/gpu/gl/GrGLExtensions.h +78 -0
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +304 -0
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +342 -0
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +207 -0
- package/cpp/skia/include/gpu/gl/egl/GrGLMakeEGLInterface.h +14 -0
- package/cpp/skia/include/gpu/gl/glx/GrGLMakeGLXInterface.h +14 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +144 -0
- package/cpp/skia/include/gpu/mtl/GrMtlBackendContext.h +21 -0
- package/cpp/skia/include/gpu/mtl/GrMtlTypes.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkBackendContext.h +76 -0
- package/cpp/skia/include/gpu/vk/GrVkExtensions.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +140 -0
- package/cpp/skia/include/gpu/vk/GrVkTypes.h +187 -0
- package/cpp/skia/include/gpu/vk/GrVkVulkan.h +32 -0
- package/cpp/skia/include/pathops/SkPathOps.h +113 -0
- package/cpp/skia/include/ports/SkCFObject.h +184 -0
- package/cpp/skia/include/ports/SkFontConfigInterface.h +115 -0
- package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +20 -0
- package/cpp/skia/include/ports/SkFontMgr_android.h +45 -0
- package/cpp/skia/include/ports/SkFontMgr_directory.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_empty.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_fontconfig.h +22 -0
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +19 -0
- package/cpp/skia/include/ports/SkFontMgr_indirect.h +102 -0
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +27 -0
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +20 -0
- package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +35 -0
- package/cpp/skia/include/ports/SkRemotableFontMgr.h +139 -0
- package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
- package/cpp/skia/include/ports/SkTypeface_win.h +79 -0
- package/cpp/skia/include/private/GrContext_Base.h +92 -0
- package/cpp/skia/include/private/GrD3DTypesMinimal.h +74 -0
- package/cpp/skia/include/private/GrDawnTypesPriv.h +26 -0
- package/cpp/skia/include/private/GrGLTypesPriv.h +107 -0
- package/cpp/skia/include/private/GrImageContext.h +55 -0
- package/cpp/skia/include/private/GrMockTypesPriv.h +31 -0
- package/cpp/skia/include/private/GrMtlTypesPriv.h +75 -0
- package/cpp/skia/include/private/GrSingleOwner.h +65 -0
- package/cpp/skia/include/private/GrTypesPriv.h +1354 -0
- package/cpp/skia/include/private/GrVkTypesPriv.h +107 -0
- package/cpp/skia/include/private/SkBitmaskEnum.h +59 -0
- package/cpp/skia/include/private/SkChecksum.h +66 -0
- package/cpp/skia/include/private/SkColorData.h +441 -0
- package/cpp/skia/include/private/SkDeque.h +141 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +249 -0
- package/cpp/skia/include/private/SkFixed.h +141 -0
- package/cpp/skia/include/private/SkFloatBits.h +91 -0
- package/cpp/skia/include/private/SkFloatingPoint.h +272 -0
- package/cpp/skia/include/private/SkHalf.h +85 -0
- package/cpp/skia/include/private/SkIDChangeListener.h +75 -0
- package/cpp/skia/include/private/SkImageInfoPriv.h +193 -0
- package/cpp/skia/include/private/SkMacros.h +84 -0
- package/cpp/skia/include/private/SkMalloc.h +143 -0
- package/cpp/skia/include/private/SkMutex.h +56 -0
- package/cpp/skia/include/private/SkNoncopyable.h +30 -0
- package/cpp/skia/include/private/SkNx.h +430 -0
- package/cpp/skia/include/private/SkNx_neon.h +713 -0
- package/cpp/skia/include/private/SkNx_sse.h +823 -0
- package/cpp/skia/include/private/SkOnce.h +53 -0
- package/cpp/skia/include/private/SkOpts_spi.h +21 -0
- package/cpp/skia/include/private/SkPaintParamsKey.h +110 -0
- package/cpp/skia/include/private/SkPathRef.h +536 -0
- package/cpp/skia/include/private/SkSLDefines.h +56 -0
- package/cpp/skia/include/private/SkSLIRNode.h +63 -0
- package/cpp/skia/include/private/SkSLLayout.h +143 -0
- package/cpp/skia/include/private/SkSLModifiers.h +141 -0
- package/cpp/skia/include/private/SkSLProgramElement.h +77 -0
- package/cpp/skia/include/private/SkSLProgramKind.h +31 -0
- package/cpp/skia/include/private/SkSLSampleUsage.h +89 -0
- package/cpp/skia/include/private/SkSLStatement.h +87 -0
- package/cpp/skia/include/private/SkSLString.h +80 -0
- package/cpp/skia/include/private/SkSLSymbol.h +90 -0
- package/cpp/skia/include/private/SkSafe32.h +34 -0
- package/cpp/skia/include/private/SkSafe_math.h +52 -0
- package/cpp/skia/include/private/SkSemaphore.h +83 -0
- package/cpp/skia/include/private/SkShaderCodeDictionary.h +63 -0
- package/cpp/skia/include/private/SkShadowFlags.h +25 -0
- package/cpp/skia/include/private/SkSpinlock.h +57 -0
- package/cpp/skia/include/private/SkTArray.h +640 -0
- package/cpp/skia/include/private/SkTDArray.h +385 -0
- package/cpp/skia/include/private/SkTFitsIn.h +99 -0
- package/cpp/skia/include/private/SkTHash.h +548 -0
- package/cpp/skia/include/private/SkTLogic.h +86 -0
- package/cpp/skia/include/private/SkTOptional.h +362 -0
- package/cpp/skia/include/private/SkTPin.h +23 -0
- package/cpp/skia/include/private/SkTemplates.h +453 -0
- package/cpp/skia/include/private/SkThreadAnnotations.h +91 -0
- package/cpp/skia/include/private/SkThreadID.h +20 -0
- package/cpp/skia/include/private/SkTo.h +28 -0
- package/cpp/skia/include/private/SkUniquePaintParamsID.h +35 -0
- package/cpp/skia/include/private/SkVx.h +943 -0
- package/cpp/skia/include/private/SkWeakRefCnt.h +170 -0
- package/cpp/skia/include/private/chromium/GrSlug.h +41 -0
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +143 -0
- package/cpp/skia/include/sksl/DSL.h +34 -0
- package/cpp/skia/include/sksl/DSLBlock.h +67 -0
- package/cpp/skia/include/sksl/DSLCase.h +68 -0
- package/cpp/skia/include/sksl/DSLCore.h +488 -0
- package/cpp/skia/include/sksl/DSLExpression.h +299 -0
- package/cpp/skia/include/sksl/DSLFunction.h +116 -0
- package/cpp/skia/include/sksl/DSLLayout.h +94 -0
- package/cpp/skia/include/sksl/DSLModifiers.h +64 -0
- package/cpp/skia/include/sksl/DSLRuntimeEffects.h +32 -0
- package/cpp/skia/include/sksl/DSLStatement.h +111 -0
- package/cpp/skia/include/sksl/DSLSymbols.h +71 -0
- package/cpp/skia/include/sksl/DSLType.h +259 -0
- package/cpp/skia/include/sksl/DSLVar.h +310 -0
- package/cpp/skia/include/sksl/DSLWrapper.h +77 -0
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +28 -0
- package/cpp/skia/include/sksl/SkSLErrorReporter.h +115 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +37 -0
- package/cpp/skia/include/third_party/skcms/LICENSE +29 -0
- package/cpp/skia/include/third_party/skcms/skcms.h +394 -0
- package/cpp/skia/include/third_party/vulkan/LICENSE +29 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +93 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +112 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +12620 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +315 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +55 -0
- package/cpp/skia/include/utils/SkAnimCodecPlayer.h +60 -0
- package/cpp/skia/include/utils/SkBase64.h +51 -0
- package/cpp/skia/include/utils/SkCamera.h +107 -0
- package/cpp/skia/include/utils/SkCanvasStateUtils.h +78 -0
- package/cpp/skia/include/utils/SkCustomTypeface.h +48 -0
- package/cpp/skia/include/utils/SkEventTracer.h +79 -0
- package/cpp/skia/include/utils/SkNWayCanvas.h +92 -0
- package/cpp/skia/include/utils/SkNoDrawCanvas.h +80 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +18 -0
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +53 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +107 -0
- package/cpp/skia/include/utils/SkParse.h +32 -0
- package/cpp/skia/include/utils/SkParsePath.h +25 -0
- package/cpp/skia/include/utils/SkRandom.h +169 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +85 -0
- package/cpp/skia/include/utils/SkTextUtils.h +38 -0
- package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
- package/cpp/skia/include/utils/mac/SkCGUtils.h +78 -0
- package/cpp/skia/modules/skresources/include/SkResources.h +254 -0
- package/cpp/skia/modules/svg/include/SkSVGAttribute.h +113 -0
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +134 -0
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +96 -0
- package/cpp/skia/modules/svg/include/SkSVGDefs.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFe.h +85 -0
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +89 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +121 -0
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +47 -0
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +40 -0
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +39 -0
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +69 -0
- package/cpp/skia/modules/svg/include/SkSVGG.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +48 -0
- package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGIDMapper.h +19 -0
- package/cpp/skia/modules/svg/include/SkSVGImage.h +58 -0
- package/cpp/skia/modules/svg/include/SkSVGLine.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +37 -0
- package/cpp/skia/modules/svg/include/SkSVGMask.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGNode.h +223 -0
- package/cpp/skia/modules/svg/include/SkSVGPath.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +55 -0
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +38 -0
- package/cpp/skia/modules/svg/include/SkSVGRect.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +188 -0
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +52 -0
- package/cpp/skia/modules/svg/include/SkSVGShape.h +33 -0
- package/cpp/skia/modules/svg/include/SkSVGStop.h +34 -0
- package/cpp/skia/modules/svg/include/SkSVGText.h +122 -0
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +691 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
- package/cpp/skia/readme.txt +1 -0
- package/cpp/utils/RNSkLog.h +53 -0
- package/cpp/utils/RNSkMeasureTime.h +32 -0
- package/cpp/utils/RNSkTimingInfo.h +91 -0
- package/ios/RNSkia-iOS/DisplayLink.h +17 -0
- package/ios/RNSkia-iOS/DisplayLink.mm +36 -0
- package/ios/RNSkia-iOS/PlatformContext.h +50 -0
- package/ios/RNSkia-iOS/PlatformContext.mm +52 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.h +57 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +98 -0
- package/ios/RNSkia-iOS/SkiaDrawView.h +23 -0
- package/ios/RNSkia-iOS/SkiaDrawView.mm +165 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.h +7 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +42 -0
- package/ios/RNSkia-iOS/SkiaManager.h +17 -0
- package/ios/RNSkia-iOS/SkiaManager.mm +50 -0
- package/ios/RNSkiaModule.h +11 -0
- package/ios/RNSkiaModule.mm +42 -0
- package/ios/Rnskia.xcodeproj/project.pbxproj +281 -0
- package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +7 -0
- package/lib/commonjs/external/index.js +19 -0
- package/lib/commonjs/external/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/index.js +19 -0
- package/lib/commonjs/external/reanimated/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js +86 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/commonjs/index.js +73 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/renderer/Canvas.js +186 -0
- package/lib/commonjs/renderer/Canvas.js.map +1 -0
- package/lib/commonjs/renderer/DependencyManager.js +70 -0
- package/lib/commonjs/renderer/DependencyManager.js.map +1 -0
- package/lib/commonjs/renderer/DrawingContext.js +6 -0
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -0
- package/lib/commonjs/renderer/HostConfig.js +272 -0
- package/lib/commonjs/renderer/HostConfig.js.map +1 -0
- package/lib/commonjs/renderer/components/Blend.js +46 -0
- package/lib/commonjs/renderer/components/Blend.js.map +1 -0
- package/lib/commonjs/renderer/components/Compose.js +41 -0
- package/lib/commonjs/renderer/components/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/Defs.js +30 -0
- package/lib/commonjs/renderer/components/Defs.js.map +1 -0
- package/lib/commonjs/renderer/components/Group.js +73 -0
- package/lib/commonjs/renderer/components/Group.js.map +1 -0
- package/lib/commonjs/renderer/components/Mask.js +58 -0
- package/lib/commonjs/renderer/components/Mask.js.map +1 -0
- package/lib/commonjs/renderer/components/Paint.js +54 -0
- package/lib/commonjs/renderer/components/Paint.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +33 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +54 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/index.js +32 -0
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +40 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js +24 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +40 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +41 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js +162 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/commonjs/renderer/components/image/Image.js +55 -0
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js +45 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js +82 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/commonjs/renderer/components/image/index.js +58 -0
- package/lib/commonjs/renderer/components/image/index.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +43 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +53 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DropShadow.js +45 -0
- package/lib/commonjs/renderer/components/imageFilters/DropShadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +60 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +43 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +39 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js +33 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/index.js +214 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +42 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js +19 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +46 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +43 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +53 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +49 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +32 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js +97 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Color.js +32 -0
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +42 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js +32 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +43 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +43 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js +80 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js +52 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +44 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +42 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +45 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/index.js +123 -0
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js +42 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +35 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js +31 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js +38 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Line.js +35 -0
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js +38 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js +52 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Path.js +58 -0
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Points.js +45 -0
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js +34 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +37 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js +54 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/index.js +162 -0
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js +60 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Text.js +45 -0
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js +40 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextPath.js +95 -0
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
- package/lib/commonjs/renderer/components/text/index.js +58 -0
- package/lib/commonjs/renderer/components/text/index.js.map +1 -0
- package/lib/commonjs/renderer/index.js +45 -0
- package/lib/commonjs/renderer/index.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Container.js +28 -0
- package/lib/commonjs/renderer/nodes/Container.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Declaration.js +47 -0
- package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Drawing.js +75 -0
- package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Node.js +78 -0
- package/lib/commonjs/renderer/nodes/Node.js.map +1 -0
- package/lib/commonjs/renderer/nodes/index.js +58 -0
- package/lib/commonjs/renderer/nodes/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js +52 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/index.js +19 -0
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Circles.js +25 -0
- package/lib/commonjs/renderer/processors/Circles.js.map +1 -0
- package/lib/commonjs/renderer/processors/Clips.js +24 -0
- package/lib/commonjs/renderer/processors/Clips.js.map +1 -0
- package/lib/commonjs/renderer/processors/Font.js +39 -0
- package/lib/commonjs/renderer/processors/Font.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paint.js +91 -0
- package/lib/commonjs/renderer/processors/Paint.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paths.js +26 -0
- package/lib/commonjs/renderer/processors/Paths.js.map +1 -0
- package/lib/commonjs/renderer/processors/Radius.js +19 -0
- package/lib/commonjs/renderer/processors/Radius.js.map +1 -0
- package/lib/commonjs/renderer/processors/Rects.js +98 -0
- package/lib/commonjs/renderer/processors/Rects.js.map +1 -0
- package/lib/commonjs/renderer/processors/Transform.js +56 -0
- package/lib/commonjs/renderer/processors/Transform.js.map +1 -0
- package/lib/commonjs/renderer/processors/index.js +136 -0
- package/lib/commonjs/renderer/processors/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js +43 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Math.js +11 -0
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Matrix3.js +81 -0
- package/lib/commonjs/renderer/processors/math/Matrix3.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js +22 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Vector.js +61 -0
- package/lib/commonjs/renderer/processors/math/Vector.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/index.js +71 -0
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
- package/lib/commonjs/renderer/typeddash.js +17 -0
- package/lib/commonjs/renderer/typeddash.js.map +1 -0
- package/lib/commonjs/skia/Canvas.js +22 -0
- package/lib/commonjs/skia/Canvas.js.map +1 -0
- package/lib/commonjs/skia/Color.js +77 -0
- package/lib/commonjs/skia/Color.js.map +1 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilter.js +11 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilterFactory.js +6 -0
- package/lib/commonjs/skia/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/ColorFilter/index.js +32 -0
- package/lib/commonjs/skia/ColorFilter/index.js.map +1 -0
- package/lib/commonjs/skia/ContourMeasure.js +6 -0
- package/lib/commonjs/skia/ContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/Data/Data.js +53 -0
- package/lib/commonjs/skia/Data/Data.js.map +1 -0
- package/lib/commonjs/skia/Data/DataFactory.js +6 -0
- package/lib/commonjs/skia/Data/DataFactory.js.map +1 -0
- package/lib/commonjs/skia/Data/index.js +32 -0
- package/lib/commonjs/skia/Data/index.js.map +1 -0
- package/lib/commonjs/skia/Font/Font.js +81 -0
- package/lib/commonjs/skia/Font/Font.js.map +1 -0
- package/lib/commonjs/skia/Font/index.js +32 -0
- package/lib/commonjs/skia/Font/index.js.map +1 -0
- package/lib/commonjs/skia/Font/useFont.js +36 -0
- package/lib/commonjs/skia/Font/useFont.js.map +1 -0
- package/lib/commonjs/skia/FontMgr/FontMgr.js +6 -0
- package/lib/commonjs/skia/FontMgr/FontMgr.js.map +1 -0
- package/lib/commonjs/skia/FontMgr/FontMgrFactory.js +6 -0
- package/lib/commonjs/skia/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/FontMgr/index.js +19 -0
- package/lib/commonjs/skia/FontMgr/index.js.map +1 -0
- package/lib/commonjs/skia/Image/Image.js +32 -0
- package/lib/commonjs/skia/Image/Image.js.map +1 -0
- package/lib/commonjs/skia/Image/ImageFactory.js +46 -0
- package/lib/commonjs/skia/Image/ImageFactory.js.map +1 -0
- package/lib/commonjs/skia/Image/index.js +45 -0
- package/lib/commonjs/skia/Image/index.js.map +1 -0
- package/lib/commonjs/skia/Image/useImage.js +18 -0
- package/lib/commonjs/skia/Image/useImage.js.map +1 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilter.js +20 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js +16 -0
- package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/ImageFilter/index.js +32 -0
- package/lib/commonjs/skia/ImageFilter/index.js.map +1 -0
- package/lib/commonjs/skia/JsiInstance.js +2 -0
- package/lib/commonjs/skia/JsiInstance.js.map +1 -0
- package/lib/commonjs/skia/MaskFilter.js +20 -0
- package/lib/commonjs/skia/MaskFilter.js.map +1 -0
- package/lib/commonjs/skia/Matrix.js +21 -0
- package/lib/commonjs/skia/Matrix.js.map +1 -0
- package/lib/commonjs/skia/NativeSetup.js +19 -0
- package/lib/commonjs/skia/NativeSetup.js.map +1 -0
- package/lib/commonjs/skia/Paint/BlendMode.js +69 -0
- package/lib/commonjs/skia/Paint/BlendMode.js.map +1 -0
- package/lib/commonjs/skia/Paint/Paint.js +36 -0
- package/lib/commonjs/skia/Paint/Paint.js.map +1 -0
- package/lib/commonjs/skia/Paint/index.js +45 -0
- package/lib/commonjs/skia/Paint/index.js.map +1 -0
- package/lib/commonjs/skia/Paint/usePaint.js +28 -0
- package/lib/commonjs/skia/Paint/usePaint.js.map +1 -0
- package/lib/commonjs/skia/Path/Path.js +35 -0
- package/lib/commonjs/skia/Path/Path.js.map +1 -0
- package/lib/commonjs/skia/Path/PathFactory.js +6 -0
- package/lib/commonjs/skia/Path/PathFactory.js.map +1 -0
- package/lib/commonjs/skia/Path/index.js +45 -0
- package/lib/commonjs/skia/Path/index.js.map +1 -0
- package/lib/commonjs/skia/Path/usePath.js +60 -0
- package/lib/commonjs/skia/Path/usePath.js.map +1 -0
- package/lib/commonjs/skia/PathEffect.js +19 -0
- package/lib/commonjs/skia/PathEffect.js.map +1 -0
- package/lib/commonjs/skia/Point.js +15 -0
- package/lib/commonjs/skia/Point.js.map +1 -0
- package/lib/commonjs/skia/RRect.js +6 -0
- package/lib/commonjs/skia/RRect.js.map +1 -0
- package/lib/commonjs/skia/RSXform.js +6 -0
- package/lib/commonjs/skia/RSXform.js.map +1 -0
- package/lib/commonjs/skia/Rect.js +2 -0
- package/lib/commonjs/skia/Rect.js.map +1 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffect.js +6 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffectFactory.js +6 -0
- package/lib/commonjs/skia/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/RuntimeEffect/index.js +32 -0
- package/lib/commonjs/skia/RuntimeEffect/index.js.map +1 -0
- package/lib/commonjs/skia/SVG/SVG.js +6 -0
- package/lib/commonjs/skia/SVG/SVG.js.map +1 -0
- package/lib/commonjs/skia/SVG/SVGFactory.js +6 -0
- package/lib/commonjs/skia/SVG/SVGFactory.js.map +1 -0
- package/lib/commonjs/skia/SVG/index.js +45 -0
- package/lib/commonjs/skia/SVG/index.js.map +1 -0
- package/lib/commonjs/skia/SVG/useSvg.js +15 -0
- package/lib/commonjs/skia/SVG/useSvg.js.map +1 -0
- package/lib/commonjs/skia/Shader/Shader.js +11 -0
- package/lib/commonjs/skia/Shader/Shader.js.map +1 -0
- package/lib/commonjs/skia/Shader/ShaderFactory.js +6 -0
- package/lib/commonjs/skia/Shader/ShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/Shader/index.js +45 -0
- package/lib/commonjs/skia/Shader/index.js.map +1 -0
- package/lib/commonjs/skia/Shader/useShader.js +15 -0
- package/lib/commonjs/skia/Shader/useShader.js.map +1 -0
- package/lib/commonjs/skia/Skia.js +49 -0
- package/lib/commonjs/skia/Skia.js.map +1 -0
- package/lib/commonjs/skia/Surface/Surface.js +6 -0
- package/lib/commonjs/skia/Surface/Surface.js.map +1 -0
- package/lib/commonjs/skia/Surface/SurfaceFactory.js +6 -0
- package/lib/commonjs/skia/Surface/SurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/Surface/index.js +32 -0
- package/lib/commonjs/skia/Surface/index.js.map +1 -0
- package/lib/commonjs/skia/TextBlob.js +6 -0
- package/lib/commonjs/skia/TextBlob.js.map +1 -0
- package/lib/commonjs/skia/Typeface/Typeface.js +6 -0
- package/lib/commonjs/skia/Typeface/Typeface.js.map +1 -0
- package/lib/commonjs/skia/Typeface/TypefaceFactory.js +6 -0
- package/lib/commonjs/skia/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/Typeface/index.js +45 -0
- package/lib/commonjs/skia/Typeface/index.js.map +1 -0
- package/lib/commonjs/skia/Typeface/useTypeface.js +18 -0
- package/lib/commonjs/skia/Typeface/useTypeface.js.map +1 -0
- package/lib/commonjs/skia/Vertices/Vertices.js +15 -0
- package/lib/commonjs/skia/Vertices/Vertices.js.map +1 -0
- package/lib/commonjs/skia/Vertices/index.js +19 -0
- package/lib/commonjs/skia/Vertices/index.js.map +1 -0
- package/lib/commonjs/skia/index.js +311 -0
- package/lib/commonjs/skia/index.js.map +1 -0
- package/lib/commonjs/values/animation/decay/decay.js +42 -0
- package/lib/commonjs/values/animation/decay/decay.js.map +1 -0
- package/lib/commonjs/values/animation/decay/index.js +14 -0
- package/lib/commonjs/values/animation/decay/index.js.map +1 -0
- package/lib/commonjs/values/animation/decay/runDecay.js +48 -0
- package/lib/commonjs/values/animation/decay/runDecay.js.map +1 -0
- package/lib/commonjs/values/animation/decay/types.js +6 -0
- package/lib/commonjs/values/animation/decay/types.js.map +1 -0
- package/lib/commonjs/values/animation/functions/index.js +28 -0
- package/lib/commonjs/values/animation/functions/index.js.map +1 -0
- package/lib/commonjs/values/animation/functions/interpolate.js +139 -0
- package/lib/commonjs/values/animation/functions/interpolate.js.map +1 -0
- package/lib/commonjs/values/animation/functions/interpolateColors.js +47 -0
- package/lib/commonjs/values/animation/functions/interpolateColors.js.map +1 -0
- package/lib/commonjs/values/animation/index.js +58 -0
- package/lib/commonjs/values/animation/index.js.map +1 -0
- package/lib/commonjs/values/animation/spring/Spring.js +77 -0
- package/lib/commonjs/values/animation/spring/Spring.js.map +1 -0
- package/lib/commonjs/values/animation/spring/functions/index.js +14 -0
- package/lib/commonjs/values/animation/spring/functions/index.js.map +1 -0
- package/lib/commonjs/values/animation/spring/functions/spring.js +94 -0
- package/lib/commonjs/values/animation/spring/functions/spring.js.map +1 -0
- package/lib/commonjs/values/animation/spring/index.js +30 -0
- package/lib/commonjs/values/animation/spring/index.js.map +1 -0
- package/lib/commonjs/values/animation/spring/runSpring.js +32 -0
- package/lib/commonjs/values/animation/spring/runSpring.js.map +1 -0
- package/lib/commonjs/values/animation/spring/types.js +2 -0
- package/lib/commonjs/values/animation/spring/types.js.map +1 -0
- package/lib/commonjs/values/animation/spring/useSpring.js +24 -0
- package/lib/commonjs/values/animation/spring/useSpring.js.map +1 -0
- package/lib/commonjs/values/animation/timing/Easing.js +108 -0
- package/lib/commonjs/values/animation/timing/Easing.js.map +1 -0
- package/lib/commonjs/values/animation/timing/createTiming.js +59 -0
- package/lib/commonjs/values/animation/timing/createTiming.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/bezier.js +147 -0
- package/lib/commonjs/values/animation/timing/functions/bezier.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/getResolvedParams.js +56 -0
- package/lib/commonjs/values/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/index.js +54 -0
- package/lib/commonjs/values/animation/timing/functions/index.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/timing.js +50 -0
- package/lib/commonjs/values/animation/timing/functions/timing.js.map +1 -0
- package/lib/commonjs/values/animation/timing/functions/types.js +2 -0
- package/lib/commonjs/values/animation/timing/functions/types.js.map +1 -0
- package/lib/commonjs/values/animation/timing/index.js +38 -0
- package/lib/commonjs/values/animation/timing/index.js.map +1 -0
- package/lib/commonjs/values/animation/timing/runTiming.js +33 -0
- package/lib/commonjs/values/animation/timing/runTiming.js.map +1 -0
- package/lib/commonjs/values/animation/timing/useLoop.js +22 -0
- package/lib/commonjs/values/animation/timing/useLoop.js.map +1 -0
- package/lib/commonjs/values/animation/timing/useTiming.js +66 -0
- package/lib/commonjs/values/animation/timing/useTiming.js.map +1 -0
- package/lib/commonjs/values/animation/types.js +2 -0
- package/lib/commonjs/values/animation/types.js.map +1 -0
- package/lib/commonjs/values/api.js +20 -0
- package/lib/commonjs/values/api.js.map +1 -0
- package/lib/commonjs/values/hooks/index.js +58 -0
- package/lib/commonjs/values/hooks/index.js.map +1 -0
- package/lib/commonjs/values/hooks/useClockValue.js +27 -0
- package/lib/commonjs/values/hooks/useClockValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useDerivedValue.js +25 -0
- package/lib/commonjs/values/hooks/useDerivedValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValue.js +23 -0
- package/lib/commonjs/values/hooks/useValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValueEffect.js +22 -0
- package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -0
- package/lib/commonjs/values/index.js +58 -0
- package/lib/commonjs/values/index.js.map +1 -0
- package/lib/commonjs/values/types.js +2 -0
- package/lib/commonjs/values/types.js.map +1 -0
- package/lib/commonjs/views/SkiaView.js +163 -0
- package/lib/commonjs/views/SkiaView.js.map +1 -0
- package/lib/commonjs/views/index.js +58 -0
- package/lib/commonjs/views/index.js.map +1 -0
- package/lib/commonjs/views/types.js +16 -0
- package/lib/commonjs/views/types.js.map +1 -0
- package/lib/commonjs/views/useDrawCallback.js +23 -0
- package/lib/commonjs/views/useDrawCallback.js.map +1 -0
- package/lib/commonjs/views/useTouchHandler.js +75 -0
- package/lib/commonjs/views/useTouchHandler.js.map +1 -0
- package/lib/module/external/index.js +2 -0
- package/lib/module/external/index.js.map +1 -0
- package/lib/module/external/reanimated/index.js +2 -0
- package/lib/module/external/reanimated/index.js.map +1 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js +81 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/renderer/Canvas.js +149 -0
- package/lib/module/renderer/Canvas.js.map +1 -0
- package/lib/module/renderer/DependencyManager.js +60 -0
- package/lib/module/renderer/DependencyManager.js.map +1 -0
- package/lib/module/renderer/DrawingContext.js +2 -0
- package/lib/module/renderer/DrawingContext.js.map +1 -0
- package/lib/module/renderer/HostConfig.js +259 -0
- package/lib/module/renderer/HostConfig.js.map +1 -0
- package/lib/module/renderer/components/Blend.js +28 -0
- package/lib/module/renderer/components/Blend.js.map +1 -0
- package/lib/module/renderer/components/Compose.js +24 -0
- package/lib/module/renderer/components/Compose.js.map +1 -0
- package/lib/module/renderer/components/Defs.js +16 -0
- package/lib/module/renderer/components/Defs.js.map +1 -0
- package/lib/module/renderer/components/Group.js +58 -0
- package/lib/module/renderer/components/Group.js.map +1 -0
- package/lib/module/renderer/components/Mask.js +40 -0
- package/lib/module/renderer/components/Mask.js.map +1 -0
- package/lib/module/renderer/components/Paint.js +36 -0
- package/lib/module/renderer/components/Paint.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js +19 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +39 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/module/renderer/components/backdrop/index.js +3 -0
- package/lib/module/renderer/components/backdrop/index.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js +21 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Compose.js +14 -0
- package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js +21 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +17 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +17 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js +20 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +17 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/index.js +7 -0
- package/lib/module/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/module/renderer/components/image/BoxFit.js +145 -0
- package/lib/module/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/module/renderer/components/image/Image.js +39 -0
- package/lib/module/renderer/components/image/Image.js.map +1 -0
- package/lib/module/renderer/components/image/ImageSVG.js +30 -0
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/module/renderer/components/image/ImageShader.js +66 -0
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/module/renderer/components/image/index.js +5 -0
- package/lib/module/renderer/components/image/index.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Blur.js +25 -0
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +32 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DropShadow.js +28 -0
- package/lib/module/renderer/components/imageFilters/DropShadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js +38 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js +26 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Offset.js +23 -0
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/getInput.js +23 -0
- package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/index.js +7 -0
- package/lib/module/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/module/renderer/components/index.js +17 -0
- package/lib/module/renderer/components/index.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/Blur.js +25 -0
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/index.js +2 -0
- package/lib/module/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Corner.js +29 -0
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Dash.js +26 -0
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js +30 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js +30 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js +34 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js +31 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Sum.js +16 -0
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/index.js +8 -0
- package/lib/module/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/module/renderer/components/shaders/Color.js +17 -0
- package/lib/module/renderer/components/shaders/Color.js.map +1 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js +27 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/module/renderer/components/shaders/Gradient.js +20 -0
- package/lib/module/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js +27 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js +27 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Shader.js +64 -0
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js +45 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js +28 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Turbulence.js +27 -0
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +29 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/index.js +10 -0
- package/lib/module/renderer/components/shaders/index.js.map +1 -0
- package/lib/module/renderer/components/shapes/Circle.js +26 -0
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/module/renderer/components/shapes/DiffRect.js +21 -0
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Fill.js +17 -0
- package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/module/renderer/components/shapes/FitBox.js +22 -0
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/module/renderer/components/shapes/Line.js +21 -0
- package/lib/module/renderer/components/shapes/Line.js.map +1 -0
- package/lib/module/renderer/components/shapes/Oval.js +23 -0
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/module/renderer/components/shapes/Patch.js +35 -0
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/module/renderer/components/shapes/Path.js +43 -0
- package/lib/module/renderer/components/shapes/Path.js.map +1 -0
- package/lib/module/renderer/components/shapes/Points.js +27 -0
- package/lib/module/renderer/components/shapes/Points.js.map +1 -0
- package/lib/module/renderer/components/shapes/Rect.js +19 -0
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js +22 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Vertices.js +36 -0
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/module/renderer/components/shapes/index.js +13 -0
- package/lib/module/renderer/components/shapes/index.js.map +1 -0
- package/lib/module/renderer/components/text/Glyphs.js +45 -0
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/module/renderer/components/text/Text.js +30 -0
- package/lib/module/renderer/components/text/Text.js.map +1 -0
- package/lib/module/renderer/components/text/TextBlob.js +26 -0
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/module/renderer/components/text/TextPath.js +76 -0
- package/lib/module/renderer/components/text/TextPath.js.map +1 -0
- package/lib/module/renderer/components/text/index.js +5 -0
- package/lib/module/renderer/components/text/index.js.map +1 -0
- package/lib/module/renderer/index.js +4 -0
- package/lib/module/renderer/index.js.map +1 -0
- package/lib/module/renderer/nodes/Container.js +18 -0
- package/lib/module/renderer/nodes/Container.js.map +1 -0
- package/lib/module/renderer/nodes/Declaration.js +33 -0
- package/lib/module/renderer/nodes/Declaration.js.map +1 -0
- package/lib/module/renderer/nodes/Drawing.js +53 -0
- package/lib/module/renderer/nodes/Drawing.js.map +1 -0
- package/lib/module/renderer/nodes/Node.js +67 -0
- package/lib/module/renderer/nodes/Node.js.map +1 -0
- package/lib/module/renderer/nodes/index.js +5 -0
- package/lib/module/renderer/nodes/index.js.map +1 -0
- package/lib/module/renderer/processors/Animations/Animations.js +36 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/module/renderer/processors/Animations/index.js +2 -0
- package/lib/module/renderer/processors/Animations/index.js.map +1 -0
- package/lib/module/renderer/processors/Circles.js +16 -0
- package/lib/module/renderer/processors/Circles.js.map +1 -0
- package/lib/module/renderer/processors/Clips.js +13 -0
- package/lib/module/renderer/processors/Clips.js.map +1 -0
- package/lib/module/renderer/processors/Font.js +26 -0
- package/lib/module/renderer/processors/Font.js.map +1 -0
- package/lib/module/renderer/processors/Paint.js +75 -0
- package/lib/module/renderer/processors/Paint.js.map +1 -0
- package/lib/module/renderer/processors/Paths.js +13 -0
- package/lib/module/renderer/processors/Paths.js.map +1 -0
- package/lib/module/renderer/processors/Radius.js +9 -0
- package/lib/module/renderer/processors/Radius.js.map +1 -0
- package/lib/module/renderer/processors/Rects.js +55 -0
- package/lib/module/renderer/processors/Rects.js.map +1 -0
- package/lib/module/renderer/processors/Transform.js +41 -0
- package/lib/module/renderer/processors/Transform.js.map +1 -0
- package/lib/module/renderer/processors/index.js +11 -0
- package/lib/module/renderer/processors/index.js.map +1 -0
- package/lib/module/renderer/processors/math/Coordinates.js +19 -0
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/module/renderer/processors/math/Math.js +2 -0
- package/lib/module/renderer/processors/math/Math.js.map +1 -0
- package/lib/module/renderer/processors/math/Matrix3.js +71 -0
- package/lib/module/renderer/processors/math/Matrix3.js.map +1 -0
- package/lib/module/renderer/processors/math/Transforms.js +12 -0
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/module/renderer/processors/math/Vector.js +30 -0
- package/lib/module/renderer/processors/math/Vector.js.map +1 -0
- package/lib/module/renderer/processors/math/index.js +6 -0
- package/lib/module/renderer/processors/math/index.js.map +1 -0
- package/lib/module/renderer/typeddash.js +5 -0
- package/lib/module/renderer/typeddash.js.map +1 -0
- package/lib/module/skia/Canvas.js +14 -0
- package/lib/module/skia/Canvas.js.map +1 -0
- package/lib/module/skia/Color.js +48 -0
- package/lib/module/skia/Color.js.map +1 -0
- package/lib/module/skia/ColorFilter/ColorFilter.js +2 -0
- package/lib/module/skia/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/module/skia/ColorFilter/ColorFilterFactory.js +2 -0
- package/lib/module/skia/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/module/skia/ColorFilter/index.js +3 -0
- package/lib/module/skia/ColorFilter/index.js.map +1 -0
- package/lib/module/skia/ContourMeasure.js +2 -0
- package/lib/module/skia/ContourMeasure.js.map +1 -0
- package/lib/module/skia/Data/Data.js +35 -0
- package/lib/module/skia/Data/Data.js.map +1 -0
- package/lib/module/skia/Data/DataFactory.js +2 -0
- package/lib/module/skia/Data/DataFactory.js.map +1 -0
- package/lib/module/skia/Data/index.js +3 -0
- package/lib/module/skia/Data/index.js.map +1 -0
- package/lib/module/skia/Font/Font.js +68 -0
- package/lib/module/skia/Font/Font.js.map +1 -0
- package/lib/module/skia/Font/index.js +3 -0
- package/lib/module/skia/Font/index.js.map +1 -0
- package/lib/module/skia/Font/useFont.js +24 -0
- package/lib/module/skia/Font/useFont.js.map +1 -0
- package/lib/module/skia/FontMgr/FontMgr.js +2 -0
- package/lib/module/skia/FontMgr/FontMgr.js.map +1 -0
- package/lib/module/skia/FontMgr/FontMgrFactory.js +2 -0
- package/lib/module/skia/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/module/skia/FontMgr/index.js +2 -0
- package/lib/module/skia/FontMgr/index.js.map +1 -0
- package/lib/module/skia/Image/Image.js +23 -0
- package/lib/module/skia/Image/Image.js.map +1 -0
- package/lib/module/skia/Image/ImageFactory.js +37 -0
- package/lib/module/skia/Image/ImageFactory.js.map +1 -0
- package/lib/module/skia/Image/index.js +4 -0
- package/lib/module/skia/Image/index.js.map +1 -0
- package/lib/module/skia/Image/useImage.js +8 -0
- package/lib/module/skia/Image/useImage.js.map +1 -0
- package/lib/module/skia/ImageFilter/ImageFilter.js +11 -0
- package/lib/module/skia/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/module/skia/ImageFilter/ImageFilterFactory.js +9 -0
- package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/module/skia/ImageFilter/index.js +3 -0
- package/lib/module/skia/ImageFilter/index.js.map +1 -0
- package/lib/module/skia/JsiInstance.js +2 -0
- package/lib/module/skia/JsiInstance.js.map +1 -0
- package/lib/module/skia/MaskFilter.js +11 -0
- package/lib/module/skia/MaskFilter.js.map +1 -0
- package/lib/module/skia/Matrix.js +14 -0
- package/lib/module/skia/Matrix.js.map +1 -0
- package/lib/module/skia/NativeSetup.js +17 -0
- package/lib/module/skia/NativeSetup.js.map +1 -0
- package/lib/module/skia/Paint/BlendMode.js +61 -0
- package/lib/module/skia/Paint/BlendMode.js.map +1 -0
- package/lib/module/skia/Paint/Paint.js +25 -0
- package/lib/module/skia/Paint/Paint.js.map +1 -0
- package/lib/module/skia/Paint/index.js +4 -0
- package/lib/module/skia/Paint/index.js.map +1 -0
- package/lib/module/skia/Paint/usePaint.js +17 -0
- package/lib/module/skia/Paint/usePaint.js.map +1 -0
- package/lib/module/skia/Path/Path.js +24 -0
- package/lib/module/skia/Path/Path.js.map +1 -0
- package/lib/module/skia/Path/PathFactory.js +2 -0
- package/lib/module/skia/Path/PathFactory.js.map +1 -0
- package/lib/module/skia/Path/index.js +4 -0
- package/lib/module/skia/Path/index.js.map +1 -0
- package/lib/module/skia/Path/usePath.js +44 -0
- package/lib/module/skia/Path/usePath.js.map +1 -0
- package/lib/module/skia/PathEffect.js +9 -0
- package/lib/module/skia/PathEffect.js.map +1 -0
- package/lib/module/skia/Point.js +8 -0
- package/lib/module/skia/Point.js.map +1 -0
- package/lib/module/skia/RRect.js +2 -0
- package/lib/module/skia/RRect.js.map +1 -0
- package/lib/module/skia/RSXform.js +2 -0
- package/lib/module/skia/RSXform.js.map +1 -0
- package/lib/module/skia/Rect.js +2 -0
- package/lib/module/skia/Rect.js.map +1 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffect.js +2 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffectFactory.js +2 -0
- package/lib/module/skia/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/RuntimeEffect/index.js +3 -0
- package/lib/module/skia/RuntimeEffect/index.js.map +1 -0
- package/lib/module/skia/SVG/SVG.js +2 -0
- package/lib/module/skia/SVG/SVG.js.map +1 -0
- package/lib/module/skia/SVG/SVGFactory.js +2 -0
- package/lib/module/skia/SVG/SVGFactory.js.map +1 -0
- package/lib/module/skia/SVG/index.js +4 -0
- package/lib/module/skia/SVG/index.js.map +1 -0
- package/lib/module/skia/SVG/useSvg.js +4 -0
- package/lib/module/skia/SVG/useSvg.js.map +1 -0
- package/lib/module/skia/Shader/Shader.js +2 -0
- package/lib/module/skia/Shader/Shader.js.map +1 -0
- package/lib/module/skia/Shader/ShaderFactory.js +2 -0
- package/lib/module/skia/Shader/ShaderFactory.js.map +1 -0
- package/lib/module/skia/Shader/index.js +4 -0
- package/lib/module/skia/Shader/index.js.map +1 -0
- package/lib/module/skia/Shader/useShader.js +4 -0
- package/lib/module/skia/Shader/useShader.js.map +1 -0
- package/lib/module/skia/Skia.js +39 -0
- package/lib/module/skia/Skia.js.map +1 -0
- package/lib/module/skia/Surface/Surface.js +2 -0
- package/lib/module/skia/Surface/Surface.js.map +1 -0
- package/lib/module/skia/Surface/SurfaceFactory.js +2 -0
- package/lib/module/skia/Surface/SurfaceFactory.js.map +1 -0
- package/lib/module/skia/Surface/index.js +3 -0
- package/lib/module/skia/Surface/index.js.map +1 -0
- package/lib/module/skia/TextBlob.js +2 -0
- package/lib/module/skia/TextBlob.js.map +1 -0
- package/lib/module/skia/Typeface/Typeface.js +2 -0
- package/lib/module/skia/Typeface/Typeface.js.map +1 -0
- package/lib/module/skia/Typeface/TypefaceFactory.js +2 -0
- package/lib/module/skia/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/module/skia/Typeface/index.js +4 -0
- package/lib/module/skia/Typeface/index.js.map +1 -0
- package/lib/module/skia/Typeface/useTypeface.js +8 -0
- package/lib/module/skia/Typeface/useTypeface.js.map +1 -0
- package/lib/module/skia/Vertices/Vertices.js +8 -0
- package/lib/module/skia/Vertices/Vertices.js.map +1 -0
- package/lib/module/skia/Vertices/index.js +2 -0
- package/lib/module/skia/Vertices/index.js.map +1 -0
- package/lib/module/skia/index.js +23 -0
- package/lib/module/skia/index.js.map +1 -0
- package/lib/module/values/animation/decay/decay.js +33 -0
- package/lib/module/values/animation/decay/decay.js.map +1 -0
- package/lib/module/values/animation/decay/index.js +2 -0
- package/lib/module/values/animation/decay/index.js.map +1 -0
- package/lib/module/values/animation/decay/runDecay.js +38 -0
- package/lib/module/values/animation/decay/runDecay.js.map +1 -0
- package/lib/module/values/animation/decay/types.js +2 -0
- package/lib/module/values/animation/decay/types.js.map +1 -0
- package/lib/module/values/animation/functions/index.js +3 -0
- package/lib/module/values/animation/functions/index.js.map +1 -0
- package/lib/module/values/animation/functions/interpolate.js +132 -0
- package/lib/module/values/animation/functions/interpolate.js.map +1 -0
- package/lib/module/values/animation/functions/interpolateColors.js +32 -0
- package/lib/module/values/animation/functions/interpolateColors.js.map +1 -0
- package/lib/module/values/animation/index.js +5 -0
- package/lib/module/values/animation/index.js.map +1 -0
- package/lib/module/values/animation/spring/Spring.js +69 -0
- package/lib/module/values/animation/spring/Spring.js.map +1 -0
- package/lib/module/values/animation/spring/functions/index.js +2 -0
- package/lib/module/values/animation/spring/functions/index.js.map +1 -0
- package/lib/module/values/animation/spring/functions/spring.js +85 -0
- package/lib/module/values/animation/spring/functions/spring.js.map +1 -0
- package/lib/module/values/animation/spring/index.js +4 -0
- package/lib/module/values/animation/spring/index.js.map +1 -0
- package/lib/module/values/animation/spring/runSpring.js +21 -0
- package/lib/module/values/animation/spring/runSpring.js.map +1 -0
- package/lib/module/values/animation/spring/types.js +2 -0
- package/lib/module/values/animation/spring/types.js.map +1 -0
- package/lib/module/values/animation/spring/useSpring.js +13 -0
- package/lib/module/values/animation/spring/useSpring.js.map +1 -0
- package/lib/module/values/animation/timing/Easing.js +98 -0
- package/lib/module/values/animation/timing/Easing.js.map +1 -0
- package/lib/module/values/animation/timing/createTiming.js +49 -0
- package/lib/module/values/animation/timing/createTiming.js.map +1 -0
- package/lib/module/values/animation/timing/functions/bezier.js +141 -0
- package/lib/module/values/animation/timing/functions/bezier.js.map +1 -0
- package/lib/module/values/animation/timing/functions/getResolvedParams.js +48 -0
- package/lib/module/values/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/module/values/animation/timing/functions/index.js +5 -0
- package/lib/module/values/animation/timing/functions/index.js.map +1 -0
- package/lib/module/values/animation/timing/functions/timing.js +41 -0
- package/lib/module/values/animation/timing/functions/timing.js.map +1 -0
- package/lib/module/values/animation/timing/functions/types.js +2 -0
- package/lib/module/values/animation/timing/functions/types.js.map +1 -0
- package/lib/module/values/animation/timing/index.js +5 -0
- package/lib/module/values/animation/timing/index.js.map +1 -0
- package/lib/module/values/animation/timing/runTiming.js +23 -0
- package/lib/module/values/animation/timing/runTiming.js.map +1 -0
- package/lib/module/values/animation/timing/useLoop.js +13 -0
- package/lib/module/values/animation/timing/useLoop.js.map +1 -0
- package/lib/module/values/animation/timing/useTiming.js +54 -0
- package/lib/module/values/animation/timing/useTiming.js.map +1 -0
- package/lib/module/values/animation/types.js +2 -0
- package/lib/module/values/animation/types.js.map +1 -0
- package/lib/module/values/api.js +11 -0
- package/lib/module/values/api.js.map +1 -0
- package/lib/module/values/hooks/index.js +5 -0
- package/lib/module/values/hooks/index.js.map +1 -0
- package/lib/module/values/hooks/useClockValue.js +17 -0
- package/lib/module/values/hooks/useClockValue.js.map +1 -0
- package/lib/module/values/hooks/useDerivedValue.js +14 -0
- package/lib/module/values/hooks/useDerivedValue.js.map +1 -0
- package/lib/module/values/hooks/useValue.js +13 -0
- package/lib/module/values/hooks/useValue.js.map +1 -0
- package/lib/module/values/hooks/useValueEffect.js +13 -0
- package/lib/module/values/hooks/useValueEffect.js.map +1 -0
- package/lib/module/values/index.js +5 -0
- package/lib/module/values/index.js.map +1 -0
- package/lib/module/values/types.js +2 -0
- package/lib/module/values/types.js.map +1 -0
- package/lib/module/views/SkiaView.js +149 -0
- package/lib/module/views/SkiaView.js.map +1 -0
- package/lib/module/views/index.js +5 -0
- package/lib/module/views/index.js.map +1 -0
- package/lib/module/views/types.js +9 -0
- package/lib/module/views/types.js.map +1 -0
- package/lib/module/views/useDrawCallback.js +14 -0
- package/lib/module/views/useDrawCallback.js.map +1 -0
- package/lib/module/views/useTouchHandler.js +64 -0
- package/lib/module/views/useTouchHandler.js.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/scripts/install-npm.d.ts +1 -0
- package/lib/typescript/src/external/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/useSharedValueEffect.d.ts +11 -0
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/renderer/Canvas.d.ts +26 -0
- package/lib/typescript/src/renderer/DependencyManager.d.ts +21 -0
- package/lib/typescript/src/renderer/DrawingContext.d.ts +13 -0
- package/lib/typescript/src/renderer/HostConfig.d.ts +27 -0
- package/lib/typescript/src/renderer/components/Blend.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Compose.d.ts +6 -0
- package/lib/typescript/src/renderer/components/Defs.d.ts +5 -0
- package/lib/typescript/src/renderer/components/Group.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Mask.d.ts +15 -0
- package/lib/typescript/src/renderer/components/Paint.d.ts +9 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +8 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
- package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +10 -0
- package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +3 -0
- package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +7 -0
- package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +9 -0
- package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +23 -0
- package/lib/typescript/src/renderer/components/image/Image.d.ts +19 -0
- package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +7 -0
- package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +26 -0
- package/lib/typescript/src/renderer/components/image/index.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +15 -0
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +10 -0
- package/lib/typescript/src/renderer/components/imageFilters/DropShadow.d.ts +11 -0
- package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +12 -0
- package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +13 -0
- package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +14 -0
- package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -0
- package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/index.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +7 -0
- package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +8 -0
- package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +14 -0
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +9 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +13 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +10 -0
- package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +6 -0
- package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/Color.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +17 -0
- package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +8 -0
- package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +8 -0
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +12 -0
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +5 -0
- package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +16 -0
- package/lib/typescript/src/renderer/components/shapes/Line.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shapes/Path.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shapes/Points.d.ts +15 -0
- package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shapes/index.d.ts +12 -0
- package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +20 -0
- package/lib/typescript/src/renderer/components/text/Text.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
- package/lib/typescript/src/renderer/index.d.ts +3 -0
- package/lib/typescript/src/renderer/nodes/Container.d.ts +8 -0
- package/lib/typescript/src/renderer/nodes/Declaration.d.ts +19 -0
- package/lib/typescript/src/renderer/nodes/Drawing.d.ts +21 -0
- package/lib/typescript/src/renderer/nodes/Node.d.ts +23 -0
- package/lib/typescript/src/renderer/nodes/index.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +9 -0
- package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Circles.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/Clips.d.ts +5 -0
- package/lib/typescript/src/renderer/processors/Font.d.ts +12 -0
- package/lib/typescript/src/renderer/processors/Paint.d.ts +21 -0
- package/lib/typescript/src/renderer/processors/Paths.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Radius.d.ts +3 -0
- package/lib/typescript/src/renderer/processors/Rects.d.ts +61 -0
- package/lib/typescript/src/renderer/processors/Transform.d.ts +91 -0
- package/lib/typescript/src/renderer/processors/index.d.ts +10 -0
- package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/typescript/src/renderer/processors/math/Math.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/typescript/src/renderer/processors/math/Vector.d.ts +35 -0
- package/lib/typescript/src/renderer/processors/math/index.d.ts +5 -0
- package/lib/typescript/src/renderer/typeddash.d.ts +2 -0
- package/lib/typescript/src/skia/Canvas.d.ts +375 -0
- package/lib/typescript/src/skia/Color.d.ts +10 -0
- package/lib/typescript/src/skia/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/typescript/src/skia/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/typescript/src/skia/ColorFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/ContourMeasure.d.ts +42 -0
- package/lib/typescript/src/skia/Data/Data.d.ts +9 -0
- package/lib/typescript/src/skia/Data/DataFactory.d.ts +18 -0
- package/lib/typescript/src/skia/Data/index.d.ts +2 -0
- package/lib/typescript/src/skia/Font/Font.d.ts +187 -0
- package/lib/typescript/src/skia/Font/index.d.ts +2 -0
- package/lib/typescript/src/skia/Font/useFont.d.ts +6 -0
- package/lib/typescript/src/skia/FontMgr/FontMgr.d.ts +18 -0
- package/lib/typescript/src/skia/FontMgr/FontMgrFactory.d.ts +4 -0
- package/lib/typescript/src/skia/FontMgr/index.d.ts +1 -0
- package/lib/typescript/src/skia/Image/Image.d.ts +75 -0
- package/lib/typescript/src/skia/Image/ImageFactory.d.ts +62 -0
- package/lib/typescript/src/skia/Image/index.d.ts +3 -0
- package/lib/typescript/src/skia/Image/useImage.d.ts +5 -0
- package/lib/typescript/src/skia/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/typescript/src/skia/ImageFilter/ImageFilterFactory.d.ts +114 -0
- package/lib/typescript/src/skia/ImageFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/JsiInstance.d.ts +3 -0
- package/lib/typescript/src/skia/MaskFilter.d.ts +21 -0
- package/lib/typescript/src/skia/Matrix.d.ts +22 -0
- package/lib/typescript/src/skia/NativeSetup.d.ts +1 -0
- package/lib/typescript/src/skia/Paint/BlendMode.d.ts +58 -0
- package/lib/typescript/src/skia/Paint/Paint.d.ts +127 -0
- package/lib/typescript/src/skia/Paint/index.d.ts +3 -0
- package/lib/typescript/src/skia/Paint/usePaint.d.ts +6 -0
- package/lib/typescript/src/skia/Path/Path.d.ts +443 -0
- package/lib/typescript/src/skia/Path/PathFactory.d.ts +18 -0
- package/lib/typescript/src/skia/Path/index.d.ts +3 -0
- package/lib/typescript/src/skia/Path/usePath.d.ts +22 -0
- package/lib/typescript/src/skia/PathEffect.d.ts +75 -0
- package/lib/typescript/src/skia/Point.d.ts +9 -0
- package/lib/typescript/src/skia/RRect.d.ts +6 -0
- package/lib/typescript/src/skia/RSXform.d.ts +2 -0
- package/lib/typescript/src/skia/Rect.d.ts +6 -0
- package/lib/typescript/src/skia/RuntimeEffect/RuntimeEffect.d.ts +47 -0
- package/lib/typescript/src/skia/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/typescript/src/skia/RuntimeEffect/index.d.ts +2 -0
- package/lib/typescript/src/skia/SVG/SVG.d.ts +2 -0
- package/lib/typescript/src/skia/SVG/SVGFactory.d.ts +6 -0
- package/lib/typescript/src/skia/SVG/index.d.ts +3 -0
- package/lib/typescript/src/skia/SVG/useSvg.d.ts +2 -0
- package/lib/typescript/src/skia/Shader/Shader.d.ts +3 -0
- package/lib/typescript/src/skia/Shader/ShaderFactory.d.ts +104 -0
- package/lib/typescript/src/skia/Shader/index.d.ts +3 -0
- package/lib/typescript/src/skia/Shader/useShader.d.ts +1 -0
- package/lib/typescript/src/skia/Skia.d.ts +101 -0
- package/lib/typescript/src/skia/Surface/Surface.d.ts +25 -0
- package/lib/typescript/src/skia/Surface/SurfaceFactory.d.ts +11 -0
- package/lib/typescript/src/skia/Surface/index.d.ts +2 -0
- package/lib/typescript/src/skia/TextBlob.d.ts +44 -0
- package/lib/typescript/src/skia/Typeface/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/typescript/src/skia/Typeface/index.d.ts +3 -0
- package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +5 -0
- package/lib/typescript/src/skia/Vertices/Vertices.d.ts +17 -0
- package/lib/typescript/src/skia/Vertices/index.d.ts +1 -0
- package/lib/typescript/src/skia/index.d.ts +22 -0
- package/lib/typescript/src/values/animation/decay/decay.d.ts +2 -0
- package/lib/typescript/src/values/animation/decay/index.d.ts +1 -0
- package/lib/typescript/src/values/animation/decay/runDecay.d.ts +10 -0
- package/lib/typescript/src/values/animation/decay/types.d.ts +21 -0
- package/lib/typescript/src/values/animation/functions/index.d.ts +2 -0
- package/lib/typescript/src/values/animation/functions/interpolate.d.ts +7 -0
- package/lib/typescript/src/values/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/typescript/src/values/animation/index.d.ts +4 -0
- package/lib/typescript/src/values/animation/spring/Spring.d.ts +65 -0
- package/lib/typescript/src/values/animation/spring/functions/index.d.ts +1 -0
- package/lib/typescript/src/values/animation/spring/functions/spring.d.ts +10 -0
- package/lib/typescript/src/values/animation/spring/index.d.ts +3 -0
- package/lib/typescript/src/values/animation/spring/runSpring.d.ts +16 -0
- package/lib/typescript/src/values/animation/spring/types.d.ts +6 -0
- package/lib/typescript/src/values/animation/spring/useSpring.d.ts +10 -0
- package/lib/typescript/src/values/animation/timing/Easing.d.ts +19 -0
- package/lib/typescript/src/values/animation/timing/createTiming.d.ts +17 -0
- package/lib/typescript/src/values/animation/timing/functions/bezier.d.ts +1 -0
- package/lib/typescript/src/values/animation/timing/functions/getResolvedParams.d.ts +7 -0
- package/lib/typescript/src/values/animation/timing/functions/index.d.ts +4 -0
- package/lib/typescript/src/values/animation/timing/functions/timing.d.ts +17 -0
- package/lib/typescript/src/values/animation/timing/functions/types.d.ts +7 -0
- package/lib/typescript/src/values/animation/timing/index.d.ts +4 -0
- package/lib/typescript/src/values/animation/timing/runTiming.d.ts +16 -0
- package/lib/typescript/src/values/animation/timing/useLoop.d.ts +8 -0
- package/lib/typescript/src/values/animation/timing/useTiming.d.ts +10 -0
- package/lib/typescript/src/values/animation/types.d.ts +18 -0
- package/lib/typescript/src/values/api.d.ts +29 -0
- package/lib/typescript/src/values/hooks/index.d.ts +4 -0
- package/lib/typescript/src/values/hooks/useClockValue.d.ts +6 -0
- package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +8 -0
- package/lib/typescript/src/values/hooks/useValue.d.ts +7 -0
- package/lib/typescript/src/values/hooks/useValueEffect.d.ts +7 -0
- package/lib/typescript/src/values/index.d.ts +4 -0
- package/lib/typescript/src/values/types.d.ts +36 -0
- package/lib/typescript/src/views/SkiaView.d.ts +55 -0
- package/lib/typescript/src/views/index.d.ts +4 -0
- package/lib/typescript/src/views/types.d.ts +67 -0
- package/lib/typescript/src/views/useDrawCallback.d.ts +8 -0
- package/lib/typescript/src/views/useTouchHandler.d.ts +12 -0
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.a +0 -0
- package/libs/android/arm64-v8a/libsvg.a +0 -0
- package/libs/android/armeabi-v7a/libskia.a +0 -0
- package/libs/android/armeabi-v7a/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libskshaper.a +0 -0
- package/libs/android/x86/libsvg.a +0 -0
- package/libs/android/x86_64/libskia.a +0 -0
- package/libs/android/x86_64/libskshaper.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +42 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +42 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +42 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/package.json +100 -0
- package/react-native-skia.podspec +71 -0
- package/scripts/install-npm.js +23 -0
- package/src/external/index.ts +1 -0
- package/src/external/reanimated/index.ts +1 -0
- package/src/external/reanimated/useSharedValueEffect.ts +81 -0
- package/src/index.ts +7 -0
- package/src/renderer/Canvas.tsx +190 -0
- package/src/renderer/DependencyManager.tsx +59 -0
- package/src/renderer/DrawingContext.ts +16 -0
- package/src/renderer/HostConfig.ts +321 -0
- package/src/renderer/components/Blend.tsx +28 -0
- package/src/renderer/components/Compose.tsx +28 -0
- package/src/renderer/components/Defs.tsx +19 -0
- package/src/renderer/components/Group.tsx +61 -0
- package/src/renderer/components/Mask.tsx +43 -0
- package/src/renderer/components/Paint.tsx +59 -0
- package/src/renderer/components/backdrop/BackdropBlur.tsx +23 -0
- package/src/renderer/components/backdrop/BackdropFilter.tsx +47 -0
- package/src/renderer/components/backdrop/index.ts +2 -0
- package/src/renderer/components/colorFilters/BlendColor.tsx +30 -0
- package/src/renderer/components/colorFilters/Compose.ts +17 -0
- package/src/renderer/components/colorFilters/Lerp.tsx +27 -0
- package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +21 -0
- package/src/renderer/components/colorFilters/LumaColorFilter.tsx +19 -0
- package/src/renderer/components/colorFilters/Matrix.tsx +47 -0
- package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +21 -0
- package/src/renderer/components/colorFilters/index.ts +6 -0
- package/src/renderer/components/image/BoxFit.ts +131 -0
- package/src/renderer/components/image/Image.tsx +50 -0
- package/src/renderer/components/image/ImageSVG.tsx +24 -0
- package/src/renderer/components/image/ImageShader.tsx +81 -0
- package/src/renderer/components/image/index.ts +4 -0
- package/src/renderer/components/imageFilters/Blur.tsx +35 -0
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +35 -0
- package/src/renderer/components/imageFilters/DropShadow.tsx +31 -0
- package/src/renderer/components/imageFilters/InnerShadow.tsx +50 -0
- package/src/renderer/components/imageFilters/Morphology.tsx +34 -0
- package/src/renderer/components/imageFilters/Offset.tsx +27 -0
- package/src/renderer/components/imageFilters/getInput.ts +19 -0
- package/src/renderer/components/imageFilters/index.ts +6 -0
- package/src/renderer/components/index.ts +17 -0
- package/src/renderer/components/maskFilters/Blur.tsx +33 -0
- package/src/renderer/components/maskFilters/index.ts +1 -0
- package/src/renderer/components/pathEffects/Corner.tsx +32 -0
- package/src/renderer/components/pathEffects/Dash.tsx +28 -0
- package/src/renderer/components/pathEffects/Discrete.tsx +35 -0
- package/src/renderer/components/pathEffects/Line2D.tsx +34 -0
- package/src/renderer/components/pathEffects/Path1D.tsx +44 -0
- package/src/renderer/components/pathEffects/Path2D.tsx +36 -0
- package/src/renderer/components/pathEffects/Sum.tsx +20 -0
- package/src/renderer/components/pathEffects/index.ts +7 -0
- package/src/renderer/components/shaders/Color.tsx +18 -0
- package/src/renderer/components/shaders/FractalNoise.tsx +37 -0
- package/src/renderer/components/shaders/Gradient.ts +29 -0
- package/src/renderer/components/shaders/LinearGradient.tsx +33 -0
- package/src/renderer/components/shaders/RadialGradient.tsx +33 -0
- package/src/renderer/components/shaders/Shader.tsx +84 -0
- package/src/renderer/components/shaders/ShaderLib.ts +46 -0
- package/src/renderer/components/shaders/SweepGradient.tsx +36 -0
- package/src/renderer/components/shaders/Turbulence.tsx +37 -0
- package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +39 -0
- package/src/renderer/components/shaders/index.ts +9 -0
- package/src/renderer/components/shapes/Circle.tsx +25 -0
- package/src/renderer/components/shapes/DiffRect.tsx +21 -0
- package/src/renderer/components/shapes/Fill.tsx +15 -0
- package/src/renderer/components/shapes/FitBox.tsx +26 -0
- package/src/renderer/components/shapes/Line.tsx +16 -0
- package/src/renderer/components/shapes/Oval.tsx +25 -0
- package/src/renderer/components/shapes/Patch.tsx +68 -0
- package/src/renderer/components/shapes/Path.tsx +49 -0
- package/src/renderer/components/shapes/Points.tsx +28 -0
- package/src/renderer/components/shapes/Rect.tsx +20 -0
- package/src/renderer/components/shapes/RoundedRect.tsx +25 -0
- package/src/renderer/components/shapes/Vertices.tsx +44 -0
- package/src/renderer/components/shapes/index.ts +12 -0
- package/src/renderer/components/text/Glyphs.tsx +49 -0
- package/src/renderer/components/text/Text.tsx +32 -0
- package/src/renderer/components/text/TextBlob.tsx +26 -0
- package/src/renderer/components/text/TextPath.tsx +70 -0
- package/src/renderer/components/text/index.ts +4 -0
- package/src/renderer/index.ts +3 -0
- package/src/renderer/nodes/Container.tsx +17 -0
- package/src/renderer/nodes/Declaration.tsx +53 -0
- package/src/renderer/nodes/Drawing.tsx +76 -0
- package/src/renderer/nodes/Node.ts +60 -0
- package/src/renderer/nodes/index.ts +4 -0
- package/src/renderer/processors/Animations/Animations.ts +48 -0
- package/src/renderer/processors/Animations/index.ts +1 -0
- package/src/renderer/processors/Circles.ts +25 -0
- package/src/renderer/processors/Clips.ts +19 -0
- package/src/renderer/processors/Font.ts +25 -0
- package/src/renderer/processors/Paint.ts +105 -0
- package/src/renderer/processors/Paths.ts +19 -0
- package/src/renderer/processors/Radius.ts +11 -0
- package/src/renderer/processors/Rects.ts +86 -0
- package/src/renderer/processors/Transform.ts +44 -0
- package/src/renderer/processors/index.ts +10 -0
- package/src/renderer/processors/math/Coordinates.ts +32 -0
- package/src/renderer/processors/math/Math.ts +2 -0
- package/src/renderer/processors/math/Matrix3.ts +150 -0
- package/src/renderer/processors/math/Transforms.ts +7 -0
- package/src/renderer/processors/math/Vector.ts +37 -0
- package/src/renderer/processors/math/index.ts +5 -0
- package/src/renderer/typeddash.ts +5 -0
- package/src/skia/Canvas.ts +488 -0
- package/src/skia/Color.ts +51 -0
- package/src/skia/ColorFilter/ColorFilter.ts +7 -0
- package/src/skia/ColorFilter/ColorFilterFactory.ts +52 -0
- package/src/skia/ColorFilter/index.ts +2 -0
- package/src/skia/ContourMeasure.tsx +49 -0
- package/src/skia/Data/Data.ts +61 -0
- package/src/skia/Data/DataFactory.ts +19 -0
- package/src/skia/Data/index.ts +2 -0
- package/src/skia/Font/Font.ts +230 -0
- package/src/skia/Font/index.ts +2 -0
- package/src/skia/Font/useFont.ts +27 -0
- package/src/skia/FontMgr/FontMgr.ts +24 -0
- package/src/skia/FontMgr/FontMgrFactory.ts +17 -0
- package/src/skia/FontMgr/index.ts +1 -0
- package/src/skia/Image/Image.ts +96 -0
- package/src/skia/Image/ImageFactory.ts +78 -0
- package/src/skia/Image/index.ts +3 -0
- package/src/skia/Image/useImage.ts +9 -0
- package/src/skia/ImageFilter/ImageFilter.ts +31 -0
- package/src/skia/ImageFilter/ImageFilterFactory.ts +172 -0
- package/src/skia/ImageFilter/index.ts +2 -0
- package/src/skia/JsiInstance.ts +3 -0
- package/src/skia/MaskFilter.ts +27 -0
- package/src/skia/Matrix.ts +23 -0
- package/src/skia/NativeSetup.ts +18 -0
- package/src/skia/Paint/BlendMode.ts +61 -0
- package/src/skia/Paint/Paint.ts +153 -0
- package/src/skia/Paint/index.ts +3 -0
- package/src/skia/Paint/usePaint.ts +23 -0
- package/src/skia/Path/Path.ts +538 -0
- package/src/skia/Path/PathFactory.ts +20 -0
- package/src/skia/Path/index.ts +3 -0
- package/src/skia/Path/usePath.ts +54 -0
- package/src/skia/PathEffect.ts +93 -0
- package/src/skia/Point.ts +10 -0
- package/src/skia/RRect.ts +7 -0
- package/src/skia/RSXform.ts +3 -0
- package/src/skia/Rect.ts +6 -0
- package/src/skia/RuntimeEffect/RuntimeEffect.ts +63 -0
- package/src/skia/RuntimeEffect/RuntimeEffectFactory.ts +12 -0
- package/src/skia/RuntimeEffect/index.ts +2 -0
- package/src/skia/SVG/SVG.ts +3 -0
- package/src/skia/SVG/SVGFactory.ts +8 -0
- package/src/skia/SVG/index.ts +3 -0
- package/src/skia/SVG/useSvg.ts +6 -0
- package/src/skia/Shader/Shader.ts +6 -0
- package/src/skia/Shader/ShaderFactory.ts +169 -0
- package/src/skia/Shader/index.ts +3 -0
- package/src/skia/Shader/useShader.ts +6 -0
- package/src/skia/Skia.ts +120 -0
- package/src/skia/Surface/Surface.ts +27 -0
- package/src/skia/Surface/SurfaceFactory.ts +12 -0
- package/src/skia/Surface/index.ts +2 -0
- package/src/skia/TextBlob.ts +52 -0
- package/src/skia/Typeface/Typeface.ts +6 -0
- package/src/skia/Typeface/TypefaceFactory.ts +7 -0
- package/src/skia/Typeface/index.ts +3 -0
- package/src/skia/Typeface/useTypeface.ts +9 -0
- package/src/skia/Vertices/Vertices.tsx +20 -0
- package/src/skia/Vertices/index.ts +1 -0
- package/src/skia/index.ts +22 -0
- package/src/values/animation/decay/decay.ts +35 -0
- package/src/values/animation/decay/index.ts +1 -0
- package/src/values/animation/decay/runDecay.ts +37 -0
- package/src/values/animation/decay/types.ts +24 -0
- package/src/values/animation/functions/index.ts +2 -0
- package/src/values/animation/functions/interpolate.ts +169 -0
- package/src/values/animation/functions/interpolateColors.ts +62 -0
- package/src/values/animation/index.ts +4 -0
- package/src/values/animation/spring/Spring.ts +61 -0
- package/src/values/animation/spring/functions/index.ts +1 -0
- package/src/values/animation/spring/functions/spring.ts +86 -0
- package/src/values/animation/spring/index.ts +3 -0
- package/src/values/animation/spring/runSpring.ts +37 -0
- package/src/values/animation/spring/types.ts +6 -0
- package/src/values/animation/spring/useSpring.ts +28 -0
- package/src/values/animation/timing/Easing.ts +102 -0
- package/src/values/animation/timing/createTiming.ts +62 -0
- package/src/values/animation/timing/functions/__tests__/timing.spec.ts +29 -0
- package/src/values/animation/timing/functions/bezier.ts +165 -0
- package/src/values/animation/timing/functions/getResolvedParams.ts +50 -0
- package/src/values/animation/timing/functions/index.ts +4 -0
- package/src/values/animation/timing/functions/timing.ts +44 -0
- package/src/values/animation/timing/functions/types.ts +8 -0
- package/src/values/animation/timing/index.ts +4 -0
- package/src/values/animation/timing/runTiming.ts +33 -0
- package/src/values/animation/timing/useLoop.ts +18 -0
- package/src/values/animation/timing/useTiming.ts +68 -0
- package/src/values/animation/types.ts +23 -0
- package/src/values/api.ts +49 -0
- package/src/values/hooks/index.ts +4 -0
- package/src/values/hooks/useClockValue.ts +18 -0
- package/src/values/hooks/useDerivedValue.ts +18 -0
- package/src/values/hooks/useValue.ts +14 -0
- package/src/values/hooks/useValueEffect.ts +18 -0
- package/src/values/index.ts +4 -0
- package/src/values/types.ts +40 -0
- package/src/views/SkiaView.tsx +161 -0
- package/src/views/index.ts +4 -0
- package/src/views/types.ts +80 -0
- package/src/views/useDrawCallback.ts +19 -0
- package/src/views/useTouchHandler.ts +80 -0
@@ -0,0 +1,880 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2020 Google Inc.
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef GrDirectContext_DEFINED
|
9
|
+
#define GrDirectContext_DEFINED
|
10
|
+
|
11
|
+
#include "include/gpu/GrRecordingContext.h"
|
12
|
+
|
13
|
+
#include "include/gpu/GrBackendSurface.h"
|
14
|
+
|
15
|
+
// We shouldn't need this but currently Android is relying on this being include transitively.
|
16
|
+
#include "include/core/SkUnPreMultiply.h"
|
17
|
+
|
18
|
+
class GrAtlasManager;
|
19
|
+
class GrBackendSemaphore;
|
20
|
+
class GrClientMappedBufferManager;
|
21
|
+
class GrDirectContextPriv;
|
22
|
+
class GrContextThreadSafeProxy;
|
23
|
+
struct GrD3DBackendContext;
|
24
|
+
class GrFragmentProcessor;
|
25
|
+
class GrGpu;
|
26
|
+
struct GrGLInterface;
|
27
|
+
struct GrMtlBackendContext;
|
28
|
+
struct GrMockOptions;
|
29
|
+
class GrPath;
|
30
|
+
class GrResourceCache;
|
31
|
+
class GrResourceProvider;
|
32
|
+
class GrStrikeCache;
|
33
|
+
class GrSurfaceProxy;
|
34
|
+
class GrSwizzle;
|
35
|
+
class GrTextureProxy;
|
36
|
+
struct GrVkBackendContext;
|
37
|
+
|
38
|
+
class SkImage;
|
39
|
+
class SkString;
|
40
|
+
class SkSurfaceCharacterization;
|
41
|
+
class SkSurfaceProps;
|
42
|
+
class SkTaskGroup;
|
43
|
+
class SkTraceMemoryDump;
|
44
|
+
|
45
|
+
namespace skgpu { namespace v1 { class SmallPathAtlasMgr; }}
|
46
|
+
|
47
|
+
class SK_API GrDirectContext : public GrRecordingContext {
|
48
|
+
public:
|
49
|
+
#ifdef SK_GL
|
50
|
+
/**
|
51
|
+
* Creates a GrDirectContext for a backend context. If no GrGLInterface is provided then the
|
52
|
+
* result of GrGLMakeNativeInterface() is used if it succeeds.
|
53
|
+
*/
|
54
|
+
static sk_sp<GrDirectContext> MakeGL(sk_sp<const GrGLInterface>, const GrContextOptions&);
|
55
|
+
static sk_sp<GrDirectContext> MakeGL(sk_sp<const GrGLInterface>);
|
56
|
+
static sk_sp<GrDirectContext> MakeGL(const GrContextOptions&);
|
57
|
+
static sk_sp<GrDirectContext> MakeGL();
|
58
|
+
#endif
|
59
|
+
|
60
|
+
#ifdef SK_VULKAN
|
61
|
+
/**
|
62
|
+
* The Vulkan context (VkQueue, VkDevice, VkInstance) must be kept alive until the returned
|
63
|
+
* GrDirectContext is destroyed. This also means that any objects created with this
|
64
|
+
* GrDirectContext (e.g. SkSurfaces, SkImages, etc.) must also be released as they may hold
|
65
|
+
* refs on the GrDirectContext. Once all these objects and the GrDirectContext are released,
|
66
|
+
* then it is safe to delete the vulkan objects.
|
67
|
+
*/
|
68
|
+
static sk_sp<GrDirectContext> MakeVulkan(const GrVkBackendContext&, const GrContextOptions&);
|
69
|
+
static sk_sp<GrDirectContext> MakeVulkan(const GrVkBackendContext&);
|
70
|
+
#endif
|
71
|
+
|
72
|
+
#ifdef SK_METAL
|
73
|
+
/**
|
74
|
+
* Makes a GrDirectContext which uses Metal as the backend. The GrMtlBackendContext contains a
|
75
|
+
* MTLDevice and MTLCommandQueue which should be used by the backend. These objects must
|
76
|
+
* have their own ref which will be released when the GrMtlBackendContext is destroyed.
|
77
|
+
* Ganesh will take its own ref on the objects which will be released when the GrDirectContext
|
78
|
+
* is destroyed.
|
79
|
+
*/
|
80
|
+
static sk_sp<GrDirectContext> MakeMetal(const GrMtlBackendContext&, const GrContextOptions&);
|
81
|
+
static sk_sp<GrDirectContext> MakeMetal(const GrMtlBackendContext&);
|
82
|
+
/**
|
83
|
+
* Deprecated.
|
84
|
+
*
|
85
|
+
* Makes a GrDirectContext which uses Metal as the backend. The device parameter is an
|
86
|
+
* MTLDevice and queue is an MTLCommandQueue which should be used by the backend. These objects
|
87
|
+
* must have a ref on them that can be transferred to Ganesh, which will release the ref
|
88
|
+
* when the GrDirectContext is destroyed.
|
89
|
+
*/
|
90
|
+
static sk_sp<GrDirectContext> MakeMetal(void* device, void* queue, const GrContextOptions&);
|
91
|
+
static sk_sp<GrDirectContext> MakeMetal(void* device, void* queue);
|
92
|
+
#endif
|
93
|
+
|
94
|
+
#ifdef SK_DIRECT3D
|
95
|
+
/**
|
96
|
+
* Makes a GrDirectContext which uses Direct3D as the backend. The Direct3D context
|
97
|
+
* must be kept alive until the returned GrDirectContext is first destroyed or abandoned.
|
98
|
+
*/
|
99
|
+
static sk_sp<GrDirectContext> MakeDirect3D(const GrD3DBackendContext&, const GrContextOptions&);
|
100
|
+
static sk_sp<GrDirectContext> MakeDirect3D(const GrD3DBackendContext&);
|
101
|
+
#endif
|
102
|
+
|
103
|
+
#ifdef SK_DAWN
|
104
|
+
static sk_sp<GrDirectContext> MakeDawn(const wgpu::Device&,
|
105
|
+
const GrContextOptions&);
|
106
|
+
static sk_sp<GrDirectContext> MakeDawn(const wgpu::Device&);
|
107
|
+
#endif
|
108
|
+
|
109
|
+
static sk_sp<GrDirectContext> MakeMock(const GrMockOptions*, const GrContextOptions&);
|
110
|
+
static sk_sp<GrDirectContext> MakeMock(const GrMockOptions*);
|
111
|
+
|
112
|
+
~GrDirectContext() override;
|
113
|
+
|
114
|
+
/**
|
115
|
+
* The context normally assumes that no outsider is setting state
|
116
|
+
* within the underlying 3D API's context/device/whatever. This call informs
|
117
|
+
* the context that the state was modified and it should resend. Shouldn't
|
118
|
+
* be called frequently for good performance.
|
119
|
+
* The flag bits, state, is dependent on which backend is used by the
|
120
|
+
* context, either GL or D3D (possible in future).
|
121
|
+
*/
|
122
|
+
void resetContext(uint32_t state = kAll_GrBackendState);
|
123
|
+
|
124
|
+
/**
|
125
|
+
* If the backend is GrBackendApi::kOpenGL, then all texture unit/target combinations for which
|
126
|
+
* the context has modified the bound texture will have texture id 0 bound. This does not
|
127
|
+
* flush the context. Calling resetContext() does not change the set that will be bound
|
128
|
+
* to texture id 0 on the next call to resetGLTextureBindings(). After this is called
|
129
|
+
* all unit/target combinations are considered to have unmodified bindings until the context
|
130
|
+
* subsequently modifies them (meaning if this is called twice in a row with no intervening
|
131
|
+
* context usage then the second call is a no-op.)
|
132
|
+
*/
|
133
|
+
void resetGLTextureBindings();
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Abandons all GPU resources and assumes the underlying backend 3D API context is no longer
|
137
|
+
* usable. Call this if you have lost the associated GPU context, and thus internal texture,
|
138
|
+
* buffer, etc. references/IDs are now invalid. Calling this ensures that the destructors of the
|
139
|
+
* context and any of its created resource objects will not make backend 3D API calls. Content
|
140
|
+
* rendered but not previously flushed may be lost. After this function is called all subsequent
|
141
|
+
* calls on the context will fail or be no-ops.
|
142
|
+
*
|
143
|
+
* The typical use case for this function is that the underlying 3D context was lost and further
|
144
|
+
* API calls may crash.
|
145
|
+
*
|
146
|
+
* For Vulkan, even if the device becomes lost, the VkQueue, VkDevice, or VkInstance used to
|
147
|
+
* create the context must be kept alive even after abandoning the context. Those objects must
|
148
|
+
* live for the lifetime of the context object itself. The reason for this is so that
|
149
|
+
* we can continue to delete any outstanding GrBackendTextures/RenderTargets which must be
|
150
|
+
* cleaned up even in a device lost state.
|
151
|
+
*/
|
152
|
+
void abandonContext() override;
|
153
|
+
|
154
|
+
/**
|
155
|
+
* Returns true if the context was abandoned or if the if the backend specific context has
|
156
|
+
* gotten into an unrecoverarble, lost state (e.g. in Vulkan backend if we've gotten a
|
157
|
+
* VK_ERROR_DEVICE_LOST). If the backend context is lost, this call will also abandon this
|
158
|
+
* context.
|
159
|
+
*/
|
160
|
+
bool abandoned() override;
|
161
|
+
|
162
|
+
// TODO: Remove this from public after migrating Chrome.
|
163
|
+
sk_sp<GrContextThreadSafeProxy> threadSafeProxy();
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Checks if the underlying 3D API reported an out-of-memory error. If this returns true it is
|
167
|
+
* reset and will return false until another out-of-memory error is reported by the 3D API. If
|
168
|
+
* the context is abandoned then this will report false.
|
169
|
+
*
|
170
|
+
* Currently this is implemented for:
|
171
|
+
*
|
172
|
+
* OpenGL [ES] - Note that client calls to glGetError() may swallow GL_OUT_OF_MEMORY errors and
|
173
|
+
* therefore hide the error from Skia. Also, it is not advised to use this in combination with
|
174
|
+
* enabling GrContextOptions::fSkipGLErrorChecks. That option may prevent the context from ever
|
175
|
+
* checking the GL context for OOM.
|
176
|
+
*
|
177
|
+
* Vulkan - Reports true if VK_ERROR_OUT_OF_HOST_MEMORY or VK_ERROR_OUT_OF_DEVICE_MEMORY has
|
178
|
+
* occurred.
|
179
|
+
*/
|
180
|
+
bool oomed();
|
181
|
+
|
182
|
+
/**
|
183
|
+
* This is similar to abandonContext() however the underlying 3D context is not yet lost and
|
184
|
+
* the context will cleanup all allocated resources before returning. After returning it will
|
185
|
+
* assume that the underlying context may no longer be valid.
|
186
|
+
*
|
187
|
+
* The typical use case for this function is that the client is going to destroy the 3D context
|
188
|
+
* but can't guarantee that context will be destroyed first (perhaps because it may be ref'ed
|
189
|
+
* elsewhere by either the client or Skia objects).
|
190
|
+
*
|
191
|
+
* For Vulkan, even if the device becomes lost, the VkQueue, VkDevice, or VkInstance used to
|
192
|
+
* create the context must be alive before calling releaseResourcesAndAbandonContext.
|
193
|
+
*/
|
194
|
+
void releaseResourcesAndAbandonContext();
|
195
|
+
|
196
|
+
///////////////////////////////////////////////////////////////////////////
|
197
|
+
// Resource Cache
|
198
|
+
|
199
|
+
/** DEPRECATED
|
200
|
+
* Return the current GPU resource cache limits.
|
201
|
+
*
|
202
|
+
* @param maxResources If non-null, will be set to -1.
|
203
|
+
* @param maxResourceBytes If non-null, returns maximum number of bytes of
|
204
|
+
* video memory that can be held in the cache.
|
205
|
+
*/
|
206
|
+
void getResourceCacheLimits(int* maxResources, size_t* maxResourceBytes) const;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* Return the current GPU resource cache limit in bytes.
|
210
|
+
*/
|
211
|
+
size_t getResourceCacheLimit() const;
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Gets the current GPU resource cache usage.
|
215
|
+
*
|
216
|
+
* @param resourceCount If non-null, returns the number of resources that are held in the
|
217
|
+
* cache.
|
218
|
+
* @param maxResourceBytes If non-null, returns the total number of bytes of video memory held
|
219
|
+
* in the cache.
|
220
|
+
*/
|
221
|
+
void getResourceCacheUsage(int* resourceCount, size_t* resourceBytes) const;
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Gets the number of bytes in the cache consumed by purgeable (e.g. unlocked) resources.
|
225
|
+
*/
|
226
|
+
size_t getResourceCachePurgeableBytes() const;
|
227
|
+
|
228
|
+
/** DEPRECATED
|
229
|
+
* Specify the GPU resource cache limits. If the current cache exceeds the maxResourceBytes
|
230
|
+
* limit, it will be purged (LRU) to keep the cache within the limit.
|
231
|
+
*
|
232
|
+
* @param maxResources Unused.
|
233
|
+
* @param maxResourceBytes The maximum number of bytes of video memory
|
234
|
+
* that can be held in the cache.
|
235
|
+
*/
|
236
|
+
void setResourceCacheLimits(int maxResources, size_t maxResourceBytes);
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Specify the GPU resource cache limit. If the cache currently exceeds this limit,
|
240
|
+
* it will be purged (LRU) to keep the cache within the limit.
|
241
|
+
*
|
242
|
+
* @param maxResourceBytes The maximum number of bytes of video memory
|
243
|
+
* that can be held in the cache.
|
244
|
+
*/
|
245
|
+
void setResourceCacheLimit(size_t maxResourceBytes);
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Frees GPU created by the context. Can be called to reduce GPU memory
|
249
|
+
* pressure.
|
250
|
+
*/
|
251
|
+
void freeGpuResources();
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Purge GPU resources that haven't been used in the past 'msNotUsed' milliseconds or are
|
255
|
+
* otherwise marked for deletion, regardless of whether the context is under budget.
|
256
|
+
*
|
257
|
+
* If 'scratchResourcesOnly' is true all unlocked scratch resources older than 'msNotUsed' will
|
258
|
+
* be purged but the unlocked resources with persistent data will remain. If
|
259
|
+
* 'scratchResourcesOnly' is false then all unlocked resources older than 'msNotUsed' will be
|
260
|
+
* purged.
|
261
|
+
*
|
262
|
+
* @param msNotUsed Only unlocked resources not used in these last milliseconds
|
263
|
+
* will be cleaned up.
|
264
|
+
* @param scratchResourcesOnly If true only unlocked scratch resources will be purged.
|
265
|
+
*/
|
266
|
+
void performDeferredCleanup(std::chrono::milliseconds msNotUsed,
|
267
|
+
bool scratchResourcesOnly=false);
|
268
|
+
|
269
|
+
// Temporary compatibility API for Android.
|
270
|
+
void purgeResourcesNotUsedInMs(std::chrono::milliseconds msNotUsed) {
|
271
|
+
this->performDeferredCleanup(msNotUsed);
|
272
|
+
}
|
273
|
+
|
274
|
+
/**
|
275
|
+
* Purge unlocked resources from the cache until the the provided byte count has been reached
|
276
|
+
* or we have purged all unlocked resources. The default policy is to purge in LRU order, but
|
277
|
+
* can be overridden to prefer purging scratch resources (in LRU order) prior to purging other
|
278
|
+
* resource types.
|
279
|
+
*
|
280
|
+
* @param maxBytesToPurge the desired number of bytes to be purged.
|
281
|
+
* @param preferScratchResources If true scratch resources will be purged prior to other
|
282
|
+
* resource types.
|
283
|
+
*/
|
284
|
+
void purgeUnlockedResources(size_t bytesToPurge, bool preferScratchResources);
|
285
|
+
|
286
|
+
/**
|
287
|
+
* This entry point is intended for instances where an app has been backgrounded or
|
288
|
+
* suspended.
|
289
|
+
* If 'scratchResourcesOnly' is true all unlocked scratch resources will be purged but the
|
290
|
+
* unlocked resources with persistent data will remain. If 'scratchResourcesOnly' is false
|
291
|
+
* then all unlocked resources will be purged.
|
292
|
+
* In either case, after the unlocked resources are purged a separate pass will be made to
|
293
|
+
* ensure that resource usage is under budget (i.e., even if 'scratchResourcesOnly' is true
|
294
|
+
* some resources with persistent data may be purged to be under budget).
|
295
|
+
*
|
296
|
+
* @param scratchResourcesOnly If true only unlocked scratch resources will be purged prior
|
297
|
+
* enforcing the budget requirements.
|
298
|
+
*/
|
299
|
+
void purgeUnlockedResources(bool scratchResourcesOnly);
|
300
|
+
|
301
|
+
/**
|
302
|
+
* Gets the maximum supported texture size.
|
303
|
+
*/
|
304
|
+
using GrRecordingContext::maxTextureSize;
|
305
|
+
|
306
|
+
/**
|
307
|
+
* Gets the maximum supported render target size.
|
308
|
+
*/
|
309
|
+
using GrRecordingContext::maxRenderTargetSize;
|
310
|
+
|
311
|
+
/**
|
312
|
+
* Can a SkImage be created with the given color type.
|
313
|
+
*/
|
314
|
+
using GrRecordingContext::colorTypeSupportedAsImage;
|
315
|
+
|
316
|
+
/**
|
317
|
+
* Can a SkSurface be created with the given color type. To check whether MSAA is supported
|
318
|
+
* use maxSurfaceSampleCountForColorType().
|
319
|
+
*/
|
320
|
+
using GrRecordingContext::colorTypeSupportedAsSurface;
|
321
|
+
|
322
|
+
/**
|
323
|
+
* Gets the maximum supported sample count for a color type. 1 is returned if only non-MSAA
|
324
|
+
* rendering is supported for the color type. 0 is returned if rendering to this color type
|
325
|
+
* is not supported at all.
|
326
|
+
*/
|
327
|
+
using GrRecordingContext::maxSurfaceSampleCountForColorType;
|
328
|
+
|
329
|
+
///////////////////////////////////////////////////////////////////////////
|
330
|
+
// Misc.
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Inserts a list of GPU semaphores that the current GPU-backed API must wait on before
|
334
|
+
* executing any more commands on the GPU. If this call returns false, then the GPU back-end
|
335
|
+
* will not wait on any passed in semaphores, and the client will still own the semaphores,
|
336
|
+
* regardless of the value of deleteSemaphoresAfterWait.
|
337
|
+
*
|
338
|
+
* If deleteSemaphoresAfterWait is false then Skia will not delete the semaphores. In this case
|
339
|
+
* it is the client's responsibility to not destroy or attempt to reuse the semaphores until it
|
340
|
+
* knows that Skia has finished waiting on them. This can be done by using finishedProcs on
|
341
|
+
* flush calls.
|
342
|
+
*/
|
343
|
+
bool wait(int numSemaphores, const GrBackendSemaphore* waitSemaphores,
|
344
|
+
bool deleteSemaphoresAfterWait = true);
|
345
|
+
|
346
|
+
/**
|
347
|
+
* Call to ensure all drawing to the context has been flushed and submitted to the underlying 3D
|
348
|
+
* API. This is equivalent to calling GrContext::flush with a default GrFlushInfo followed by
|
349
|
+
* GrContext::submit(syncCpu).
|
350
|
+
*/
|
351
|
+
void flushAndSubmit(bool syncCpu = false) {
|
352
|
+
this->flush(GrFlushInfo());
|
353
|
+
this->submit(syncCpu);
|
354
|
+
}
|
355
|
+
|
356
|
+
/**
|
357
|
+
* Call to ensure all drawing to the context has been flushed to underlying 3D API specific
|
358
|
+
* objects. A call to `submit` is always required to ensure work is actually sent to
|
359
|
+
* the gpu. Some specific API details:
|
360
|
+
* GL: Commands are actually sent to the driver, but glFlush is never called. Thus some
|
361
|
+
* sync objects from the flush will not be valid until a submission occurs.
|
362
|
+
*
|
363
|
+
* Vulkan/Metal/D3D/Dawn: Commands are recorded to the backend APIs corresponding command
|
364
|
+
* buffer or encoder objects. However, these objects are not sent to the gpu until a
|
365
|
+
* submission occurs.
|
366
|
+
*
|
367
|
+
* If the return is GrSemaphoresSubmitted::kYes, only initialized GrBackendSemaphores will be
|
368
|
+
* submitted to the gpu during the next submit call (it is possible Skia failed to create a
|
369
|
+
* subset of the semaphores). The client should not wait on these semaphores until after submit
|
370
|
+
* has been called, and must keep them alive until then. If this call returns
|
371
|
+
* GrSemaphoresSubmitted::kNo, the GPU backend will not submit any semaphores to be signaled on
|
372
|
+
* the GPU. Thus the client should not have the GPU wait on any of the semaphores passed in with
|
373
|
+
* the GrFlushInfo. Regardless of whether semaphores were submitted to the GPU or not, the
|
374
|
+
* client is still responsible for deleting any initialized semaphores.
|
375
|
+
* Regardleess of semaphore submission the context will still be flushed. It should be
|
376
|
+
* emphasized that a return value of GrSemaphoresSubmitted::kNo does not mean the flush did not
|
377
|
+
* happen. It simply means there were no semaphores submitted to the GPU. A caller should only
|
378
|
+
* take this as a failure if they passed in semaphores to be submitted.
|
379
|
+
*/
|
380
|
+
GrSemaphoresSubmitted flush(const GrFlushInfo& info);
|
381
|
+
|
382
|
+
void flush() { this->flush({}); }
|
383
|
+
|
384
|
+
/**
|
385
|
+
* Submit outstanding work to the gpu from all previously un-submitted flushes. The return
|
386
|
+
* value of the submit will indicate whether or not the submission to the GPU was successful.
|
387
|
+
*
|
388
|
+
* If the call returns true, all previously passed in semaphores in flush calls will have been
|
389
|
+
* submitted to the GPU and they can safely be waited on. The caller should wait on those
|
390
|
+
* semaphores or perform some other global synchronization before deleting the semaphores.
|
391
|
+
*
|
392
|
+
* If it returns false, then those same semaphores will not have been submitted and we will not
|
393
|
+
* try to submit them again. The caller is free to delete the semaphores at any time.
|
394
|
+
*
|
395
|
+
* If the syncCpu flag is true this function will return once the gpu has finished with all
|
396
|
+
* submitted work.
|
397
|
+
*/
|
398
|
+
bool submit(bool syncCpu = false);
|
399
|
+
|
400
|
+
/**
|
401
|
+
* Checks whether any asynchronous work is complete and if so calls related callbacks.
|
402
|
+
*/
|
403
|
+
void checkAsyncWorkCompletion();
|
404
|
+
|
405
|
+
/** Enumerates all cached GPU resources and dumps their memory to traceMemoryDump. */
|
406
|
+
// Chrome is using this!
|
407
|
+
void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const;
|
408
|
+
|
409
|
+
bool supportsDistanceFieldText() const;
|
410
|
+
|
411
|
+
void storeVkPipelineCacheData();
|
412
|
+
|
413
|
+
/**
|
414
|
+
* Retrieve the default GrBackendFormat for a given SkColorType and renderability.
|
415
|
+
* It is guaranteed that this backend format will be the one used by the following
|
416
|
+
* SkColorType and SkSurfaceCharacterization-based createBackendTexture methods.
|
417
|
+
*
|
418
|
+
* The caller should check that the returned format is valid.
|
419
|
+
*/
|
420
|
+
using GrRecordingContext::defaultBackendFormat;
|
421
|
+
|
422
|
+
/**
|
423
|
+
* The explicitly allocated backend texture API allows clients to use Skia to create backend
|
424
|
+
* objects outside of Skia proper (i.e., Skia's caching system will not know about them.)
|
425
|
+
*
|
426
|
+
* It is the client's responsibility to delete all these objects (using deleteBackendTexture)
|
427
|
+
* before deleting the context used to create them. If the backend is Vulkan, the textures must
|
428
|
+
* be deleted before abandoning the context as well. Additionally, clients should only delete
|
429
|
+
* these objects on the thread for which that context is active.
|
430
|
+
*
|
431
|
+
* The client is responsible for ensuring synchronization between different uses
|
432
|
+
* of the backend object (i.e., wrapping it in a surface, rendering to it, deleting the
|
433
|
+
* surface, rewrapping it in a image and drawing the image will require explicit
|
434
|
+
* synchronization on the client's part).
|
435
|
+
*/
|
436
|
+
|
437
|
+
/**
|
438
|
+
* If possible, create an uninitialized backend texture. The client should ensure that the
|
439
|
+
* returned backend texture is valid.
|
440
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
441
|
+
* VK_IMAGE_LAYOUT_UNDEFINED.
|
442
|
+
*/
|
443
|
+
GrBackendTexture createBackendTexture(int width, int height,
|
444
|
+
const GrBackendFormat&,
|
445
|
+
GrMipmapped,
|
446
|
+
GrRenderable,
|
447
|
+
GrProtected = GrProtected::kNo);
|
448
|
+
|
449
|
+
/**
|
450
|
+
* If possible, create an uninitialized backend texture. The client should ensure that the
|
451
|
+
* returned backend texture is valid.
|
452
|
+
* If successful, the created backend texture will be compatible with the provided
|
453
|
+
* SkColorType.
|
454
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
455
|
+
* VK_IMAGE_LAYOUT_UNDEFINED.
|
456
|
+
*/
|
457
|
+
GrBackendTexture createBackendTexture(int width, int height,
|
458
|
+
SkColorType,
|
459
|
+
GrMipmapped,
|
460
|
+
GrRenderable,
|
461
|
+
GrProtected = GrProtected::kNo);
|
462
|
+
|
463
|
+
/**
|
464
|
+
* If possible, create a backend texture initialized to a particular color. The client should
|
465
|
+
* ensure that the returned backend texture is valid. The client can pass in a finishedProc
|
466
|
+
* to be notified when the data has been uploaded by the gpu and the texture can be deleted. The
|
467
|
+
* client is required to call `submit` to send the upload work to the gpu. The
|
468
|
+
* finishedProc will always get called even if we failed to create the GrBackendTexture.
|
469
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
470
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
471
|
+
*/
|
472
|
+
GrBackendTexture createBackendTexture(int width, int height,
|
473
|
+
const GrBackendFormat&,
|
474
|
+
const SkColor4f& color,
|
475
|
+
GrMipmapped,
|
476
|
+
GrRenderable,
|
477
|
+
GrProtected = GrProtected::kNo,
|
478
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
479
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
480
|
+
|
481
|
+
/**
|
482
|
+
* If possible, create a backend texture initialized to a particular color. The client should
|
483
|
+
* ensure that the returned backend texture is valid. The client can pass in a finishedProc
|
484
|
+
* to be notified when the data has been uploaded by the gpu and the texture can be deleted. The
|
485
|
+
* client is required to call `submit` to send the upload work to the gpu. The
|
486
|
+
* finishedProc will always get called even if we failed to create the GrBackendTexture.
|
487
|
+
* If successful, the created backend texture will be compatible with the provided
|
488
|
+
* SkColorType.
|
489
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
490
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
491
|
+
*/
|
492
|
+
GrBackendTexture createBackendTexture(int width, int height,
|
493
|
+
SkColorType,
|
494
|
+
const SkColor4f& color,
|
495
|
+
GrMipmapped,
|
496
|
+
GrRenderable,
|
497
|
+
GrProtected = GrProtected::kNo,
|
498
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
499
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
500
|
+
|
501
|
+
/**
|
502
|
+
* If possible, create a backend texture initialized with the provided pixmap data. The client
|
503
|
+
* should ensure that the returned backend texture is valid. The client can pass in a
|
504
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
505
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
506
|
+
* The finishedProc will always get called even if we failed to create the GrBackendTexture.
|
507
|
+
* If successful, the created backend texture will be compatible with the provided
|
508
|
+
* pixmap(s). Compatible, in this case, means that the backend format will be the result
|
509
|
+
* of calling defaultBackendFormat on the base pixmap's colortype. The src data can be deleted
|
510
|
+
* when this call returns.
|
511
|
+
* If numLevels is 1 a non-mipMapped texture will result. If a mipMapped texture is desired
|
512
|
+
* the data for all the mipmap levels must be provided. In the mipmapped case all the
|
513
|
+
* colortypes of the provided pixmaps must be the same. Additionally, all the miplevels
|
514
|
+
* must be sized correctly (please see SkMipmap::ComputeLevelSize and ComputeLevelCount). The
|
515
|
+
* GrSurfaceOrigin controls whether the pixmap data is vertically flipped in the texture.
|
516
|
+
* Note: the pixmap's alphatypes and colorspaces are ignored.
|
517
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
518
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
519
|
+
*/
|
520
|
+
GrBackendTexture createBackendTexture(const SkPixmap srcData[],
|
521
|
+
int numLevels,
|
522
|
+
GrSurfaceOrigin,
|
523
|
+
GrRenderable,
|
524
|
+
GrProtected,
|
525
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
526
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
527
|
+
|
528
|
+
/**
|
529
|
+
* Convenience version createBackendTexture() that takes just a base level pixmap.
|
530
|
+
*/
|
531
|
+
GrBackendTexture createBackendTexture(const SkPixmap& srcData,
|
532
|
+
GrSurfaceOrigin textureOrigin,
|
533
|
+
GrRenderable renderable,
|
534
|
+
GrProtected isProtected,
|
535
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
536
|
+
GrGpuFinishedContext finishedContext = nullptr) {
|
537
|
+
return this->createBackendTexture(&srcData, 1, textureOrigin, renderable, isProtected,
|
538
|
+
finishedProc, finishedContext);
|
539
|
+
}
|
540
|
+
|
541
|
+
// Deprecated versions that do not take origin and assume top-left.
|
542
|
+
GrBackendTexture createBackendTexture(const SkPixmap srcData[],
|
543
|
+
int numLevels,
|
544
|
+
GrRenderable renderable,
|
545
|
+
GrProtected isProtected,
|
546
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
547
|
+
GrGpuFinishedContext finishedContext = nullptr) {
|
548
|
+
return this->createBackendTexture(srcData,
|
549
|
+
numLevels,
|
550
|
+
kTopLeft_GrSurfaceOrigin,
|
551
|
+
renderable,
|
552
|
+
isProtected,
|
553
|
+
finishedProc,
|
554
|
+
finishedContext);
|
555
|
+
}
|
556
|
+
GrBackendTexture createBackendTexture(const SkPixmap& srcData,
|
557
|
+
GrRenderable renderable,
|
558
|
+
GrProtected isProtected,
|
559
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
560
|
+
GrGpuFinishedContext finishedContext = nullptr) {
|
561
|
+
return this->createBackendTexture(&srcData,
|
562
|
+
1,
|
563
|
+
renderable,
|
564
|
+
isProtected,
|
565
|
+
finishedProc,
|
566
|
+
finishedContext);
|
567
|
+
}
|
568
|
+
|
569
|
+
/**
|
570
|
+
* If possible, updates a backend texture to be filled to a particular color. The client should
|
571
|
+
* check the return value to see if the update was successful. The client can pass in a
|
572
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
573
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
574
|
+
* The finishedProc will always get called even if we failed to update the GrBackendTexture.
|
575
|
+
* For the Vulkan backend after a successful update the layout of the created VkImage will be:
|
576
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
577
|
+
*/
|
578
|
+
bool updateBackendTexture(const GrBackendTexture&,
|
579
|
+
const SkColor4f& color,
|
580
|
+
GrGpuFinishedProc finishedProc,
|
581
|
+
GrGpuFinishedContext finishedContext);
|
582
|
+
|
583
|
+
/**
|
584
|
+
* If possible, updates a backend texture to be filled to a particular color. The data in
|
585
|
+
* GrBackendTexture and passed in color is interpreted with respect to the passed in
|
586
|
+
* SkColorType. The client should check the return value to see if the update was successful.
|
587
|
+
* The client can pass in a finishedProc to be notified when the data has been uploaded by the
|
588
|
+
* gpu and the texture can be deleted. The client is required to call `submit` to send
|
589
|
+
* the upload work to the gpu. The finishedProc will always get called even if we failed to
|
590
|
+
* update the GrBackendTexture.
|
591
|
+
* For the Vulkan backend after a successful update the layout of the created VkImage will be:
|
592
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
593
|
+
*/
|
594
|
+
bool updateBackendTexture(const GrBackendTexture&,
|
595
|
+
SkColorType skColorType,
|
596
|
+
const SkColor4f& color,
|
597
|
+
GrGpuFinishedProc finishedProc,
|
598
|
+
GrGpuFinishedContext finishedContext);
|
599
|
+
|
600
|
+
/**
|
601
|
+
* If possible, updates a backend texture filled with the provided pixmap data. The client
|
602
|
+
* should check the return value to see if the update was successful. The client can pass in a
|
603
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
604
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
605
|
+
* The finishedProc will always get called even if we failed to create the GrBackendTexture.
|
606
|
+
* The backend texture must be compatible with the provided pixmap(s). Compatible, in this case,
|
607
|
+
* means that the backend format is compatible with the base pixmap's colortype. The src data
|
608
|
+
* can be deleted when this call returns.
|
609
|
+
* If the backend texture is mip mapped, the data for all the mipmap levels must be provided.
|
610
|
+
* In the mipmapped case all the colortypes of the provided pixmaps must be the same.
|
611
|
+
* Additionally, all the miplevels must be sized correctly (please see
|
612
|
+
* SkMipmap::ComputeLevelSize and ComputeLevelCount). The GrSurfaceOrigin controls whether the
|
613
|
+
* pixmap data is vertically flipped in the texture.
|
614
|
+
* Note: the pixmap's alphatypes and colorspaces are ignored.
|
615
|
+
* For the Vulkan backend after a successful update the layout of the created VkImage will be:
|
616
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
617
|
+
*/
|
618
|
+
bool updateBackendTexture(const GrBackendTexture&,
|
619
|
+
const SkPixmap srcData[],
|
620
|
+
int numLevels,
|
621
|
+
GrSurfaceOrigin = kTopLeft_GrSurfaceOrigin,
|
622
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
623
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
624
|
+
|
625
|
+
/**
|
626
|
+
* Convenience version of updateBackendTexture that takes just a base level pixmap.
|
627
|
+
*/
|
628
|
+
bool updateBackendTexture(const GrBackendTexture& texture,
|
629
|
+
const SkPixmap& srcData,
|
630
|
+
GrSurfaceOrigin textureOrigin = kTopLeft_GrSurfaceOrigin,
|
631
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
632
|
+
GrGpuFinishedContext finishedContext = nullptr) {
|
633
|
+
return this->updateBackendTexture(texture,
|
634
|
+
&srcData,
|
635
|
+
1,
|
636
|
+
textureOrigin,
|
637
|
+
finishedProc,
|
638
|
+
finishedContext);
|
639
|
+
}
|
640
|
+
|
641
|
+
// Deprecated version that does not take origin and assumes top-left.
|
642
|
+
bool updateBackendTexture(const GrBackendTexture& texture,
|
643
|
+
const SkPixmap srcData[],
|
644
|
+
int numLevels,
|
645
|
+
GrGpuFinishedProc finishedProc,
|
646
|
+
GrGpuFinishedContext finishedContext) {
|
647
|
+
return this->updateBackendTexture(texture,
|
648
|
+
srcData,
|
649
|
+
numLevels,
|
650
|
+
kTopLeft_GrSurfaceOrigin,
|
651
|
+
finishedProc,
|
652
|
+
finishedContext);
|
653
|
+
}
|
654
|
+
|
655
|
+
/**
|
656
|
+
* Retrieve the GrBackendFormat for a given SkImage::CompressionType. This is
|
657
|
+
* guaranteed to match the backend format used by the following
|
658
|
+
* createCompressedBackendTexture methods that take a CompressionType.
|
659
|
+
*
|
660
|
+
* The caller should check that the returned format is valid.
|
661
|
+
*/
|
662
|
+
using GrRecordingContext::compressedBackendFormat;
|
663
|
+
|
664
|
+
/**
|
665
|
+
*If possible, create a compressed backend texture initialized to a particular color. The
|
666
|
+
* client should ensure that the returned backend texture is valid. The client can pass in a
|
667
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
668
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
669
|
+
* The finishedProc will always get called even if we failed to create the GrBackendTexture.
|
670
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
671
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
672
|
+
*/
|
673
|
+
GrBackendTexture createCompressedBackendTexture(int width, int height,
|
674
|
+
const GrBackendFormat&,
|
675
|
+
const SkColor4f& color,
|
676
|
+
GrMipmapped,
|
677
|
+
GrProtected = GrProtected::kNo,
|
678
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
679
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
680
|
+
|
681
|
+
GrBackendTexture createCompressedBackendTexture(int width, int height,
|
682
|
+
SkImage::CompressionType,
|
683
|
+
const SkColor4f& color,
|
684
|
+
GrMipmapped,
|
685
|
+
GrProtected = GrProtected::kNo,
|
686
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
687
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
688
|
+
|
689
|
+
/**
|
690
|
+
* If possible, create a backend texture initialized with the provided raw data. The client
|
691
|
+
* should ensure that the returned backend texture is valid. The client can pass in a
|
692
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
693
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
694
|
+
* The finishedProc will always get called even if we failed to create the GrBackendTexture
|
695
|
+
* If numLevels is 1 a non-mipMapped texture will result. If a mipMapped texture is desired
|
696
|
+
* the data for all the mipmap levels must be provided. Additionally, all the miplevels
|
697
|
+
* must be sized correctly (please see SkMipmap::ComputeLevelSize and ComputeLevelCount).
|
698
|
+
* For the Vulkan backend the layout of the created VkImage will be:
|
699
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
700
|
+
*/
|
701
|
+
GrBackendTexture createCompressedBackendTexture(int width, int height,
|
702
|
+
const GrBackendFormat&,
|
703
|
+
const void* data, size_t dataSize,
|
704
|
+
GrMipmapped,
|
705
|
+
GrProtected = GrProtected::kNo,
|
706
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
707
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
708
|
+
|
709
|
+
GrBackendTexture createCompressedBackendTexture(int width, int height,
|
710
|
+
SkImage::CompressionType,
|
711
|
+
const void* data, size_t dataSize,
|
712
|
+
GrMipmapped,
|
713
|
+
GrProtected = GrProtected::kNo,
|
714
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
715
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
716
|
+
|
717
|
+
/**
|
718
|
+
* If possible, updates a backend texture filled with the provided color. If the texture is
|
719
|
+
* mipmapped, all levels of the mip chain will be updated to have the supplied color. The client
|
720
|
+
* should check the return value to see if the update was successful. The client can pass in a
|
721
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
722
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
723
|
+
* The finishedProc will always get called even if we failed to create the GrBackendTexture.
|
724
|
+
* For the Vulkan backend after a successful update the layout of the created VkImage will be:
|
725
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
726
|
+
*/
|
727
|
+
bool updateCompressedBackendTexture(const GrBackendTexture&,
|
728
|
+
const SkColor4f& color,
|
729
|
+
GrGpuFinishedProc finishedProc,
|
730
|
+
GrGpuFinishedContext finishedContext);
|
731
|
+
|
732
|
+
/**
|
733
|
+
* If possible, updates a backend texture filled with the provided raw data. The client
|
734
|
+
* should check the return value to see if the update was successful. The client can pass in a
|
735
|
+
* finishedProc to be notified when the data has been uploaded by the gpu and the texture can be
|
736
|
+
* deleted. The client is required to call `submit` to send the upload work to the gpu.
|
737
|
+
* The finishedProc will always get called even if we failed to create the GrBackendTexture.
|
738
|
+
* If a mipMapped texture is passed in, the data for all the mipmap levels must be provided.
|
739
|
+
* Additionally, all the miplevels must be sized correctly (please see
|
740
|
+
* SkMipMap::ComputeLevelSize and ComputeLevelCount).
|
741
|
+
* For the Vulkan backend after a successful update the layout of the created VkImage will be:
|
742
|
+
* VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
|
743
|
+
*/
|
744
|
+
bool updateCompressedBackendTexture(const GrBackendTexture&,
|
745
|
+
const void* data,
|
746
|
+
size_t dataSize,
|
747
|
+
GrGpuFinishedProc finishedProc,
|
748
|
+
GrGpuFinishedContext finishedContext);
|
749
|
+
|
750
|
+
/**
|
751
|
+
* Updates the state of the GrBackendTexture/RenderTarget to have the passed in
|
752
|
+
* GrBackendSurfaceMutableState. All objects that wrap the backend surface (i.e. SkSurfaces and
|
753
|
+
* SkImages) will also be aware of this state change. This call does not submit the state change
|
754
|
+
* to the gpu, but requires the client to call `submit` to send it to the GPU. The work
|
755
|
+
* for this call is ordered linearly with all other calls that require GrContext::submit to be
|
756
|
+
* called (e.g updateBackendTexture and flush). If finishedProc is not null then it will be
|
757
|
+
* called with finishedContext after the state transition is known to have occurred on the GPU.
|
758
|
+
*
|
759
|
+
* See GrBackendSurfaceMutableState to see what state can be set via this call.
|
760
|
+
*
|
761
|
+
* If the backend API is Vulkan, the caller can set the GrBackendSurfaceMutableState's
|
762
|
+
* VkImageLayout to VK_IMAGE_LAYOUT_UNDEFINED or queueFamilyIndex to VK_QUEUE_FAMILY_IGNORED to
|
763
|
+
* tell Skia to not change those respective states.
|
764
|
+
*
|
765
|
+
* If previousState is not null and this returns true, then Skia will have filled in
|
766
|
+
* previousState to have the values of the state before this call.
|
767
|
+
*/
|
768
|
+
bool setBackendTextureState(const GrBackendTexture&,
|
769
|
+
const GrBackendSurfaceMutableState&,
|
770
|
+
GrBackendSurfaceMutableState* previousState = nullptr,
|
771
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
772
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
773
|
+
bool setBackendRenderTargetState(const GrBackendRenderTarget&,
|
774
|
+
const GrBackendSurfaceMutableState&,
|
775
|
+
GrBackendSurfaceMutableState* previousState = nullptr,
|
776
|
+
GrGpuFinishedProc finishedProc = nullptr,
|
777
|
+
GrGpuFinishedContext finishedContext = nullptr);
|
778
|
+
|
779
|
+
void deleteBackendTexture(GrBackendTexture);
|
780
|
+
|
781
|
+
// This interface allows clients to pre-compile shaders and populate the runtime program cache.
|
782
|
+
// The key and data blobs should be the ones passed to the PersistentCache, in SkSL format.
|
783
|
+
//
|
784
|
+
// Steps to use this API:
|
785
|
+
//
|
786
|
+
// 1) Create a GrDirectContext as normal, but set fPersistentCache on GrContextOptions to
|
787
|
+
// something that will save the cached shader blobs. Set fShaderCacheStrategy to kSkSL. This
|
788
|
+
// will ensure that the blobs are SkSL, and are suitable for pre-compilation.
|
789
|
+
// 2) Run your application, and save all of the key/data pairs that are fed to the cache.
|
790
|
+
//
|
791
|
+
// 3) Switch over to shipping your application. Include the key/data pairs from above.
|
792
|
+
// 4) At startup (or any convenient time), call precompileShader for each key/data pair.
|
793
|
+
// This will compile the SkSL to create a GL program, and populate the runtime cache.
|
794
|
+
//
|
795
|
+
// This is only guaranteed to work if the context/device used in step #2 are created in the
|
796
|
+
// same way as the one used in step #4, and the same GrContextOptions are specified.
|
797
|
+
// Using cached shader blobs on a different device or driver are undefined.
|
798
|
+
bool precompileShader(const SkData& key, const SkData& data);
|
799
|
+
|
800
|
+
#ifdef SK_ENABLE_DUMP_GPU
|
801
|
+
/** Returns a string with detailed information about the context & GPU, in JSON format. */
|
802
|
+
SkString dump() const;
|
803
|
+
#endif
|
804
|
+
|
805
|
+
class DirectContextID {
|
806
|
+
public:
|
807
|
+
static GrDirectContext::DirectContextID Next();
|
808
|
+
|
809
|
+
DirectContextID() : fID(SK_InvalidUniqueID) {}
|
810
|
+
|
811
|
+
bool operator==(const DirectContextID& that) const { return fID == that.fID; }
|
812
|
+
bool operator!=(const DirectContextID& that) const { return !(*this == that); }
|
813
|
+
|
814
|
+
void makeInvalid() { fID = SK_InvalidUniqueID; }
|
815
|
+
bool isValid() const { return fID != SK_InvalidUniqueID; }
|
816
|
+
|
817
|
+
private:
|
818
|
+
constexpr DirectContextID(uint32_t id) : fID(id) {}
|
819
|
+
uint32_t fID;
|
820
|
+
};
|
821
|
+
|
822
|
+
DirectContextID directContextID() const { return fDirectContextID; }
|
823
|
+
|
824
|
+
// Provides access to functions that aren't part of the public API.
|
825
|
+
GrDirectContextPriv priv();
|
826
|
+
const GrDirectContextPriv priv() const; // NOLINT(readability-const-return-type)
|
827
|
+
|
828
|
+
protected:
|
829
|
+
GrDirectContext(GrBackendApi backend, const GrContextOptions& options);
|
830
|
+
|
831
|
+
bool init() override;
|
832
|
+
|
833
|
+
GrAtlasManager* onGetAtlasManager() { return fAtlasManager.get(); }
|
834
|
+
skgpu::v1::SmallPathAtlasMgr* onGetSmallPathAtlasMgr();
|
835
|
+
|
836
|
+
GrDirectContext* asDirectContext() override { return this; }
|
837
|
+
|
838
|
+
private:
|
839
|
+
// This call will make sure out work on the GPU is finished and will execute any outstanding
|
840
|
+
// asynchronous work (e.g. calling finished procs, freeing resources, etc.) related to the
|
841
|
+
// outstanding work on the gpu. The main use currently for this function is when tearing down or
|
842
|
+
// abandoning the context.
|
843
|
+
//
|
844
|
+
// When we finish up work on the GPU it could trigger callbacks to the client. In the case we
|
845
|
+
// are abandoning the context we don't want the client to be able to use the GrDirectContext to
|
846
|
+
// issue more commands during the callback. Thus before calling this function we set the
|
847
|
+
// GrDirectContext's state to be abandoned. However, we need to be able to get by the abaonded
|
848
|
+
// check in the call to know that it is safe to execute this. The shouldExecuteWhileAbandoned
|
849
|
+
// bool is used for this signal.
|
850
|
+
void syncAllOutstandingGpuWork(bool shouldExecuteWhileAbandoned);
|
851
|
+
|
852
|
+
const DirectContextID fDirectContextID;
|
853
|
+
// fTaskGroup must appear before anything that uses it (e.g. fGpu), so that it is destroyed
|
854
|
+
// after all of its users. Clients of fTaskGroup will generally want to ensure that they call
|
855
|
+
// wait() on it as they are being destroyed, to avoid the possibility of pending tasks being
|
856
|
+
// invoked after objects they depend upon have already been destroyed.
|
857
|
+
std::unique_ptr<SkTaskGroup> fTaskGroup;
|
858
|
+
std::unique_ptr<GrStrikeCache> fStrikeCache;
|
859
|
+
sk_sp<GrGpu> fGpu;
|
860
|
+
std::unique_ptr<GrResourceCache> fResourceCache;
|
861
|
+
std::unique_ptr<GrResourceProvider> fResourceProvider;
|
862
|
+
|
863
|
+
bool fDidTestPMConversions;
|
864
|
+
// true if the PM/UPM conversion succeeded; false otherwise
|
865
|
+
bool fPMUPMConversionsRoundTrip;
|
866
|
+
|
867
|
+
GrContextOptions::PersistentCache* fPersistentCache;
|
868
|
+
|
869
|
+
std::unique_ptr<GrClientMappedBufferManager> fMappedBufferManager;
|
870
|
+
std::unique_ptr<GrAtlasManager> fAtlasManager;
|
871
|
+
|
872
|
+
std::unique_ptr<skgpu::v1::SmallPathAtlasMgr> fSmallPathAtlasMgr;
|
873
|
+
|
874
|
+
friend class GrDirectContextPriv;
|
875
|
+
|
876
|
+
using INHERITED = GrRecordingContext;
|
877
|
+
};
|
878
|
+
|
879
|
+
|
880
|
+
#endif
|