@shopify/react-native-skia 0.1.129 → 0.1.132
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -0
- package/android/cpp/jni/JniSkiaDrawView.cpp +3 -2
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +1 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +2 -1
- package/cpp/api/JsiSkCanvas.h +2 -2
- package/cpp/api/JsiSkFont.h +6 -2
- package/cpp/api/JsiSkMatrix.h +40 -27
- package/cpp/api/JsiSkPaint.h +3 -1
- package/cpp/api/JsiSkPath.h +67 -61
- package/cpp/api/JsiSkPathFactory.h +14 -1
- package/cpp/api/JsiSkRuntimeEffect.h +7 -9
- package/cpp/api/JsiSkRuntimeShaderBuilder.h +18 -0
- package/cpp/api/JsiSkTypeface.h +11 -2
- package/cpp/api/JsiSkTypefaceFactory.h +5 -1
- package/cpp/api/JsiSkVertices.h +0 -2
- package/cpp/rnskia/RNSkInfoParameter.h +2 -0
- package/cpp/rnskia/values/RNSkValue.h +1 -1
- package/cpp/skia/include/codec/SkCodec.h +7 -1
- package/cpp/skia/include/core/SkAlphaType.h +45 -0
- package/cpp/skia/include/core/SkBitmap.h +4 -2
- package/cpp/skia/include/core/SkCanvas.h +31 -20
- package/cpp/skia/include/core/SkColor.h +1 -1
- package/cpp/skia/include/core/SkColorFilter.h +1 -0
- package/cpp/skia/include/core/SkColorType.h +66 -0
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +1 -1
- package/cpp/skia/include/core/SkDrawable.h +7 -0
- package/cpp/skia/include/core/SkEncodedImageFormat.h +1 -0
- package/cpp/skia/include/core/SkFont.h +4 -3
- package/cpp/skia/include/core/SkFontArguments.h +33 -1
- package/cpp/skia/include/core/SkGraphics.h +13 -0
- package/cpp/skia/include/core/SkImage.h +67 -22
- package/cpp/skia/include/core/SkImageEncoder.h +0 -3
- package/cpp/skia/include/core/SkImageGenerator.h +4 -3
- package/cpp/skia/include/core/SkImageInfo.h +35 -142
- package/cpp/skia/include/core/SkMesh.h +303 -0
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
- package/cpp/skia/include/core/SkPaint.h +4 -19
- package/cpp/skia/include/core/SkPath.h +20 -33
- package/cpp/skia/include/core/SkPathBuilder.h +1 -6
- package/cpp/skia/include/core/SkPixelRef.h +1 -1
- package/cpp/skia/include/core/SkPixmap.h +3 -2
- package/cpp/skia/include/core/SkRSXform.h +1 -1
- package/cpp/skia/include/core/SkSamplingOptions.h +16 -5
- package/cpp/skia/include/core/SkSpan.h +5 -5
- package/cpp/skia/include/core/SkString.h +5 -8
- package/cpp/skia/include/core/SkSurface.h +21 -0
- package/cpp/skia/include/core/SkTypeface.h +20 -4
- package/cpp/skia/include/core/SkTypes.h +9 -5
- package/cpp/skia/include/effects/SkGradientShader.h +9 -18
- package/cpp/skia/include/effects/SkRuntimeEffect.h +16 -12
- package/cpp/skia/include/gpu/GpuTypes.h +32 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/GrBackendSurface.h +6 -5
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +1 -1
- package/cpp/skia/include/gpu/GrContextOptions.h +11 -20
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +7 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +16 -11
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +0 -2
- package/cpp/skia/include/gpu/GrRecordingContext.h +14 -7
- package/cpp/skia/include/gpu/GrSurfaceInfo.h +6 -6
- package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +1 -1
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +3 -1
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +2 -2
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
- package/cpp/skia/include/gpu/graphite/Context.h +124 -0
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
- package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
- package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
- package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +1 -2
- package/cpp/skia/include/ports/SkCFObject.h +0 -4
- package/cpp/skia/include/ports/SkTypeface_win.h +2 -2
- package/cpp/skia/include/private/{GrSingleOwner.h → SingleOwner.h} +17 -10
- package/cpp/skia/include/private/SkChecksum.h +11 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +22 -5
- package/cpp/skia/include/private/SkFloatingPoint.h +0 -53
- package/cpp/skia/include/private/SkImageInfoPriv.h +8 -2
- package/cpp/skia/include/private/SkMacros.h +13 -18
- package/cpp/skia/include/private/SkMutex.h +8 -0
- package/cpp/skia/include/private/SkPathRef.h +2 -16
- package/cpp/skia/include/private/SkSLDefines.h +9 -1
- package/cpp/skia/include/private/SkSLIRNode.h +6 -5
- package/cpp/skia/include/private/SkSLLayout.h +11 -10
- package/cpp/skia/include/private/SkSLModifiers.h +4 -3
- package/cpp/skia/include/private/SkSLProgramElement.h +2 -2
- package/cpp/skia/include/private/SkSLProgramKind.h +8 -5
- package/cpp/skia/include/private/SkSLStatement.h +2 -3
- package/cpp/skia/include/private/SkSLString.h +17 -56
- package/cpp/skia/include/private/SkSLSymbol.h +4 -4
- package/cpp/skia/include/private/SkShadowFlags.h +3 -1
- package/cpp/skia/include/private/SkStringView.h +47 -0
- package/cpp/skia/include/private/SkTArray.h +4 -3
- package/cpp/skia/include/private/SkTHash.h +66 -24
- package/cpp/skia/include/private/SkTLogic.h +2 -32
- package/cpp/skia/include/private/SkTemplates.h +2 -2
- package/cpp/skia/include/private/SkThreadAnnotations.h +4 -4
- package/cpp/skia/include/private/SkVx.h +28 -28
- package/cpp/skia/include/private/chromium/GrSlug.h +40 -3
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +12 -6
- package/cpp/skia/include/private/{GrContext_Base.h → gpu/ganesh/GrContext_Base.h} +7 -0
- package/cpp/skia/include/private/{GrD3DTypesMinimal.h → gpu/ganesh/GrD3DTypesMinimal.h} +0 -0
- package/cpp/skia/include/private/{GrDawnTypesPriv.h → gpu/ganesh/GrDawnTypesPriv.h} +0 -0
- package/cpp/skia/include/private/{GrGLTypesPriv.h → gpu/ganesh/GrGLTypesPriv.h} +1 -0
- package/cpp/skia/include/private/{GrImageContext.h → gpu/ganesh/GrImageContext.h} +4 -4
- package/cpp/skia/include/private/{GrMockTypesPriv.h → gpu/ganesh/GrMockTypesPriv.h} +0 -0
- package/cpp/skia/include/private/{GrMtlTypesPriv.h → gpu/ganesh/GrMtlTypesPriv.h} +0 -0
- package/cpp/skia/include/private/{GrTypesPriv.h → gpu/ganesh/GrTypesPriv.h} +25 -367
- package/cpp/skia/include/private/{GrVkTypesPriv.h → gpu/ganesh/GrVkTypesPriv.h} +0 -0
- package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
- package/cpp/skia/include/sksl/DSL.h +4 -0
- package/cpp/skia/include/sksl/DSLBlock.h +8 -3
- package/cpp/skia/include/sksl/DSLCase.h +6 -6
- package/cpp/skia/include/sksl/DSLCore.h +89 -78
- package/cpp/skia/include/sksl/DSLExpression.h +78 -45
- package/cpp/skia/include/sksl/DSLFunction.h +23 -18
- package/cpp/skia/include/sksl/DSLLayout.h +14 -16
- package/cpp/skia/include/sksl/DSLModifiers.h +7 -5
- package/cpp/skia/include/sksl/DSLRuntimeEffects.h +1 -1
- package/cpp/skia/include/sksl/DSLStatement.h +16 -10
- package/cpp/skia/include/sksl/DSLSymbols.h +7 -7
- package/cpp/skia/include/sksl/DSLType.h +27 -23
- package/cpp/skia/include/sksl/DSLVar.h +72 -61
- package/cpp/skia/include/sksl/SkSLErrorReporter.h +12 -49
- package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
- package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +5 -1
- package/cpp/skia/include/utils/SkAnimCodecPlayer.h +7 -0
- package/cpp/skia/include/utils/SkCamera.h +2 -0
- package/cpp/skia/include/utils/SkCanvasStateUtils.h +4 -1
- package/cpp/skia/include/utils/SkCustomTypeface.h +6 -4
- package/cpp/skia/include/utils/SkNWayCanvas.h +34 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +5 -1
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +12 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +30 -1
- package/cpp/skia/include/utils/SkParse.h +2 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +3 -2
- package/cpp/skia/include/utils/SkTextUtils.h +8 -4
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +27 -1
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +4 -0
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +3 -3
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +2 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +48 -9
- package/cpp/utils/RNSkLog.h +27 -0
- package/ios/RNSkia-iOS/PlatformContext.h +1 -1
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +1 -0
- package/ios/RNSkia-iOS/SkiaDrawView.mm +3 -2
- package/lib/commonjs/animation/functions/index.js +47 -17
- package/lib/commonjs/animation/functions/index.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolatePaths.js +45 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
- package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.js +19 -35
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/HostConfig.js +2 -2
- package/lib/commonjs/renderer/HostConfig.js.map +1 -1
- package/lib/commonjs/renderer/components/Blend.js +10 -7
- package/lib/commonjs/renderer/components/Blend.js.map +1 -1
- package/lib/commonjs/renderer/components/Compose.js +9 -6
- package/lib/commonjs/renderer/components/Compose.js.map +1 -1
- package/lib/commonjs/renderer/components/Group.js +7 -6
- package/lib/commonjs/renderer/components/Group.js.map +1 -1
- package/lib/commonjs/renderer/components/Mask.js +13 -10
- package/lib/commonjs/renderer/components/Mask.js.map +1 -1
- package/lib/commonjs/renderer/components/Paint.js +7 -4
- package/lib/commonjs/renderer/components/Paint.js.map +1 -1
- package/lib/commonjs/renderer/components/Picture.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +7 -6
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Compose.js +6 -6
- package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +8 -7
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +6 -6
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +6 -6
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +6 -7
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +6 -6
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
- package/lib/commonjs/renderer/components/image/BoxFit.js +7 -9
- package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -1
- package/lib/commonjs/renderer/components/image/Image.js +3 -2
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
- package/lib/commonjs/renderer/components/image/ImageSVG.js +3 -2
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
- package/lib/commonjs/renderer/components/image/ImageShader.js +9 -6
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +7 -4
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +10 -7
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +10 -15
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +7 -6
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -4
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -6
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +8 -7
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/getInput.js +7 -7
- package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -1
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +6 -3
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +8 -6
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +8 -6
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +8 -6
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +8 -6
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +8 -6
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +8 -6
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +7 -4
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Color.js +7 -4
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +5 -4
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Gradient.js +5 -5
- package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +6 -5
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +6 -5
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Shader.js +6 -44
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +6 -5
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +5 -4
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +6 -5
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Box.js +26 -29
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Circle.js +7 -5
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Oval.js +3 -2
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Patch.js +8 -5
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Path.js +5 -4
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Rect.js +3 -2
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +3 -2
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Vertices.js +9 -8
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
- package/lib/commonjs/renderer/components/text/Glyphs.js +3 -2
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
- package/lib/commonjs/renderer/components/text/Text.js +3 -2
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextPath.js +7 -11
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
- package/lib/commonjs/renderer/index.js +13 -13
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
- package/lib/commonjs/renderer/nodes/Drawing.js +5 -5
- package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -1
- package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/renderer/processors/Circles.js +2 -4
- package/lib/commonjs/renderer/processors/Circles.js.map +1 -1
- package/lib/commonjs/renderer/processors/Clips.js +5 -5
- package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
- package/lib/commonjs/{skia/core → renderer/processors}/Color.js +2 -6
- package/lib/commonjs/renderer/processors/Color.js.map +1 -0
- package/lib/commonjs/renderer/processors/Font.js +4 -4
- package/lib/commonjs/renderer/processors/Font.js.map +1 -1
- package/lib/commonjs/renderer/processors/Paint.js +18 -14
- package/lib/commonjs/renderer/processors/Paint.js.map +1 -1
- package/lib/commonjs/renderer/processors/Paths.js +4 -4
- package/lib/commonjs/renderer/processors/Paths.js.map +1 -1
- package/lib/commonjs/renderer/processors/Radius.js +2 -4
- package/lib/commonjs/renderer/processors/Radius.js.map +1 -1
- package/lib/commonjs/renderer/processors/Rects.js +8 -59
- package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
- package/lib/commonjs/renderer/processors/Transform.js +26 -17
- package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
- package/lib/commonjs/renderer/processors/index.js +26 -13
- package/lib/commonjs/renderer/processors/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/index.js +0 -26
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
- package/lib/commonjs/renderer/useCanvas.js +30 -0
- package/lib/commonjs/renderer/useCanvas.js.map +1 -0
- package/lib/commonjs/skia/NativeSetup.js +1 -1
- package/lib/commonjs/skia/NativeSetup.js.map +1 -1
- package/lib/commonjs/skia/Skia.web.js +12 -0
- package/lib/commonjs/skia/Skia.web.js.map +1 -0
- package/lib/commonjs/skia/core/Data.js +9 -4
- package/lib/commonjs/skia/core/Data.js.map +1 -1
- package/lib/commonjs/skia/core/Font.js +2 -4
- package/lib/commonjs/skia/core/Font.js.map +1 -1
- package/lib/commonjs/skia/core/Matrix.js +15 -0
- package/lib/commonjs/skia/core/Matrix.js.map +1 -0
- package/lib/commonjs/skia/core/Paint.js +4 -12
- package/lib/commonjs/skia/core/Paint.js.map +1 -1
- package/lib/commonjs/skia/core/Path.js +14 -2
- package/lib/commonjs/skia/core/Path.js.map +1 -1
- package/lib/commonjs/skia/core/RRect.js +13 -0
- package/lib/commonjs/skia/core/RRect.js.map +1 -0
- package/lib/commonjs/skia/core/Rect.js +47 -0
- package/lib/commonjs/skia/core/Rect.js.map +1 -0
- package/lib/commonjs/skia/core/Vector.js +49 -0
- package/lib/commonjs/skia/core/Vector.js.map +1 -0
- package/lib/commonjs/skia/core/index.js +51 -25
- package/lib/commonjs/skia/core/index.js.map +1 -1
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix.js +58 -1
- package/lib/commonjs/skia/types/Matrix.js.map +1 -1
- package/lib/commonjs/skia/types/Path/Path.js +1 -0
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
- package/lib/commonjs/skia/types/Point.js.map +1 -1
- package/lib/commonjs/skia/types/RRect.js +7 -0
- package/lib/commonjs/skia/types/RRect.js.map +1 -1
- package/lib/commonjs/skia/types/Shader/Shader.js +51 -1
- package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
- package/lib/commonjs/skia/web/{api/Host.js → Host.js} +10 -1
- package/lib/commonjs/skia/web/Host.js.map +1 -0
- package/lib/commonjs/skia/web/JsiImageFilterFactory.js +68 -0
- package/lib/commonjs/skia/web/JsiImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +20 -6
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +163 -4
- package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
- package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkData.js +18 -0
- package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFont.js +113 -0
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js +35 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
- package/lib/commonjs/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +4 -9
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPath.js +324 -0
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
- package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
- package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
- package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
- package/lib/commonjs/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
- package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
- package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
- package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +27 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkia.js +97 -0
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
- package/lib/commonjs/skia/web/index.js +4 -4
- package/lib/commonjs/skia/web/index.js.map +1 -1
- package/lib/commonjs/values/web/api.js +2 -2
- package/lib/commonjs/values/web/api.js.map +1 -1
- package/lib/commonjs/views/SkiaView.web.js +216 -0
- package/lib/commonjs/views/SkiaView.web.js.map +1 -0
- package/lib/commonjs/views/types.js.map +1 -1
- package/lib/commonjs/views/useTouchHandler.js +70 -46
- package/lib/commonjs/views/useTouchHandler.js.map +1 -1
- package/lib/commonjs/web/index.js +20 -0
- package/lib/commonjs/web/index.js.map +1 -0
- package/lib/module/animation/functions/index.js +4 -2
- package/lib/module/animation/functions/index.js.map +1 -1
- package/lib/module/animation/functions/interpolatePaths.js +36 -0
- package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/module/animation/functions/interpolateVector.js +7 -0
- package/lib/module/animation/functions/interpolateVector.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/renderer/Canvas.js +15 -26
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/HostConfig.js +2 -2
- package/lib/module/renderer/HostConfig.js.map +1 -1
- package/lib/module/renderer/components/Blend.js +5 -2
- package/lib/module/renderer/components/Blend.js.map +1 -1
- package/lib/module/renderer/components/Compose.js +5 -2
- package/lib/module/renderer/components/Compose.js.map +1 -1
- package/lib/module/renderer/components/Group.js +7 -6
- package/lib/module/renderer/components/Group.js.map +1 -1
- package/lib/module/renderer/components/Mask.js +7 -3
- package/lib/module/renderer/components/Mask.js.map +1 -1
- package/lib/module/renderer/components/Paint.js +6 -3
- package/lib/module/renderer/components/Paint.js.map +1 -1
- package/lib/module/renderer/components/Picture.js.map +1 -1
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +1 -1
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/BlendColor.js +6 -3
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/Compose.js +2 -2
- package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/Lerp.js +6 -3
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -3
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -3
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/Matrix.js +5 -3
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -3
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
- package/lib/module/renderer/components/image/BoxFit.js +7 -8
- package/lib/module/renderer/components/image/BoxFit.js.map +1 -1
- package/lib/module/renderer/components/image/Image.js +3 -2
- package/lib/module/renderer/components/image/Image.js.map +1 -1
- package/lib/module/renderer/components/image/ImageSVG.js +3 -2
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
- package/lib/module/renderer/components/image/ImageShader.js +10 -7
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Blur.js +7 -4
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +7 -4
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/InnerShadow.js +3 -3
- package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Morphology.js +6 -4
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Offset.js +5 -3
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js +13 -4
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Shadow.js +6 -5
- package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/getInput.js +2 -2
- package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -1
- package/lib/module/renderer/components/maskFilters/Blur.js +5 -2
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Corner.js +5 -2
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Dash.js +5 -2
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Discrete.js +5 -2
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Line2D.js +5 -2
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Path1D.js +6 -3
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Path2D.js +6 -3
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Sum.js +5 -2
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/module/renderer/components/shaders/Color.js +6 -3
- package/lib/module/renderer/components/shaders/Color.js.map +1 -1
- package/lib/module/renderer/components/shaders/FractalNoise.js +4 -2
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
- package/lib/module/renderer/components/shaders/Gradient.js +3 -3
- package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/LinearGradient.js +5 -3
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/RadialGradient.js +5 -3
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/Shader.js +6 -45
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/module/renderer/components/shaders/SweepGradient.js +5 -3
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/Turbulence.js +4 -2
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -3
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
- package/lib/module/renderer/components/shapes/Box.js +20 -19
- package/lib/module/renderer/components/shapes/Box.js.map +1 -1
- package/lib/module/renderer/components/shapes/Circle.js +7 -4
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
- package/lib/module/renderer/components/shapes/Line.js.map +1 -1
- package/lib/module/renderer/components/shapes/Oval.js +3 -2
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
- package/lib/module/renderer/components/shapes/Patch.js +5 -3
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/module/renderer/components/shapes/Path.js +4 -3
- package/lib/module/renderer/components/shapes/Path.js.map +1 -1
- package/lib/module/renderer/components/shapes/Points.js +1 -1
- package/lib/module/renderer/components/shapes/Points.js.map +1 -1
- package/lib/module/renderer/components/shapes/Rect.js +3 -2
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
- package/lib/module/renderer/components/shapes/RoundedRect.js +3 -2
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
- package/lib/module/renderer/components/shapes/Vertices.js +5 -3
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
- package/lib/module/renderer/components/text/Glyphs.js +3 -2
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
- package/lib/module/renderer/components/text/Text.js +3 -2
- package/lib/module/renderer/components/text/Text.js.map +1 -1
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/module/renderer/components/text/TextPath.js +3 -3
- package/lib/module/renderer/components/text/TextPath.js.map +1 -1
- package/lib/module/renderer/index.js +1 -1
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/renderer/nodes/Declaration.js.map +1 -1
- package/lib/module/renderer/nodes/Drawing.js +3 -3
- package/lib/module/renderer/nodes/Drawing.js.map +1 -1
- package/lib/module/renderer/nodes/Node.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/module/renderer/processors/Circles.js +2 -4
- package/lib/module/renderer/processors/Circles.js.map +1 -1
- package/lib/module/renderer/processors/Clips.js +3 -3
- package/lib/module/renderer/processors/Clips.js.map +1 -1
- package/lib/module/{skia/core → renderer/processors}/Color.js +1 -2
- package/lib/module/renderer/processors/Color.js.map +1 -0
- package/lib/module/renderer/processors/Font.js +3 -2
- package/lib/module/renderer/processors/Font.js.map +1 -1
- package/lib/module/renderer/processors/Paint.js +8 -5
- package/lib/module/renderer/processors/Paint.js.map +1 -1
- package/lib/module/renderer/processors/Paths.js +2 -2
- package/lib/module/renderer/processors/Paths.js.map +1 -1
- package/lib/module/renderer/processors/Radius.js +2 -3
- package/lib/module/renderer/processors/Radius.js.map +1 -1
- package/lib/module/renderer/processors/Rects.js +7 -26
- package/lib/module/renderer/processors/Rects.js.map +1 -1
- package/lib/module/renderer/processors/Transform.js +24 -16
- package/lib/module/renderer/processors/Transform.js.map +1 -1
- package/lib/module/renderer/processors/index.js +2 -1
- package/lib/module/renderer/processors/index.js.map +1 -1
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
- package/lib/module/renderer/processors/math/index.js +0 -2
- package/lib/module/renderer/processors/math/index.js.map +1 -1
- package/lib/module/renderer/useCanvas.js +13 -0
- package/lib/module/renderer/useCanvas.js.map +1 -0
- package/lib/module/skia/NativeSetup.js +2 -2
- package/lib/module/skia/NativeSetup.js.map +1 -1
- package/lib/module/skia/Skia.web.js +3 -0
- package/lib/module/skia/Skia.web.js.map +1 -0
- package/lib/module/skia/core/Data.js +11 -5
- package/lib/module/skia/core/Data.js.map +1 -1
- package/lib/module/skia/core/Font.js +2 -4
- package/lib/module/skia/core/Font.js.map +1 -1
- package/lib/module/skia/core/Matrix.js +4 -0
- package/lib/module/skia/core/Matrix.js.map +1 -0
- package/lib/module/skia/core/Paint.js +3 -7
- package/lib/module/skia/core/Paint.js.map +1 -1
- package/lib/module/skia/core/Path.js +11 -2
- package/lib/module/skia/core/Path.js.map +1 -1
- package/lib/module/skia/core/RRect.js +3 -0
- package/lib/module/skia/core/RRect.js.map +1 -0
- package/lib/module/skia/core/Rect.js +17 -0
- package/lib/module/skia/core/Rect.js.map +1 -0
- package/lib/module/{renderer/processors/math → skia/core}/Vector.js +2 -7
- package/lib/module/skia/core/Vector.js.map +1 -0
- package/lib/module/skia/core/index.js +5 -3
- package/lib/module/skia/core/index.js.map +1 -1
- package/lib/module/skia/types/Font/Font.js.map +1 -1
- package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/module/skia/types/Matrix.js +55 -0
- package/lib/module/skia/types/Matrix.js.map +1 -1
- package/lib/module/skia/types/Path/Path.js +1 -0
- package/lib/module/skia/types/Path/Path.js.map +1 -1
- package/lib/module/skia/types/Point.js.map +1 -1
- package/lib/module/skia/types/RRect.js +3 -1
- package/lib/module/skia/types/RRect.js.map +1 -1
- package/lib/module/skia/types/Shader/Shader.js +48 -0
- package/lib/module/skia/types/Shader/Shader.js.map +1 -1
- package/lib/module/skia/web/{api/Host.js → Host.js} +6 -0
- package/lib/module/skia/web/Host.js.map +1 -0
- package/lib/module/skia/web/JsiImageFilterFactory.js +57 -0
- package/lib/module/skia/web/JsiImageFilterFactory.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +19 -6
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +164 -4
- package/lib/module/skia/web/JsiSkColor.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
- package/lib/module/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
- package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/module/skia/web/JsiSkData.js +8 -0
- package/lib/module/skia/web/JsiSkData.js.map +1 -0
- package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
- package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkFont.js +101 -0
- package/lib/module/skia/web/JsiSkFont.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgr.js +25 -0
- package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
- package/lib/module/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
- package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
- package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMatrix.js +28 -0
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +5 -10
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/module/skia/web/JsiSkPath.js +311 -0
- package/lib/module/skia/web/JsiSkPath.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
- package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPicture.js +18 -0
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/module/skia/web/JsiSkPoint.js +16 -0
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/module/skia/web/JsiSkRRect.js +21 -0
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRSXform.js +8 -0
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
- package/lib/module/skia/web/JsiSkRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkShader.js +8 -0
- package/lib/module/skia/web/JsiSkShader.js.map +1 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/module/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
- package/lib/module/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
- package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
- package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
- package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypeface.js +18 -0
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkVertices.js +17 -0
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js +16 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkia.js +61 -0
- package/lib/module/skia/web/JsiSkia.js.map +1 -0
- package/lib/module/skia/web/index.js +1 -1
- package/lib/module/skia/web/index.js.map +1 -1
- package/lib/module/values/web/api.js +2 -2
- package/lib/module/values/web/api.js.map +1 -1
- package/lib/module/views/SkiaView.web.js +202 -0
- package/lib/module/views/SkiaView.web.js.map +1 -0
- package/lib/module/views/types.js.map +1 -1
- package/lib/module/views/useTouchHandler.js +64 -43
- package/lib/module/views/useTouchHandler.js.map +1 -1
- package/lib/module/web/index.js +8 -0
- package/lib/module/web/index.js.map +1 -0
- package/lib/typescript/src/animation/functions/index.d.ts +4 -2
- package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +17 -0
- package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/renderer/Canvas.d.ts +3 -14
- package/lib/typescript/src/renderer/DrawingContext.d.ts +3 -3
- package/lib/typescript/src/renderer/components/Blend.d.ts +1 -1
- package/lib/typescript/src/renderer/components/Group.d.ts +1 -1
- package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
- package/lib/typescript/src/renderer/components/Picture.d.ts +1 -1
- package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +2 -2
- package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +2 -2
- package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +13 -3
- package/lib/typescript/src/renderer/components/image/Image.d.ts +1 -1
- package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +1 -1
- package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -2
- package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +1 -1
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
- package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -2
- package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +2 -1
- package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
- package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -1
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shaders/Color.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +4 -4
- package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +2 -1
- package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +2 -1
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -9
- package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +2 -1
- package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -1
- package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -1
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shapes/Line.d.ts +2 -1
- package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -3
- package/lib/typescript/src/renderer/components/shapes/Path.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -2
- package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -2
- package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +1 -1
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
- package/lib/typescript/src/renderer/index.d.ts +1 -1
- package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
- package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +0 -2
- package/lib/typescript/src/renderer/processors/Circles.d.ts +2 -2
- package/lib/typescript/src/renderer/processors/Clips.d.ts +2 -2
- package/lib/typescript/src/{skia/core → renderer/processors}/Color.d.ts +2 -2
- package/lib/typescript/src/renderer/processors/Font.d.ts +2 -2
- package/lib/typescript/src/renderer/processors/Paint.d.ts +3 -3
- package/lib/typescript/src/renderer/processors/Paths.d.ts +2 -2
- package/lib/typescript/src/renderer/processors/Radius.d.ts +2 -2
- package/lib/typescript/src/renderer/processors/Rects.d.ts +3 -14
- package/lib/typescript/src/renderer/processors/Transform.d.ts +3 -4
- package/lib/typescript/src/renderer/processors/index.d.ts +2 -1
- package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +1 -1
- package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +1 -1
- package/lib/typescript/src/renderer/processors/math/index.d.ts +0 -2
- package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
- package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
- package/lib/typescript/src/skia/core/Data.d.ts +4 -4
- package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
- package/lib/typescript/src/skia/core/Paint.d.ts +0 -1
- package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
- package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
- package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
- package/lib/typescript/src/skia/core/index.d.ts +5 -3
- package/lib/typescript/src/skia/types/ContourMeasure.d.ts +2 -4
- package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
- package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +4 -4
- package/lib/typescript/src/skia/types/Font/Font.d.ts +8 -9
- package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +1 -1
- package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +2 -2
- package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +3 -3
- package/lib/typescript/src/skia/types/Matrix.d.ts +15 -14
- package/lib/typescript/src/skia/types/Path/Path.d.ts +29 -23
- package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +5 -0
- package/lib/typescript/src/skia/types/Picture/Picture.d.ts +2 -2
- package/lib/typescript/src/skia/types/Point.d.ts +1 -0
- package/lib/typescript/src/skia/types/RRect.d.ts +1 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +5 -6
- package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +2 -2
- package/lib/typescript/src/skia/types/Shader/Shader.d.ts +8 -0
- package/lib/typescript/src/skia/types/Skia.d.ts +1 -1
- package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +2 -2
- package/lib/typescript/src/skia/web/{api/Host.d.ts → Host.d.ts} +4 -1
- package/lib/typescript/src/skia/web/JsiImageFilterFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/{api/JsiSkCanvas.d.ts → JsiSkCanvas.d.ts} +1 -1
- package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/typescript/src/skia/web/{api/JsiSkColorFilter.d.ts → JsiSkColorFilter.d.ts} +1 -1
- package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkFont.d.ts +33 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/{api/JsiSkImage.d.ts → JsiSkImage.d.ts} +1 -1
- package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
- package/lib/typescript/src/skia/web/{api/JsiSkPaint.d.ts → JsiSkPaint.d.ts} +1 -1
- package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
- package/lib/typescript/src/skia/web/{api/JsiSkRect.d.ts → JsiSkRect.d.ts} +2 -1
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/typescript/src/skia/web/{api/JsiSkSurface.d.ts → JsiSkSurface.d.ts} +1 -1
- package/lib/typescript/src/skia/web/{api/JsiSkSurfaceFactory.d.ts → JsiSkSurfaceFactory.d.ts} +1 -1
- package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
- package/lib/typescript/src/skia/web/index.d.ts +1 -1
- package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
- package/lib/typescript/src/views/types.d.ts +1 -0
- package/lib/typescript/src/views/useTouchHandler.d.ts +11 -1
- package/lib/typescript/src/web/index.d.ts +5 -0
- package/libs/android/arm64-v8a/libskia.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/libsvg.a +0 -0
- package/libs/android/x86/libskia.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/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +5 -5
- 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 +5 -5
- 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/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 +5 -6
- package/src/animation/functions/index.ts +4 -2
- package/src/animation/functions/interpolatePaths.ts +38 -0
- package/src/animation/functions/interpolateVector.ts +26 -0
- package/src/index.ts +1 -0
- package/src/renderer/Canvas.tsx +13 -35
- package/src/renderer/DrawingContext.ts +3 -4
- package/src/renderer/HostConfig.ts +2 -2
- package/src/renderer/components/Blend.tsx +12 -10
- package/src/renderer/components/Compose.tsx +2 -2
- package/src/renderer/components/Group.tsx +11 -6
- package/src/renderer/components/Mask.tsx +5 -3
- package/src/renderer/components/Paint.tsx +5 -4
- package/src/renderer/components/Picture.tsx +1 -1
- package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
- package/src/renderer/components/colorFilters/BlendColor.tsx +4 -4
- package/src/renderer/components/colorFilters/Compose.ts +3 -2
- package/src/renderer/components/colorFilters/Lerp.tsx +3 -2
- package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +2 -3
- package/src/renderer/components/colorFilters/LumaColorFilter.tsx +2 -3
- package/src/renderer/components/colorFilters/Matrix.tsx +2 -3
- package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +2 -3
- package/src/renderer/components/image/BoxFit.ts +7 -13
- package/src/renderer/components/image/Image.tsx +3 -3
- package/src/renderer/components/image/ImageSVG.tsx +3 -3
- package/src/renderer/components/image/ImageShader.tsx +8 -7
- package/src/renderer/components/imageFilters/Blur.tsx +12 -10
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +4 -4
- package/src/renderer/components/imageFilters/InnerShadow.tsx +4 -3
- package/src/renderer/components/imageFilters/Morphology.tsx +3 -4
- package/src/renderer/components/imageFilters/Offset.tsx +5 -4
- package/src/renderer/components/imageFilters/RuntimeShader.tsx +12 -4
- package/src/renderer/components/imageFilters/Shadow.tsx +10 -6
- package/src/renderer/components/imageFilters/getInput.ts +3 -2
- package/src/renderer/components/maskFilters/Blur.tsx +2 -2
- package/src/renderer/components/pathEffects/Corner.tsx +2 -2
- package/src/renderer/components/pathEffects/Dash.tsx +2 -2
- package/src/renderer/components/pathEffects/Discrete.tsx +2 -2
- package/src/renderer/components/pathEffects/Line2D.tsx +3 -3
- package/src/renderer/components/pathEffects/Path1D.tsx +3 -3
- package/src/renderer/components/pathEffects/Path2D.tsx +4 -4
- package/src/renderer/components/pathEffects/Sum.tsx +7 -5
- package/src/renderer/components/shaders/Color.tsx +7 -5
- package/src/renderer/components/shaders/FractalNoise.tsx +1 -2
- package/src/renderer/components/shaders/Gradient.ts +7 -10
- package/src/renderer/components/shaders/LinearGradient.tsx +4 -4
- package/src/renderer/components/shaders/RadialGradient.tsx +4 -4
- package/src/renderer/components/shaders/Shader.tsx +6 -58
- package/src/renderer/components/shaders/SweepGradient.tsx +4 -4
- package/src/renderer/components/shaders/Turbulence.tsx +1 -2
- package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -4
- package/src/renderer/components/shapes/Box.tsx +36 -17
- package/src/renderer/components/shapes/Circle.tsx +3 -4
- package/src/renderer/components/shapes/DiffRect.tsx +1 -1
- package/src/renderer/components/shapes/FitBox.tsx +1 -1
- package/src/renderer/components/shapes/Line.tsx +2 -1
- package/src/renderer/components/shapes/Oval.tsx +6 -4
- package/src/renderer/components/shapes/Patch.tsx +6 -10
- package/src/renderer/components/shapes/Path.tsx +3 -3
- package/src/renderer/components/shapes/Points.tsx +2 -2
- package/src/renderer/components/shapes/Rect.tsx +6 -4
- package/src/renderer/components/shapes/RoundedRect.tsx +2 -2
- package/src/renderer/components/shapes/Vertices.tsx +5 -4
- package/src/renderer/components/text/Glyphs.tsx +6 -3
- package/src/renderer/components/text/Text.tsx +2 -2
- package/src/renderer/components/text/TextBlob.tsx +1 -1
- package/src/renderer/components/text/TextPath.tsx +3 -4
- package/src/renderer/index.ts +1 -1
- package/src/renderer/nodes/Declaration.tsx +1 -1
- package/src/renderer/nodes/Drawing.tsx +3 -2
- package/src/renderer/nodes/Node.ts +1 -1
- package/src/renderer/processors/Animations/Animations.ts +0 -3
- package/src/renderer/processors/Circles.ts +4 -4
- package/src/renderer/processors/Clips.ts +9 -4
- package/src/{skia/core → renderer/processors}/Color.ts +2 -3
- package/src/renderer/processors/Font.ts +10 -3
- package/src/renderer/processors/Paint.ts +12 -7
- package/src/renderer/processors/Paths.ts +3 -3
- package/src/renderer/processors/Radius.ts +3 -4
- package/src/renderer/processors/Rects.ts +10 -45
- package/src/renderer/processors/Transform.ts +28 -19
- package/src/renderer/processors/index.ts +2 -1
- package/src/renderer/processors/math/Coordinates.ts +1 -1
- package/src/renderer/processors/math/Transforms.ts +2 -1
- package/src/renderer/processors/math/index.ts +0 -2
- package/src/renderer/useCanvas.ts +21 -0
- package/src/skia/NativeSetup.ts +2 -2
- package/src/skia/Skia.web.ts +3 -0
- package/src/skia/core/Data.ts +17 -14
- package/src/skia/core/Font.ts +2 -4
- package/src/skia/core/Matrix.ts +6 -0
- package/src/skia/core/Paint.ts +2 -6
- package/src/skia/core/Path.ts +14 -6
- package/src/skia/core/RRect.tsx +5 -0
- package/src/skia/core/Rect.ts +33 -0
- package/src/skia/core/Vector.ts +11 -0
- package/src/skia/core/index.ts +5 -3
- package/src/skia/types/ContourMeasure.tsx +2 -4
- package/src/skia/types/Data/Data.ts +1 -1
- package/src/skia/types/Data/DataFactory.ts +4 -4
- package/src/skia/types/Font/Font.ts +9 -14
- package/src/skia/types/FontMgr/FontMgr.ts +1 -1
- package/src/skia/types/FontMgr/FontMgrFactory.ts +2 -2
- package/src/skia/types/Image/ImageFactory.ts +3 -3
- package/src/skia/types/Matrix.ts +79 -14
- package/src/skia/types/Path/Path.ts +34 -23
- package/src/skia/types/Path/PathFactory.ts +7 -0
- package/src/skia/types/Picture/Picture.ts +2 -2
- package/src/skia/types/Point.ts +2 -0
- package/src/skia/types/RRect.ts +5 -0
- package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +5 -10
- package/src/skia/types/SVG/SVGFactory.ts +2 -2
- package/src/skia/types/Shader/Shader.ts +61 -0
- package/src/skia/types/Skia.ts +1 -1
- package/src/skia/types/Typeface/TypefaceFactory.ts +2 -2
- package/src/skia/web/{api/Host.ts → Host.ts} +7 -1
- package/src/skia/web/JsiImageFilterFactory.ts +144 -0
- package/src/skia/web/{api/JsiSkCanvas.ts → JsiSkCanvas.ts} +19 -11
- package/src/skia/web/{api/JsiSkColor.ts → JsiSkColor.ts} +152 -6
- package/src/skia/web/{api/JsiSkColorFilter.ts → JsiSkColorFilter.ts} +1 -1
- package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
- package/src/skia/web/JsiSkContourMeasure.ts +35 -0
- package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
- package/src/skia/web/JsiSkData.ts +13 -0
- package/src/skia/web/JsiSkDataFactory.ts +35 -0
- package/src/skia/web/JsiSkFont.ts +128 -0
- package/src/skia/web/JsiSkFontMgr.ts +42 -0
- package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
- package/src/skia/web/{api/JsiSkImage.ts → JsiSkImage.ts} +1 -1
- package/src/skia/web/JsiSkImageFactory.ts +40 -0
- package/src/skia/web/JsiSkImageFilter.ts +14 -0
- package/src/skia/web/JsiSkMaskFilter.ts +14 -0
- package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
- package/src/skia/web/JsiSkMatrix.ts +54 -0
- package/src/skia/web/{api/JsiSkPaint.ts → JsiSkPaint.ts} +6 -5
- package/src/skia/web/JsiSkPath.ts +369 -0
- package/src/skia/web/JsiSkPathEffect.ts +14 -0
- package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
- package/src/skia/web/JsiSkPathFactory.ts +54 -0
- package/src/skia/web/JsiSkPicture.ts +45 -0
- package/src/skia/web/JsiSkPictureFactory.ts +20 -0
- package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
- package/src/skia/web/JsiSkPoint.ts +19 -0
- package/src/skia/web/JsiSkRRect.ts +27 -0
- package/src/skia/web/JsiSkRSXform.ts +16 -0
- package/src/skia/web/{api/JsiSkRect.ts → JsiSkRect.ts} +11 -1
- package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
- package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
- package/src/skia/web/JsiSkSVGFactory.ts +20 -0
- package/src/skia/web/JsiSkShader.ts +14 -0
- package/src/skia/web/JsiSkShaderFactory.ts +178 -0
- package/src/skia/web/{api/JsiSkSurface.ts → JsiSkSurface.ts} +1 -1
- package/src/skia/web/{api/JsiSkSurfaceFactory.ts → JsiSkSurfaceFactory.ts} +1 -1
- package/src/skia/web/JsiSkTextBlob.ts +14 -0
- package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
- package/src/skia/web/JsiSkTypeface.ts +28 -0
- package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
- package/src/skia/web/JsiSkVertices.ts +23 -0
- package/src/skia/web/JsiSkVerticesFactory.ts +27 -0
- package/src/skia/web/JsiSkia.ts +98 -0
- package/src/skia/web/index.ts +1 -1
- package/src/values/web/api.ts +2 -2
- package/src/views/SkiaView.web.tsx +192 -0
- package/src/views/types.ts +1 -0
- package/src/views/useTouchHandler.ts +82 -51
- package/src/web/index.ts +13 -0
- package/cpp/skia/include/core/SkCustomMesh.h +0 -202
- package/cpp/skia/include/core/SkStringView.h +0 -185
- package/cpp/skia/include/private/SkPaintParamsKey.h +0 -110
- package/cpp/skia/include/private/SkShaderCodeDictionary.h +0 -63
- package/cpp/skia/include/private/SkTOptional.h +0 -362
- package/lib/commonjs/renderer/processors/math/Matrix3.js +0 -66
- package/lib/commonjs/renderer/processors/math/Matrix3.js.map +0 -1
- package/lib/commonjs/renderer/processors/math/Vector.js +0 -60
- package/lib/commonjs/renderer/processors/math/Vector.js.map +0 -1
- package/lib/commonjs/skia/core/Color.js.map +0 -1
- package/lib/commonjs/skia/core/Shader.js +0 -18
- package/lib/commonjs/skia/core/Shader.js.map +0 -1
- package/lib/commonjs/skia/web/api/Host.js.map +0 -1
- package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +0 -1
- package/lib/commonjs/skia/web/api/JsiSkColor.js.map +0 -1
- package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +0 -1
- package/lib/commonjs/skia/web/api/JsiSkRect.js.map +0 -1
- package/lib/commonjs/skia/web/api/index.js +0 -26
- package/lib/commonjs/skia/web/api/index.js.map +0 -1
- package/lib/module/renderer/processors/math/Matrix3.js +0 -55
- package/lib/module/renderer/processors/math/Matrix3.js.map +0 -1
- package/lib/module/renderer/processors/math/Vector.js.map +0 -1
- package/lib/module/skia/core/Color.js.map +0 -1
- package/lib/module/skia/core/Shader.js +0 -7
- package/lib/module/skia/core/Shader.js.map +0 -1
- package/lib/module/skia/web/api/Host.js.map +0 -1
- package/lib/module/skia/web/api/JsiSkCanvas.js.map +0 -1
- package/lib/module/skia/web/api/JsiSkColor.js.map +0 -1
- package/lib/module/skia/web/api/JsiSkPaint.js.map +0 -1
- package/lib/module/skia/web/api/JsiSkRect.js.map +0 -1
- package/lib/module/skia/web/api/index.js +0 -13
- package/lib/module/skia/web/api/index.js.map +0 -1
- package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +0 -10
- package/lib/typescript/src/renderer/processors/math/Vector.d.ts +0 -23
- package/lib/typescript/src/skia/core/Shader.d.ts +0 -1
- package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +0 -3
- package/lib/typescript/src/skia/web/api/index.d.ts +0 -10
- package/src/animation/timing/functions/__tests__/timing.spec.ts +0 -29
- package/src/renderer/processors/math/Matrix3.ts +0 -73
- package/src/renderer/processors/math/Vector.ts +0 -38
- package/src/skia/__tests__/Rects.spec.ts +0 -40
- package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
- package/src/skia/core/Shader.ts +0 -9
- package/src/skia/web/api/index.ts +0 -15
- package/src/values/web/__tests__/RNSkAnimation.spec.ts +0 -21
- package/src/values/web/__tests__/RNSkDerivedValue.spec.ts +0 -15
- package/src/values/web/__tests__/RNSkReadonlyValue.spec.ts +0 -8
- package/src/values/web/__tests__/RNSkValue.spec.ts +0 -11
@@ -8,23 +8,37 @@
|
|
8
8
|
#ifndef GrSlug_DEFINED
|
9
9
|
#define GrSlug_DEFINED
|
10
10
|
|
11
|
+
#include "include/core/SkData.h"
|
11
12
|
#include "include/core/SkRect.h"
|
12
13
|
#include "include/core/SkRefCnt.h"
|
13
14
|
|
14
15
|
class SkCanvas;
|
16
|
+
class SkMatrix;
|
15
17
|
class SkPaint;
|
16
18
|
class SkTextBlob;
|
19
|
+
class SkReadBuffer;
|
20
|
+
class SkStrikeClient;
|
21
|
+
class SkWriteBuffer;
|
17
22
|
|
18
23
|
// You can use GrSlug to simulate drawTextBlob by defining the following at compile time.
|
19
24
|
// SK_EXPERIMENTAL_SIMULATE_DRAWGLYPHRUNLIST_WITH_SLUG
|
25
|
+
// You can use GrSlug serialization to simulate drawTextBlob by defining the following:
|
26
|
+
// SK_EXPERIMENTAL_SIMULATE_DRAWGLYPHRUNLIST_WITH_SLUG_SERIALIZE
|
20
27
|
// For Skia, add this to your args.gn file.
|
21
28
|
// extra_cflags = ["-D", "SK_EXPERIMENTAL_SIMULATE_DRAWGLYPHRUNLIST_WITH_SLUG"]
|
22
29
|
|
30
|
+
// Internal infrastructure for using SubRuns.
|
31
|
+
class SK_API GrTextReferenceFrame : public SkRefCnt {
|
32
|
+
public:
|
33
|
+
~GrTextReferenceFrame() override;
|
34
|
+
virtual const SkMatrix& initialPositionMatrix() const = 0;
|
35
|
+
};
|
36
|
+
|
23
37
|
// GrSlug encapsulates an SkTextBlob at a specific origin, using a specific paint. It can be
|
24
38
|
// manipulated using matrix and clip changes to the canvas. If the canvas is transformed, then
|
25
39
|
// the GrSlug will also transform with smaller glyphs using bi-linear interpolation to render. You
|
26
40
|
// can think of a GrSlug as making a rubber stamp out of a SkTextBlob.
|
27
|
-
class SK_API GrSlug : public
|
41
|
+
class SK_API GrSlug : public GrTextReferenceFrame {
|
28
42
|
public:
|
29
43
|
~GrSlug() override;
|
30
44
|
// Return nullptr if the blob would not draw. This is not because of clipping, but because of
|
@@ -32,10 +46,33 @@ public:
|
|
32
46
|
static sk_sp<GrSlug> ConvertBlob(
|
33
47
|
SkCanvas* canvas, const SkTextBlob& blob, SkPoint origin, const SkPaint& paint);
|
34
48
|
|
49
|
+
// Serialize the slug.
|
50
|
+
sk_sp<SkData> serialize() const;
|
51
|
+
size_t serialize(void* buffer, size_t size) const;
|
52
|
+
|
53
|
+
// Set the client parameter to the appropriate SkStrikeClient when typeface ID translation
|
54
|
+
// is needed.
|
55
|
+
static sk_sp<GrSlug> Deserialize(
|
56
|
+
const void* data, size_t size, const SkStrikeClient* client = nullptr);
|
57
|
+
static sk_sp<GrSlug> MakeFromBuffer(SkReadBuffer& buffer);
|
58
|
+
|
59
|
+
|
35
60
|
// Draw the GrSlug obeying the canvas's mapping and clipping.
|
36
|
-
void draw(SkCanvas* canvas);
|
61
|
+
void draw(SkCanvas* canvas) const;
|
37
62
|
|
38
63
|
virtual SkRect sourceBounds() const = 0;
|
39
|
-
|
64
|
+
|
65
|
+
// The paint passed into ConvertBlob; this paint is used instead of the paint resulting from
|
66
|
+
// the call to aboutToDraw because when we call draw(), the initial paint is needed to call
|
67
|
+
// aboutToDraw again to get the layer right.
|
68
|
+
virtual const SkPaint& initialPaint() const = 0;
|
69
|
+
|
70
|
+
virtual void doFlatten(SkWriteBuffer&) const = 0;
|
71
|
+
|
72
|
+
uint32_t uniqueID() const { return fUniqueID; }
|
73
|
+
|
74
|
+
private:
|
75
|
+
static uint32_t NextUniqueID();
|
76
|
+
const uint32_t fUniqueID{NextUniqueID()};
|
40
77
|
};
|
41
78
|
#endif // GrSlug_DEFINED
|
@@ -15,8 +15,9 @@
|
|
15
15
|
#include "include/core/SkRefCnt.h"
|
16
16
|
#include "include/utils/SkNoDrawCanvas.h"
|
17
17
|
|
18
|
-
class
|
18
|
+
class GrSlug;
|
19
19
|
struct SkPackedGlyphID;
|
20
|
+
class SkAutoDescriptor;
|
20
21
|
class SkStrikeCache;
|
21
22
|
class SkStrikeClientImpl;
|
22
23
|
class SkStrikeServer;
|
@@ -93,7 +94,8 @@ public:
|
|
93
94
|
kGlyphMetricsFallback = 4,
|
94
95
|
kGlyphPathFallback = 5,
|
95
96
|
|
96
|
-
|
97
|
+
kGlyphDrawable = 6,
|
98
|
+
kLast = kGlyphDrawable
|
97
99
|
};
|
98
100
|
|
99
101
|
// An interface to delete handles that may be pinned by the remote server.
|
@@ -133,11 +135,15 @@ public:
|
|
133
135
|
// Returns false if the data is invalid.
|
134
136
|
SK_SPI bool readStrikeData(const volatile void* memory, size_t memorySize);
|
135
137
|
|
138
|
+
// Given a descriptor re-write the Rec mapping the typefaceID from the renderer to the
|
139
|
+
// corresponding typefaceID on the GPU.
|
140
|
+
SK_SPI bool translateTypefaceID(SkAutoDescriptor* descriptor) const;
|
141
|
+
|
142
|
+
// Given a buffer, unflatten into a slug making sure to do the typefaceID translation from
|
143
|
+
// renderer to GPU. Returns nullptr if there was a problem.
|
144
|
+
sk_sp<GrSlug> deserializeSlug(const void* data, size_t size) const;
|
145
|
+
|
136
146
|
private:
|
137
147
|
std::unique_ptr<SkStrikeClientImpl> fImpl;
|
138
148
|
};
|
139
|
-
|
140
|
-
// For exposure to fuzzing only.
|
141
|
-
bool SkFuzzDeserializeSkDescriptor(sk_sp<SkData> bytes, SkAutoDescriptor* ad);
|
142
|
-
|
143
149
|
#endif // SkChromeRemoteGlyphCache_DEFINED
|
@@ -45,6 +45,13 @@ public:
|
|
45
45
|
|
46
46
|
SK_API GrBackendFormat compressedBackendFormat(SkImage::CompressionType) const;
|
47
47
|
|
48
|
+
/**
|
49
|
+
* Gets the maximum supported sample count for a color type. 1 is returned if only non-MSAA
|
50
|
+
* rendering is supported for the color type. 0 is returned if rendering to this color type
|
51
|
+
* is not supported at all.
|
52
|
+
*/
|
53
|
+
SK_API int maxSurfaceSampleCountForColorType(SkColorType colorType) const;
|
54
|
+
|
48
55
|
// TODO: When the public version is gone, rename to refThreadSafeProxy and add raw ptr ver.
|
49
56
|
sk_sp<GrContextThreadSafeProxy> threadSafeProxy();
|
50
57
|
|
File without changes
|
File without changes
|
@@ -38,6 +38,7 @@ public:
|
|
38
38
|
GrGLenum fWrapT;
|
39
39
|
GrGLfloat fMinLOD;
|
40
40
|
GrGLfloat fMaxLOD;
|
41
|
+
GrGLfloat fMaxAniso;
|
41
42
|
// We always want the border color to be transparent black, so no need to store 4 floats.
|
42
43
|
// Just track if it's been invalidated and no longer the default
|
43
44
|
bool fBorderColorInvalid;
|
@@ -8,8 +8,8 @@
|
|
8
8
|
#ifndef GrImageContext_DEFINED
|
9
9
|
#define GrImageContext_DEFINED
|
10
10
|
|
11
|
-
#include "include/private/
|
12
|
-
#include "include/private/
|
11
|
+
#include "include/private/SingleOwner.h"
|
12
|
+
#include "include/private/gpu/ganesh/GrContext_Base.h"
|
13
13
|
|
14
14
|
class GrImageContextPriv;
|
15
15
|
|
@@ -33,7 +33,7 @@ protected:
|
|
33
33
|
SK_API virtual bool abandoned();
|
34
34
|
|
35
35
|
/** This is only useful for debug purposes */
|
36
|
-
|
36
|
+
skgpu::SingleOwner* singleOwner() const { return &fSingleOwner; }
|
37
37
|
|
38
38
|
GrImageContext* asImageContext() override { return this; }
|
39
39
|
|
@@ -47,7 +47,7 @@ private:
|
|
47
47
|
// This guard is passed to the GrDrawingManager and, from there to all the
|
48
48
|
// GrSurfaceDrawContexts. It is also passed to the GrResourceProvider and SkGpuDevice.
|
49
49
|
// TODO: Move this down to GrRecordingContext.
|
50
|
-
mutable
|
50
|
+
mutable skgpu::SingleOwner fSingleOwner;
|
51
51
|
|
52
52
|
using INHERITED = GrContext_Base;
|
53
53
|
};
|
File without changes
|
File without changes
|
@@ -45,10 +45,8 @@ enum class GrPrimitiveType : uint8_t {
|
|
45
45
|
kPoints,
|
46
46
|
kLines, // 1 pix wide only
|
47
47
|
kLineStrip, // 1 pix wide only
|
48
|
-
kPatches,
|
49
|
-
kPath
|
50
48
|
};
|
51
|
-
static constexpr int kNumGrPrimitiveTypes = (int)GrPrimitiveType::
|
49
|
+
static constexpr int kNumGrPrimitiveTypes = (int)GrPrimitiveType::kLineStrip + 1;
|
52
50
|
|
53
51
|
static constexpr bool GrIsPrimTypeLines(GrPrimitiveType type) {
|
54
52
|
return GrPrimitiveType::kLines == type || GrPrimitiveType::kLineStrip == type;
|
@@ -74,33 +72,6 @@ enum class GrDDLProvider : bool {
|
|
74
72
|
kYes = true
|
75
73
|
};
|
76
74
|
|
77
|
-
/**
|
78
|
-
* Formats for masks, used by the font cache. Important that these are 0-based.
|
79
|
-
*/
|
80
|
-
enum GrMaskFormat {
|
81
|
-
kA8_GrMaskFormat, //!< 1-byte per pixel
|
82
|
-
kA565_GrMaskFormat, //!< 2-bytes per pixel, RGB represent 3-channel LCD coverage
|
83
|
-
kARGB_GrMaskFormat, //!< 4-bytes per pixel, color format
|
84
|
-
|
85
|
-
kLast_GrMaskFormat = kARGB_GrMaskFormat
|
86
|
-
};
|
87
|
-
static const int kMaskFormatCount = kLast_GrMaskFormat + 1;
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Return the number of bytes-per-pixel for the specified mask format.
|
91
|
-
*/
|
92
|
-
inline constexpr int GrMaskFormatBytesPerPixel(GrMaskFormat format) {
|
93
|
-
SkASSERT(format < kMaskFormatCount);
|
94
|
-
// kA8 (0) -> 1
|
95
|
-
// kA565 (1) -> 2
|
96
|
-
// kARGB (2) -> 4
|
97
|
-
static_assert(kA8_GrMaskFormat == 0, "enum_order_dependency");
|
98
|
-
static_assert(kA565_GrMaskFormat == 1, "enum_order_dependency");
|
99
|
-
static_assert(kARGB_GrMaskFormat == 2, "enum_order_dependency");
|
100
|
-
|
101
|
-
return SkTo<int>(1u << format);
|
102
|
-
}
|
103
|
-
|
104
75
|
/** Ownership rules for external GPU resources imported into Skia. */
|
105
76
|
enum GrWrapOwnership {
|
106
77
|
/** Skia will assume the client will keep the resource alive and Skia will not free it. */
|
@@ -257,18 +228,13 @@ enum class GrClampType {
|
|
257
228
|
/**
|
258
229
|
* A number of rectangle/quadrilateral drawing APIs can control anti-aliasing on a per edge basis.
|
259
230
|
* These masks specify which edges are AA'ed. The intent for this is to support tiling with seamless
|
260
|
-
* boundaries, where the inner edges are non-AA and the outer edges are AA. Regular draws
|
261
|
-
*
|
262
|
-
* handled.
|
263
|
-
*
|
264
|
-
* When tiling and there is MSAA, mixed edge rectangles are processed with MSAA, so in order for the
|
265
|
-
* tiled edges to remain seamless, inner tiles with kNone must also be processed with MSAA. In
|
266
|
-
* regular drawing, however, kNone should disable MSAA (if it's supported) to match the expected
|
267
|
-
* appearance.
|
231
|
+
* boundaries, where the inner edges are non-AA and the outer edges are AA. Regular rectangle draws
|
232
|
+
* simply use kAll or kNone depending on if they want anti-aliasing or not.
|
268
233
|
*
|
269
|
-
*
|
270
|
-
*
|
271
|
-
*
|
234
|
+
* In APIs that support per-edge AA, GrQuadAAFlags is the only AA-control parameter that is
|
235
|
+
* provided (compared to the typical GrAA parameter). kNone is equivalent to GrAA::kNo, and any
|
236
|
+
* other set of edge flags would require GrAA::kYes (with rendering output dependent on how that
|
237
|
+
* maps to GrAAType for a given SurfaceDrawContext).
|
272
238
|
*
|
273
239
|
* These values are identical to SkCanvas::QuadAAFlags.
|
274
240
|
*/
|
@@ -288,56 +254,6 @@ static inline GrQuadAAFlags SkToGrQuadAAFlags(unsigned flags) {
|
|
288
254
|
return static_cast<GrQuadAAFlags>(flags);
|
289
255
|
}
|
290
256
|
|
291
|
-
/**
|
292
|
-
* Types of shader-language-specific boxed variables we can create.
|
293
|
-
*/
|
294
|
-
enum GrSLType {
|
295
|
-
kVoid_GrSLType,
|
296
|
-
kBool_GrSLType,
|
297
|
-
kBool2_GrSLType,
|
298
|
-
kBool3_GrSLType,
|
299
|
-
kBool4_GrSLType,
|
300
|
-
kShort_GrSLType,
|
301
|
-
kShort2_GrSLType,
|
302
|
-
kShort3_GrSLType,
|
303
|
-
kShort4_GrSLType,
|
304
|
-
kUShort_GrSLType,
|
305
|
-
kUShort2_GrSLType,
|
306
|
-
kUShort3_GrSLType,
|
307
|
-
kUShort4_GrSLType,
|
308
|
-
kFloat_GrSLType,
|
309
|
-
kFloat2_GrSLType,
|
310
|
-
kFloat3_GrSLType,
|
311
|
-
kFloat4_GrSLType,
|
312
|
-
kFloat2x2_GrSLType,
|
313
|
-
kFloat3x3_GrSLType,
|
314
|
-
kFloat4x4_GrSLType,
|
315
|
-
kHalf_GrSLType,
|
316
|
-
kHalf2_GrSLType,
|
317
|
-
kHalf3_GrSLType,
|
318
|
-
kHalf4_GrSLType,
|
319
|
-
kHalf2x2_GrSLType,
|
320
|
-
kHalf3x3_GrSLType,
|
321
|
-
kHalf4x4_GrSLType,
|
322
|
-
kInt_GrSLType,
|
323
|
-
kInt2_GrSLType,
|
324
|
-
kInt3_GrSLType,
|
325
|
-
kInt4_GrSLType,
|
326
|
-
kUInt_GrSLType,
|
327
|
-
kUInt2_GrSLType,
|
328
|
-
kUInt3_GrSLType,
|
329
|
-
kUInt4_GrSLType,
|
330
|
-
kTexture2DSampler_GrSLType,
|
331
|
-
kTextureExternalSampler_GrSLType,
|
332
|
-
kTexture2DRectSampler_GrSLType,
|
333
|
-
kTexture2D_GrSLType,
|
334
|
-
kSampler_GrSLType,
|
335
|
-
kInput_GrSLType,
|
336
|
-
|
337
|
-
kLast_GrSLType = kInput_GrSLType
|
338
|
-
};
|
339
|
-
static const int kGrSLTypeCount = kLast_GrSLType + 1;
|
340
|
-
|
341
257
|
/**
|
342
258
|
* The type of texture. Backends other than GL currently only use the 2D value but the type must
|
343
259
|
* still be known at the API-neutral layer as it used to determine whether MIP maps, renderability,
|
@@ -362,192 +278,10 @@ static const int kGrShaderTypeCount = kLastkFragment_GrShaderType + 1;
|
|
362
278
|
enum GrShaderFlags {
|
363
279
|
kNone_GrShaderFlags = 0,
|
364
280
|
kVertex_GrShaderFlag = 1 << 0,
|
365
|
-
|
366
|
-
kTessEvaluation_GrShaderFlag = 1 << 2,
|
367
|
-
kFragment_GrShaderFlag = 1 << 3
|
281
|
+
kFragment_GrShaderFlag = 1 << 1
|
368
282
|
};
|
369
283
|
SK_MAKE_BITFIELD_OPS(GrShaderFlags)
|
370
284
|
|
371
|
-
/** Is the shading language type float (including vectors/matrices)? */
|
372
|
-
static constexpr bool GrSLTypeIsFloatType(GrSLType type) {
|
373
|
-
switch (type) {
|
374
|
-
case kFloat_GrSLType:
|
375
|
-
case kFloat2_GrSLType:
|
376
|
-
case kFloat3_GrSLType:
|
377
|
-
case kFloat4_GrSLType:
|
378
|
-
case kFloat2x2_GrSLType:
|
379
|
-
case kFloat3x3_GrSLType:
|
380
|
-
case kFloat4x4_GrSLType:
|
381
|
-
case kHalf_GrSLType:
|
382
|
-
case kHalf2_GrSLType:
|
383
|
-
case kHalf3_GrSLType:
|
384
|
-
case kHalf4_GrSLType:
|
385
|
-
case kHalf2x2_GrSLType:
|
386
|
-
case kHalf3x3_GrSLType:
|
387
|
-
case kHalf4x4_GrSLType:
|
388
|
-
return true;
|
389
|
-
|
390
|
-
case kVoid_GrSLType:
|
391
|
-
case kTexture2DSampler_GrSLType:
|
392
|
-
case kTextureExternalSampler_GrSLType:
|
393
|
-
case kTexture2DRectSampler_GrSLType:
|
394
|
-
case kBool_GrSLType:
|
395
|
-
case kBool2_GrSLType:
|
396
|
-
case kBool3_GrSLType:
|
397
|
-
case kBool4_GrSLType:
|
398
|
-
case kShort_GrSLType:
|
399
|
-
case kShort2_GrSLType:
|
400
|
-
case kShort3_GrSLType:
|
401
|
-
case kShort4_GrSLType:
|
402
|
-
case kUShort_GrSLType:
|
403
|
-
case kUShort2_GrSLType:
|
404
|
-
case kUShort3_GrSLType:
|
405
|
-
case kUShort4_GrSLType:
|
406
|
-
case kInt_GrSLType:
|
407
|
-
case kInt2_GrSLType:
|
408
|
-
case kInt3_GrSLType:
|
409
|
-
case kInt4_GrSLType:
|
410
|
-
case kUInt_GrSLType:
|
411
|
-
case kUInt2_GrSLType:
|
412
|
-
case kUInt3_GrSLType:
|
413
|
-
case kUInt4_GrSLType:
|
414
|
-
case kTexture2D_GrSLType:
|
415
|
-
case kSampler_GrSLType:
|
416
|
-
case kInput_GrSLType:
|
417
|
-
return false;
|
418
|
-
}
|
419
|
-
SkUNREACHABLE;
|
420
|
-
}
|
421
|
-
|
422
|
-
/** Is the shading language type integral (including vectors)? */
|
423
|
-
static constexpr bool GrSLTypeIsIntegralType(GrSLType type) {
|
424
|
-
switch (type) {
|
425
|
-
case kShort_GrSLType:
|
426
|
-
case kShort2_GrSLType:
|
427
|
-
case kShort3_GrSLType:
|
428
|
-
case kShort4_GrSLType:
|
429
|
-
case kUShort_GrSLType:
|
430
|
-
case kUShort2_GrSLType:
|
431
|
-
case kUShort3_GrSLType:
|
432
|
-
case kUShort4_GrSLType:
|
433
|
-
case kInt_GrSLType:
|
434
|
-
case kInt2_GrSLType:
|
435
|
-
case kInt3_GrSLType:
|
436
|
-
case kInt4_GrSLType:
|
437
|
-
case kUInt_GrSLType:
|
438
|
-
case kUInt2_GrSLType:
|
439
|
-
case kUInt3_GrSLType:
|
440
|
-
case kUInt4_GrSLType:
|
441
|
-
return true;
|
442
|
-
|
443
|
-
case kFloat_GrSLType:
|
444
|
-
case kFloat2_GrSLType:
|
445
|
-
case kFloat3_GrSLType:
|
446
|
-
case kFloat4_GrSLType:
|
447
|
-
case kFloat2x2_GrSLType:
|
448
|
-
case kFloat3x3_GrSLType:
|
449
|
-
case kFloat4x4_GrSLType:
|
450
|
-
case kHalf_GrSLType:
|
451
|
-
case kHalf2_GrSLType:
|
452
|
-
case kHalf3_GrSLType:
|
453
|
-
case kHalf4_GrSLType:
|
454
|
-
case kHalf2x2_GrSLType:
|
455
|
-
case kHalf3x3_GrSLType:
|
456
|
-
case kHalf4x4_GrSLType:
|
457
|
-
case kVoid_GrSLType:
|
458
|
-
case kTexture2DSampler_GrSLType:
|
459
|
-
case kTextureExternalSampler_GrSLType:
|
460
|
-
case kTexture2DRectSampler_GrSLType:
|
461
|
-
case kBool_GrSLType:
|
462
|
-
case kBool2_GrSLType:
|
463
|
-
case kBool3_GrSLType:
|
464
|
-
case kBool4_GrSLType:
|
465
|
-
case kTexture2D_GrSLType:
|
466
|
-
case kSampler_GrSLType:
|
467
|
-
case kInput_GrSLType:
|
468
|
-
return false;
|
469
|
-
}
|
470
|
-
SkUNREACHABLE;
|
471
|
-
}
|
472
|
-
|
473
|
-
/**
|
474
|
-
* Is the shading language type supported as a uniform (ie, does it have a corresponding set
|
475
|
-
* function on GrGLSLProgramDataManager)?
|
476
|
-
*/
|
477
|
-
static constexpr bool GrSLTypeCanBeUniformValue(GrSLType type) {
|
478
|
-
return GrSLTypeIsFloatType(type) || GrSLTypeIsIntegralType(type);
|
479
|
-
}
|
480
|
-
|
481
|
-
/** If the type represents a single value or vector return the vector length, else -1. */
|
482
|
-
static constexpr int GrSLTypeVecLength(GrSLType type) {
|
483
|
-
switch (type) {
|
484
|
-
case kFloat_GrSLType:
|
485
|
-
case kHalf_GrSLType:
|
486
|
-
case kBool_GrSLType:
|
487
|
-
case kShort_GrSLType:
|
488
|
-
case kUShort_GrSLType:
|
489
|
-
case kInt_GrSLType:
|
490
|
-
case kUInt_GrSLType:
|
491
|
-
return 1;
|
492
|
-
|
493
|
-
case kFloat2_GrSLType:
|
494
|
-
case kHalf2_GrSLType:
|
495
|
-
case kBool2_GrSLType:
|
496
|
-
case kShort2_GrSLType:
|
497
|
-
case kUShort2_GrSLType:
|
498
|
-
case kInt2_GrSLType:
|
499
|
-
case kUInt2_GrSLType:
|
500
|
-
return 2;
|
501
|
-
|
502
|
-
case kFloat3_GrSLType:
|
503
|
-
case kHalf3_GrSLType:
|
504
|
-
case kBool3_GrSLType:
|
505
|
-
case kShort3_GrSLType:
|
506
|
-
case kUShort3_GrSLType:
|
507
|
-
case kInt3_GrSLType:
|
508
|
-
case kUInt3_GrSLType:
|
509
|
-
return 3;
|
510
|
-
|
511
|
-
case kFloat4_GrSLType:
|
512
|
-
case kHalf4_GrSLType:
|
513
|
-
case kBool4_GrSLType:
|
514
|
-
case kShort4_GrSLType:
|
515
|
-
case kUShort4_GrSLType:
|
516
|
-
case kInt4_GrSLType:
|
517
|
-
case kUInt4_GrSLType:
|
518
|
-
return 4;
|
519
|
-
|
520
|
-
case kFloat2x2_GrSLType:
|
521
|
-
case kFloat3x3_GrSLType:
|
522
|
-
case kFloat4x4_GrSLType:
|
523
|
-
case kHalf2x2_GrSLType:
|
524
|
-
case kHalf3x3_GrSLType:
|
525
|
-
case kHalf4x4_GrSLType:
|
526
|
-
case kVoid_GrSLType:
|
527
|
-
case kTexture2DSampler_GrSLType:
|
528
|
-
case kTextureExternalSampler_GrSLType:
|
529
|
-
case kTexture2DRectSampler_GrSLType:
|
530
|
-
case kTexture2D_GrSLType:
|
531
|
-
case kSampler_GrSLType:
|
532
|
-
case kInput_GrSLType:
|
533
|
-
return -1;
|
534
|
-
}
|
535
|
-
SkUNREACHABLE;
|
536
|
-
}
|
537
|
-
|
538
|
-
static inline GrSLType GrSLCombinedSamplerTypeForTextureType(GrTextureType type) {
|
539
|
-
switch (type) {
|
540
|
-
case GrTextureType::k2D:
|
541
|
-
return kTexture2DSampler_GrSLType;
|
542
|
-
case GrTextureType::kRectangle:
|
543
|
-
return kTexture2DRectSampler_GrSLType;
|
544
|
-
case GrTextureType::kExternal:
|
545
|
-
return kTextureExternalSampler_GrSLType;
|
546
|
-
default:
|
547
|
-
SK_ABORT("Unexpected texture type");
|
548
|
-
}
|
549
|
-
}
|
550
|
-
|
551
285
|
/** Rectangle and external textures only support the clamp wrap mode and do not support
|
552
286
|
* MIP maps.
|
553
287
|
*/
|
@@ -564,56 +298,6 @@ static inline bool GrTextureTypeHasRestrictedSampling(GrTextureType type) {
|
|
564
298
|
}
|
565
299
|
}
|
566
300
|
|
567
|
-
static constexpr bool GrSLTypeIsCombinedSamplerType(GrSLType type) {
|
568
|
-
switch (type) {
|
569
|
-
case kTexture2DSampler_GrSLType:
|
570
|
-
case kTextureExternalSampler_GrSLType:
|
571
|
-
case kTexture2DRectSampler_GrSLType:
|
572
|
-
return true;
|
573
|
-
|
574
|
-
case kVoid_GrSLType:
|
575
|
-
case kFloat_GrSLType:
|
576
|
-
case kFloat2_GrSLType:
|
577
|
-
case kFloat3_GrSLType:
|
578
|
-
case kFloat4_GrSLType:
|
579
|
-
case kFloat2x2_GrSLType:
|
580
|
-
case kFloat3x3_GrSLType:
|
581
|
-
case kFloat4x4_GrSLType:
|
582
|
-
case kHalf_GrSLType:
|
583
|
-
case kHalf2_GrSLType:
|
584
|
-
case kHalf3_GrSLType:
|
585
|
-
case kHalf4_GrSLType:
|
586
|
-
case kHalf2x2_GrSLType:
|
587
|
-
case kHalf3x3_GrSLType:
|
588
|
-
case kHalf4x4_GrSLType:
|
589
|
-
case kInt_GrSLType:
|
590
|
-
case kInt2_GrSLType:
|
591
|
-
case kInt3_GrSLType:
|
592
|
-
case kInt4_GrSLType:
|
593
|
-
case kUInt_GrSLType:
|
594
|
-
case kUInt2_GrSLType:
|
595
|
-
case kUInt3_GrSLType:
|
596
|
-
case kUInt4_GrSLType:
|
597
|
-
case kBool_GrSLType:
|
598
|
-
case kBool2_GrSLType:
|
599
|
-
case kBool3_GrSLType:
|
600
|
-
case kBool4_GrSLType:
|
601
|
-
case kShort_GrSLType:
|
602
|
-
case kShort2_GrSLType:
|
603
|
-
case kShort3_GrSLType:
|
604
|
-
case kShort4_GrSLType:
|
605
|
-
case kUShort_GrSLType:
|
606
|
-
case kUShort2_GrSLType:
|
607
|
-
case kUShort3_GrSLType:
|
608
|
-
case kUShort4_GrSLType:
|
609
|
-
case kTexture2D_GrSLType:
|
610
|
-
case kSampler_GrSLType:
|
611
|
-
case kInput_GrSLType:
|
612
|
-
return false;
|
613
|
-
}
|
614
|
-
SkUNREACHABLE;
|
615
|
-
}
|
616
|
-
|
617
301
|
//////////////////////////////////////////////////////////////////////////////
|
618
302
|
|
619
303
|
/**
|
@@ -883,6 +567,7 @@ enum class GrColorType {
|
|
883
567
|
kAlpha_8xxx,
|
884
568
|
kAlpha_F32xxx,
|
885
569
|
kGray_8xxx,
|
570
|
+
kR_8xxx,
|
886
571
|
|
887
572
|
// Types used to initialize backend textures.
|
888
573
|
kRGB_888,
|
@@ -920,12 +605,13 @@ static constexpr SkColorType GrColorTypeToSkColorType(GrColorType ct) {
|
|
920
605
|
case GrColorType::kAlpha_8xxx: return kUnknown_SkColorType;
|
921
606
|
case GrColorType::kAlpha_F32xxx: return kUnknown_SkColorType;
|
922
607
|
case GrColorType::kGray_8xxx: return kUnknown_SkColorType;
|
608
|
+
case GrColorType::kR_8xxx: return kUnknown_SkColorType;
|
923
609
|
case GrColorType::kAlpha_16: return kA16_unorm_SkColorType;
|
924
610
|
case GrColorType::kRG_1616: return kR16G16_unorm_SkColorType;
|
925
611
|
case GrColorType::kRGBA_16161616: return kR16G16B16A16_unorm_SkColorType;
|
926
612
|
case GrColorType::kRG_F16: return kR16G16_float_SkColorType;
|
927
613
|
case GrColorType::kRGB_888: return kUnknown_SkColorType;
|
928
|
-
case GrColorType::kR_8: return
|
614
|
+
case GrColorType::kR_8: return kR8_unorm_SkColorType;
|
929
615
|
case GrColorType::kR_16: return kUnknown_SkColorType;
|
930
616
|
case GrColorType::kR_F16: return kUnknown_SkColorType;
|
931
617
|
case GrColorType::kGray_F16: return kUnknown_SkColorType;
|
@@ -959,6 +645,7 @@ static constexpr GrColorType SkColorTypeToGrColorType(SkColorType ct) {
|
|
959
645
|
case kA16_float_SkColorType: return GrColorType::kAlpha_F16;
|
960
646
|
case kR16G16_float_SkColorType: return GrColorType::kRG_F16;
|
961
647
|
case kR16G16B16A16_unorm_SkColorType: return GrColorType::kRGBA_16161616;
|
648
|
+
case kR8_unorm_SkColorType: return GrColorType::kR_8;
|
962
649
|
}
|
963
650
|
SkUNREACHABLE;
|
964
651
|
}
|
@@ -985,6 +672,7 @@ static constexpr uint32_t GrColorTypeChannelFlags(GrColorType ct) {
|
|
985
672
|
case GrColorType::kAlpha_8xxx: return kAlpha_SkColorChannelFlag;
|
986
673
|
case GrColorType::kAlpha_F32xxx: return kAlpha_SkColorChannelFlag;
|
987
674
|
case GrColorType::kGray_8xxx: return kGray_SkColorChannelFlag;
|
675
|
+
case GrColorType::kR_8xxx: return kRed_SkColorChannelFlag;
|
988
676
|
case GrColorType::kAlpha_16: return kAlpha_SkColorChannelFlag;
|
989
677
|
case GrColorType::kRG_1616: return kRG_SkColorChannelFlags;
|
990
678
|
case GrColorType::kRGBA_16161616: return kRGBA_SkColorChannelFlags;
|
@@ -1135,6 +823,8 @@ static constexpr GrColorFormatDesc GrGetColorTypeDesc(GrColorType ct) {
|
|
1135
823
|
return GrColorFormatDesc::MakeAlpha(32, GrColorTypeEncoding::kFloat);
|
1136
824
|
case GrColorType::kGray_8xxx:
|
1137
825
|
return GrColorFormatDesc::MakeGray(8, GrColorTypeEncoding::kUnorm);
|
826
|
+
case GrColorType::kR_8xxx:
|
827
|
+
return GrColorFormatDesc::MakeR(8, GrColorTypeEncoding::kUnorm);
|
1138
828
|
case GrColorType::kAlpha_16:
|
1139
829
|
return GrColorFormatDesc::MakeAlpha(16, GrColorTypeEncoding::kUnorm);
|
1140
830
|
case GrColorType::kRG_1616:
|
@@ -1211,6 +901,7 @@ static constexpr size_t GrColorTypeBytesPerPixel(GrColorType ct) {
|
|
1211
901
|
case GrColorType::kAlpha_8xxx: return 4;
|
1212
902
|
case GrColorType::kAlpha_F32xxx: return 16;
|
1213
903
|
case GrColorType::kGray_8xxx: return 4;
|
904
|
+
case GrColorType::kR_8xxx: return 4;
|
1214
905
|
case GrColorType::kAlpha_16: return 2;
|
1215
906
|
case GrColorType::kRG_1616: return 4;
|
1216
907
|
case GrColorType::kRGBA_16161616: return 8;
|
@@ -1239,48 +930,6 @@ static constexpr SkColorType GrCompressionTypeToSkColorType(SkImage::Compression
|
|
1239
930
|
SkUNREACHABLE;
|
1240
931
|
}
|
1241
932
|
|
1242
|
-
static constexpr GrColorType GrMaskFormatToColorType(GrMaskFormat format) {
|
1243
|
-
switch (format) {
|
1244
|
-
case kA8_GrMaskFormat:
|
1245
|
-
return GrColorType::kAlpha_8;
|
1246
|
-
case kA565_GrMaskFormat:
|
1247
|
-
return GrColorType::kBGR_565;
|
1248
|
-
case kARGB_GrMaskFormat:
|
1249
|
-
return GrColorType::kRGBA_8888;
|
1250
|
-
}
|
1251
|
-
SkUNREACHABLE;
|
1252
|
-
}
|
1253
|
-
|
1254
|
-
/**
|
1255
|
-
* Ref-counted object that calls a callback from its destructor.
|
1256
|
-
*/
|
1257
|
-
class GrRefCntedCallback : public SkNVRefCnt<GrRefCntedCallback> {
|
1258
|
-
public:
|
1259
|
-
using Context = void*;
|
1260
|
-
using Callback = void (*)(Context);
|
1261
|
-
|
1262
|
-
static sk_sp<GrRefCntedCallback> Make(Callback proc, Context ctx) {
|
1263
|
-
if (!proc) {
|
1264
|
-
return nullptr;
|
1265
|
-
}
|
1266
|
-
return sk_sp<GrRefCntedCallback>(new GrRefCntedCallback(proc, ctx));
|
1267
|
-
}
|
1268
|
-
|
1269
|
-
~GrRefCntedCallback() { fReleaseProc(fReleaseCtx); }
|
1270
|
-
|
1271
|
-
Context context() const { return fReleaseCtx; }
|
1272
|
-
|
1273
|
-
private:
|
1274
|
-
GrRefCntedCallback(Callback proc, Context ctx) : fReleaseProc(proc), fReleaseCtx(ctx) {}
|
1275
|
-
GrRefCntedCallback(const GrRefCntedCallback&) = delete;
|
1276
|
-
GrRefCntedCallback(GrRefCntedCallback&&) = delete;
|
1277
|
-
GrRefCntedCallback& operator=(const GrRefCntedCallback&) = delete;
|
1278
|
-
GrRefCntedCallback& operator=(GrRefCntedCallback&&) = delete;
|
1279
|
-
|
1280
|
-
Callback fReleaseProc;
|
1281
|
-
Context fReleaseCtx;
|
1282
|
-
};
|
1283
|
-
|
1284
933
|
enum class GrDstSampleFlags {
|
1285
934
|
kNone = 0,
|
1286
935
|
kRequiresTextureBarrier = 1 << 0,
|
@@ -1325,6 +974,7 @@ static constexpr const char* GrColorTypeToStr(GrColorType ct) {
|
|
1325
974
|
case GrColorType::kAlpha_8xxx: return "kAlpha_8xxx";
|
1326
975
|
case GrColorType::kAlpha_F32xxx: return "kAlpha_F32xxx";
|
1327
976
|
case GrColorType::kGray_8xxx: return "kGray_8xxx";
|
977
|
+
case GrColorType::kR_8xxx: return "kR_8xxx";
|
1328
978
|
case GrColorType::kAlpha_16: return "kAlpha_16";
|
1329
979
|
case GrColorType::kRG_1616: return "kRG_1616";
|
1330
980
|
case GrColorType::kRGBA_16161616: return "kRGBA_16161616";
|
@@ -1349,6 +999,14 @@ static constexpr const char* GrCompressionTypeToStr(SkImage::CompressionType com
|
|
1349
999
|
}
|
1350
1000
|
SkUNREACHABLE;
|
1351
1001
|
}
|
1002
|
+
|
1003
|
+
static constexpr const char* GrSurfaceOriginToStr(GrSurfaceOrigin origin) {
|
1004
|
+
switch (origin) {
|
1005
|
+
case kTopLeft_GrSurfaceOrigin: return "kTopLeft";
|
1006
|
+
case kBottomLeft_GrSurfaceOrigin: return "kBottomLeft";
|
1007
|
+
}
|
1008
|
+
SkUNREACHABLE;
|
1009
|
+
}
|
1352
1010
|
#endif
|
1353
1011
|
|
1354
1012
|
#endif
|
File without changes
|