@shopify/react-native-skia 1.3.13 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/android/CMakeLists.txt +9 -4
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +6 -0
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.cpp +81 -0
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.h +40 -0
- package/cpp/api/JsiSkApi.h +2 -0
- package/cpp/api/JsiSkPath.h +29 -19
- package/cpp/api/JsiSkRuntimeEffect.h +7 -0
- package/cpp/api/JsiSkiaContext.h +79 -0
- package/cpp/rnskia/RNSkPlatformContext.h +4 -0
- package/cpp/rnskia/SkiaContext.h +22 -0
- package/cpp/skia/include/android/GrAHardwareBufferUtils.h +2 -2
- package/cpp/skia/include/android/SkImageAndroid.h +1 -1
- package/cpp/skia/include/android/SkSurfaceAndroid.h +1 -1
- package/cpp/skia/include/codec/SkAndroidCodec.h +13 -9
- package/cpp/skia/include/codec/SkCodec.h +28 -5
- package/cpp/skia/include/core/SkArc.h +69 -0
- package/cpp/skia/include/core/SkBitmap.h +10 -0
- package/cpp/skia/include/core/SkBlender.h +2 -3
- package/cpp/skia/include/core/SkCanvas.h +86 -16
- package/cpp/skia/include/core/SkCapabilities.h +0 -4
- package/cpp/skia/include/core/SkColorFilter.h +4 -4
- package/cpp/skia/include/core/SkColorPriv.h +5 -7
- package/cpp/skia/include/core/SkColorType.h +2 -0
- package/cpp/skia/include/core/SkFlattenable.h +1 -1
- package/cpp/skia/include/core/SkFontArguments.h +3 -1
- package/cpp/skia/include/core/SkFontParameters.h +3 -2
- package/cpp/skia/include/core/SkFourByteTag.h +19 -0
- package/cpp/skia/include/core/SkImage.h +41 -1
- package/cpp/skia/include/core/SkImageGenerator.h +0 -5
- package/cpp/skia/include/core/SkImageInfo.h +20 -0
- package/cpp/skia/include/core/SkM44.h +1 -1
- package/cpp/skia/include/core/SkMatrix.h +2 -1
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkPaint.h +1 -1
- package/cpp/skia/include/core/SkPath.h +20 -6
- package/cpp/skia/include/core/SkPathMeasure.h +1 -0
- package/cpp/skia/include/core/SkPicture.h +5 -5
- package/cpp/skia/include/core/SkPoint3.h +2 -12
- package/cpp/skia/include/core/SkRRect.h +5 -0
- package/cpp/skia/include/core/SkRect.h +5 -16
- package/cpp/skia/include/core/SkRefCnt.h +2 -0
- package/cpp/skia/include/core/SkScalar.h +20 -32
- package/cpp/skia/include/core/SkShader.h +17 -0
- package/cpp/skia/include/core/SkSize.h +2 -1
- package/cpp/skia/include/core/SkStream.h +2 -3
- package/cpp/skia/include/core/SkStrokeRec.h +6 -1
- package/cpp/skia/include/core/SkSurface.h +13 -4
- package/cpp/skia/include/core/SkSurfaceProps.h +5 -0
- package/cpp/skia/include/core/SkSwizzle.h +3 -1
- package/cpp/skia/include/core/SkTypeface.h +1 -0
- package/cpp/skia/include/core/SkTypes.h +1 -19
- package/cpp/skia/include/core/SkUnPreMultiply.h +4 -5
- package/cpp/skia/include/core/SkVertices.h +4 -2
- package/cpp/skia/include/docs/SkPDFDocument.h +11 -14
- package/cpp/skia/include/effects/SkHighContrastFilter.h +6 -6
- package/cpp/skia/include/effects/SkImageFilters.h +49 -23
- package/cpp/skia/include/effects/SkRuntimeEffect.h +51 -70
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +2 -0
- package/cpp/skia/include/effects/SkTableMaskFilter.h +2 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +2 -120
- package/cpp/skia/include/gpu/GrBackendSurface.h +2 -466
- package/cpp/skia/include/gpu/GrContextOptions.h +2 -368
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +2 -179
- package/cpp/skia/include/gpu/GrDirectContext.h +2 -1011
- package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +2 -47
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +2 -41
- package/cpp/skia/include/gpu/GrRecordingContext.h +2 -279
- package/cpp/skia/include/gpu/GrTypes.h +2 -238
- package/cpp/skia/include/gpu/GrYUVABackendTextures.h +2 -118
- package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +2 -29
- package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +2 -242
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +80 -0
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +412 -0
- package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +386 -0
- package/cpp/skia/include/gpu/ganesh/GrContextThreadSafeProxy.h +175 -0
- package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +993 -0
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +53 -0
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkaroundsAutogen.h +45 -0
- package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +285 -0
- package/cpp/skia/include/gpu/ganesh/GrTypes.h +177 -0
- package/cpp/skia/include/gpu/ganesh/GrYUVABackendTextures.h +130 -0
- package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendContext.h +35 -0
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DTypes.h +248 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleHelpers.h +17 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleInterface.h +45 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLConfig.h +69 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLExtensions.h +79 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLFunctions.h +306 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLInterface.h +338 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLMakeWebGLInterface.h +19 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLTypes.h +219 -0
- package/cpp/skia/include/gpu/{gl → ganesh/gl}/egl/GrGLMakeEGLInterface.h +2 -2
- package/cpp/skia/include/gpu/ganesh/gl/epoxy/GrGLMakeEpoxyEGLInterface.h +20 -0
- package/cpp/skia/include/gpu/ganesh/gl/ios/GrGLMakeIOSInterface.h +20 -0
- package/cpp/skia/include/gpu/ganesh/gl/mac/GrGLMakeMacInterface.h +20 -0
- package/cpp/skia/include/gpu/ganesh/gl/win/GrGLMakeWinInterface.h +20 -0
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +166 -0
- package/cpp/skia/include/gpu/{mtl → ganesh/mtl}/GrMtlBackendContext.h +2 -2
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSemaphore.h +23 -0
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSurface.h +44 -0
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlDirectContext.h +30 -0
- package/cpp/skia/include/gpu/{mtl → ganesh/mtl}/GrMtlTypes.h +1 -3
- package/cpp/skia/include/gpu/ganesh/mtl/SkSurfaceMetal.h +2 -2
- package/cpp/skia/include/gpu/ganesh/vk/GrBackendDrawableInfo.h +2 -2
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSurface.h +7 -3
- package/cpp/skia/include/gpu/ganesh/vk/GrVkDirectContext.h +6 -3
- package/cpp/skia/include/gpu/ganesh/vk/GrVkTypes.h +101 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +2 -9
- package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +2 -38
- package/cpp/skia/include/gpu/gl/GrGLConfig.h +2 -73
- package/cpp/skia/include/gpu/gl/GrGLExtensions.h +2 -72
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +2 -301
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +2 -332
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +2 -213
- package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +20 -41
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +18 -118
- package/cpp/skia/include/gpu/graphite/Context.h +122 -44
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +30 -3
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +45 -17
- package/cpp/skia/include/gpu/graphite/Image.h +56 -54
- package/cpp/skia/include/gpu/graphite/Recorder.h +68 -14
- package/cpp/skia/include/gpu/graphite/Recording.h +3 -3
- package/cpp/skia/include/gpu/graphite/Surface.h +6 -2
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +36 -117
- package/cpp/skia/include/gpu/graphite/dawn/DawnTypes.h +108 -6
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +4 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +41 -25
- package/cpp/skia/include/gpu/graphite/precompile/PaintOptions.h +197 -0
- package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +48 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileBase.h +84 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileBlender.h +56 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileColorFilter.h +85 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileImageFilter.h +119 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileMaskFilter.h +51 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileRuntimeEffect.h +47 -0
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileShader.h +170 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteTypes.h +24 -2
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +2 -157
- package/cpp/skia/include/gpu/mtl/MtlMemoryAllocator.h +2 -0
- package/cpp/skia/include/gpu/vk/GrVkTypes.h +2 -101
- package/cpp/skia/include/gpu/vk/VulkanBackendContext.h +13 -8
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +9 -3
- package/cpp/skia/include/gpu/vk/VulkanMemoryAllocator.h +4 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +25 -8
- package/cpp/skia/include/ports/SkFontMgr_Fontations.h +20 -0
- package/cpp/skia/include/ports/SkFontMgr_android.h +7 -0
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +3 -1
- package/cpp/skia/include/ports/SkTypeface_win.h +0 -17
- package/cpp/skia/include/private/SkEncodedInfo.h +8 -2
- package/cpp/skia/include/private/SkExif.h +28 -75
- package/cpp/skia/include/private/SkGainmapInfo.h +47 -7
- package/cpp/skia/include/private/SkJpegMetadataDecoder.h +12 -0
- package/cpp/skia/include/private/SkPathRef.h +52 -44
- package/cpp/skia/include/private/SkXmp.h +13 -4
- package/cpp/skia/include/private/base/SkASAN.h +56 -0
- package/cpp/skia/include/private/base/SkAlign.h +5 -0
- package/cpp/skia/include/private/base/SkContainers.h +10 -2
- package/cpp/skia/include/private/base/SkFeatures.h +22 -1
- package/cpp/skia/include/private/base/SkFloatingPoint.h +51 -65
- package/cpp/skia/include/private/base/SkMacros.h +67 -0
- package/cpp/skia/include/private/base/SkMalloc.h +8 -0
- package/cpp/skia/include/private/base/SkPoint_impl.h +2 -11
- package/cpp/skia/include/private/base/SkTArray.h +108 -23
- package/cpp/skia/include/private/base/SkTFitsIn.h +1 -12
- package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +1 -1
- package/cpp/skia/include/private/chromium/GrDeferredDisplayListRecorder.h +0 -39
- package/cpp/skia/include/private/chromium/GrPromiseImageTexture.h +1 -1
- package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +3 -3
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -4
- package/cpp/skia/include/private/chromium/Slug.h +5 -11
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrD3DTypesMinimal.h +2 -2
- package/cpp/skia/include/private/gpu/ganesh/GrTextureGenerator.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +21 -93
- package/cpp/skia/include/private/gpu/vk/SkiaVulkan.h +2 -2
- package/cpp/skia/include/utils/SkCustomTypeface.h +1 -0
- package/cpp/skia/include/utils/SkNWayCanvas.h +1 -1
- package/cpp/skia/include/utils/SkParse.h +0 -1
- package/cpp/skia/modules/skcms/src/Transform_inl.h +59 -56
- package/cpp/skia/modules/skcms/src/skcms_Transform.h +3 -0
- package/cpp/skia/modules/skcms/src/skcms_internals.h +2 -0
- package/cpp/skia/modules/skcms/src/skcms_public.h +46 -14
- package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +15 -1
- package/cpp/skia/modules/skparagraph/include/TextStyle.h +2 -2
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +2 -4
- package/cpp/skia/modules/skresources/include/SkResources.h +1 -1
- package/cpp/skia/modules/skshaper/include/SkShaper.h +316 -0
- package/cpp/skia/modules/skshaper/include/SkShaper_coretext.h +19 -0
- package/cpp/skia/modules/skshaper/include/SkShaper_factory.h +41 -0
- package/cpp/skia/modules/skshaper/include/SkShaper_harfbuzz.h +39 -0
- package/cpp/skia/modules/skshaper/include/SkShaper_skunicode.h +28 -0
- package/cpp/skia/modules/skunicode/include/SkUnicode.h +6 -23
- package/cpp/skia/modules/svg/include/SkSVGAttribute.h +0 -3
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +12 -2
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +13 -0
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +6 -0
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +17 -1
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +25 -15
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +13 -2
- package/cpp/skia/modules/svg/include/SkSVGFe.h +11 -2
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +82 -0
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +10 -1
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +10 -0
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +10 -0
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +5 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +11 -0
- package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +63 -0
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +8 -0
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +3 -3
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +10 -2
- package/cpp/skia/modules/svg/include/SkSVGImage.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGLine.h +11 -0
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +10 -0
- package/cpp/skia/modules/svg/include/SkSVGMask.h +6 -0
- package/cpp/skia/modules/svg/include/SkSVGNode.h +13 -2
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +5 -0
- package/cpp/skia/modules/svg/include/SkSVGPath.h +10 -0
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +5 -0
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +11 -0
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +11 -0
- package/cpp/skia/modules/svg/include/SkSVGRect.h +11 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +43 -7
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +7 -0
- package/cpp/skia/modules/svg/include/SkSVGShape.h +8 -2
- package/cpp/skia/modules/svg/include/SkSVGStop.h +5 -3
- package/cpp/skia/modules/svg/include/SkSVGText.h +8 -2
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +8 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +9 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +7 -0
- package/cpp/skia/src/base/SkMathPriv.h +337 -0
- package/cpp/skia/src/base/SkTLazy.h +208 -0
- package/cpp/skia/src/core/SkTHash.h +58 -7
- package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +3 -0
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +3 -0
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.mm +7 -0
- package/ios/RNSkia-iOS/SkiaCVPixelBufferUtils.mm +7 -2
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.h +78 -0
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.mm +20 -4
- package/lib/commonjs/renderer/HostConfig.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/TextStyle.d.ts +2 -2
- package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
- package/lib/commonjs/skia/types/Skia.d.ts +6 -1
- package/lib/commonjs/skia/types/Skia.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkia.js +4 -1
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
- package/lib/commonjs/web/WithSkiaWeb.d.ts +11 -4
- package/lib/commonjs/web/WithSkiaWeb.js +3 -2
- package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
- package/lib/module/renderer/HostConfig.js.map +1 -1
- package/lib/module/skia/types/Paragraph/TextStyle.d.ts +2 -2
- package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
- package/lib/module/skia/types/Skia.d.ts +6 -1
- package/lib/module/skia/types/Skia.js.map +1 -1
- package/lib/module/skia/web/JsiSkia.js +4 -1
- package/lib/module/skia/web/JsiSkia.js.map +1 -1
- package/lib/module/web/WithSkiaWeb.d.ts +11 -4
- package/lib/module/web/WithSkiaWeb.js +3 -2
- package/lib/module/web/WithSkiaWeb.js.map +1 -1
- package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +1 -0
- package/lib/typescript/lib/commonjs/web/WithSkiaWeb.d.ts +2 -1
- package/lib/typescript/lib/module/skia/Skia.web.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +1 -0
- package/lib/typescript/lib/module/web/WithSkiaWeb.d.ts +2 -1
- package/lib/typescript/src/skia/types/Paragraph/TextStyle.d.ts +2 -2
- package/lib/typescript/src/skia/types/Skia.d.ts +6 -1
- package/lib/typescript/src/web/WithSkiaWeb.d.ts +11 -4
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskottie.a +0 -0
- package/libs/android/arm64-v8a/libskparagraph.a +0 -0
- package/libs/android/arm64-v8a/libsksg.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.a +0 -0
- package/libs/android/arm64-v8a/libskunicode_core.a +0 -0
- package/libs/android/arm64-v8a/libskunicode_icu.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/libskottie.a +0 -0
- package/libs/android/armeabi-v7a/libskparagraph.a +0 -0
- package/libs/android/armeabi-v7a/libsksg.a +0 -0
- package/libs/android/armeabi-v7a/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libskunicode_core.a +0 -0
- package/libs/android/armeabi-v7a/libskunicode_icu.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libskottie.a +0 -0
- package/libs/android/x86/libskparagraph.a +0 -0
- package/libs/android/x86/libsksg.a +0 -0
- package/libs/android/x86/libskshaper.a +0 -0
- package/libs/android/x86/libskunicode_core.a +0 -0
- package/libs/android/x86/libskunicode_icu.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/libskottie.a +0 -0
- package/libs/android/x86_64/libskparagraph.a +0 -0
- package/libs/android/x86_64/libsksg.a +0 -0
- package/libs/android/x86_64/libskshaper.a +0 -0
- package/libs/android/x86_64/libskunicode_core.a +0 -0
- package/libs/android/x86_64/libskunicode_icu.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/libskottie.xcframework/Info.plist +5 -5
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/ios/libsksg.xcframework/Info.plist +5 -5
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +5 -5
- 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 +3 -5
- package/react-native-skia.podspec +2 -1
- package/src/renderer/HostConfig.ts +5 -1
- package/src/renderer/__tests__/e2e/ImageFilters.spec.tsx +5 -2
- package/src/renderer/__tests__/e2e/Paths.spec.tsx +12 -5
- package/src/renderer/__tests__/e2e/SDF.spec.tsx +1 -1
- package/src/renderer/__tests__/e2e/Snapshot.spec.tsx +1 -1
- package/src/skia/types/Paragraph/TextStyle.ts +2 -2
- package/src/skia/types/Skia.ts +7 -1
- package/src/skia/web/JsiSkia.ts +3 -0
- package/src/web/WithSkiaWeb.tsx +17 -6
- package/cpp/skia/include/core/SkDrawLooper.h +0 -135
- package/cpp/skia/include/effects/SkBlurDrawLooper.h +0 -26
- package/cpp/skia/include/effects/SkLayerDrawLooper.h +0 -161
- package/cpp/skia/include/gpu/gl/GrGLConfig_chrome.h +0 -14
- package/cpp/skia/include/gpu/vk/GrVkBackendContext.h +0 -84
- package/cpp/skia/include/gpu/vk/GrVkExtensions.h +0 -15
- package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +0 -15
- package/cpp/skia/include/ports/SkFontMgr_indirect.h +0 -102
- package/cpp/skia/include/ports/SkRemotableFontMgr.h +0 -139
- package/cpp/skia/include/private/base/SkFloatBits.h +0 -90
- package/cpp/skia/include/private/gpu/graphite/ContextOptionsPriv.h +0 -69
- package/cpp/skia/include/private/gpu/graphite/DawnTypesPriv.h +0 -54
- package/cpp/skia/include/private/gpu/graphite/MtlGraphiteTypesPriv.h +0 -95
- package/cpp/skia/include/private/gpu/graphite/VulkanGraphiteTypesPriv.h +0 -83
- package/cpp/skia/src/core/SkPathEnums.h +0 -25
- package/cpp/skia/src/core/SkPathPriv.h +0 -540
- package/libs/android/arm64-v8a/libskunicode.a +0 -0
- package/libs/android/armeabi-v7a/libskunicode.a +0 -0
- package/libs/android/x86/libskunicode.a +0 -0
- package/libs/android/x86_64/libskunicode.a +0 -0
- package/libs/ios/libskunicode.xcframework/Info.plist +0 -46
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
- /package/cpp/skia/include/gpu/{gl → ganesh/gl}/glx/GrGLMakeGLXInterface.h +0 -0
@@ -1,102 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2014 Google Inc.
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef SkFontMgr_indirect_DEFINED
|
9
|
-
#define SkFontMgr_indirect_DEFINED
|
10
|
-
|
11
|
-
#include "include/core/SkFontMgr.h"
|
12
|
-
#include "include/core/SkRefCnt.h"
|
13
|
-
#include "include/core/SkTypeface.h"
|
14
|
-
#include "include/core/SkTypes.h"
|
15
|
-
#include "include/ports/SkRemotableFontMgr.h"
|
16
|
-
#include "include/private/base/SkMutex.h"
|
17
|
-
#include "include/private/base/SkOnce.h"
|
18
|
-
#include "include/private/base/SkTArray.h"
|
19
|
-
|
20
|
-
class SkData;
|
21
|
-
class SkFontStyle;
|
22
|
-
class SkStreamAsset;
|
23
|
-
class SkString;
|
24
|
-
|
25
|
-
class SK_API SkFontMgr_Indirect : public SkFontMgr {
|
26
|
-
public:
|
27
|
-
// TODO: The SkFontMgr is only used for createFromStream/File/Data.
|
28
|
-
// In the future these calls should be broken out into their own interface
|
29
|
-
// with a name like SkFontRenderer.
|
30
|
-
SkFontMgr_Indirect(sk_sp<SkFontMgr> impl, sk_sp<SkRemotableFontMgr> proxy)
|
31
|
-
: fImpl(std::move(impl)), fProxy(std::move(proxy))
|
32
|
-
{ }
|
33
|
-
|
34
|
-
protected:
|
35
|
-
int onCountFamilies() const override;
|
36
|
-
void onGetFamilyName(int index, SkString* familyName) const override;
|
37
|
-
sk_sp<SkFontStyleSet> onCreateStyleSet(int index) const override;
|
38
|
-
|
39
|
-
sk_sp<SkFontStyleSet> onMatchFamily(const char familyName[]) const override;
|
40
|
-
|
41
|
-
sk_sp<SkTypeface> onMatchFamilyStyle(const char familyName[],
|
42
|
-
const SkFontStyle& fontStyle) const override;
|
43
|
-
|
44
|
-
sk_sp<SkTypeface> onMatchFamilyStyleCharacter(const char familyName[],
|
45
|
-
const SkFontStyle&,
|
46
|
-
const char* bcp47[],
|
47
|
-
int bcp47Count,
|
48
|
-
SkUnichar character) const override;
|
49
|
-
|
50
|
-
sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const override;
|
51
|
-
sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream,
|
52
|
-
const SkFontArguments& args) const override;
|
53
|
-
sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override;
|
54
|
-
sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override;
|
55
|
-
sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle) const override;
|
56
|
-
|
57
|
-
private:
|
58
|
-
sk_sp<SkTypeface> createTypefaceFromFontId(const SkFontIdentity& fontId) const;
|
59
|
-
|
60
|
-
sk_sp<SkFontMgr> fImpl;
|
61
|
-
sk_sp<SkRemotableFontMgr> fProxy;
|
62
|
-
|
63
|
-
struct DataEntry {
|
64
|
-
uint32_t fDataId; // key1
|
65
|
-
uint32_t fTtcIndex; // key2
|
66
|
-
SkTypeface* fTypeface; // value: weak ref to typeface
|
67
|
-
|
68
|
-
DataEntry() = default;
|
69
|
-
|
70
|
-
DataEntry(DataEntry&& that) { *this = std::move(that); }
|
71
|
-
DataEntry& operator=(DataEntry&& that) {
|
72
|
-
if (this != &that) {
|
73
|
-
fDataId = that.fDataId;
|
74
|
-
fTtcIndex = that.fTtcIndex;
|
75
|
-
fTypeface = that.fTypeface;
|
76
|
-
|
77
|
-
SkDEBUGCODE(that.fDataId = SkFontIdentity::kInvalidDataId;)
|
78
|
-
SkDEBUGCODE(that.fTtcIndex = 0xbbadbeef;)
|
79
|
-
that.fTypeface = nullptr;
|
80
|
-
}
|
81
|
-
return *this;
|
82
|
-
}
|
83
|
-
|
84
|
-
~DataEntry() {
|
85
|
-
if (fTypeface) {
|
86
|
-
fTypeface->weak_unref();
|
87
|
-
}
|
88
|
-
}
|
89
|
-
};
|
90
|
-
/**
|
91
|
-
* This cache is essentially { dataId: { ttcIndex: typeface } }
|
92
|
-
* For data caching we want a mapping from data id to weak references to
|
93
|
-
* typefaces with that data id. By storing the index next to the typeface,
|
94
|
-
* this data cache also acts as a typeface cache.
|
95
|
-
*/
|
96
|
-
mutable skia_private::TArray<DataEntry> fDataCache;
|
97
|
-
mutable SkMutex fDataCacheMutex;
|
98
|
-
|
99
|
-
friend class SkStyleSet_Indirect;
|
100
|
-
};
|
101
|
-
|
102
|
-
#endif
|
@@ -1,139 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2014 Google Inc.
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef SkRemotableFontMgr_DEFINED
|
9
|
-
#define SkRemotableFontMgr_DEFINED
|
10
|
-
|
11
|
-
#include "include/core/SkFontStyle.h"
|
12
|
-
#include "include/core/SkRefCnt.h"
|
13
|
-
#include "include/core/SkTypes.h"
|
14
|
-
#include "include/private/base/SkTemplates.h"
|
15
|
-
|
16
|
-
class SkDataTable;
|
17
|
-
class SkStreamAsset;
|
18
|
-
|
19
|
-
struct SK_API SkFontIdentity {
|
20
|
-
static const uint32_t kInvalidDataId = 0xFFFFFFFF;
|
21
|
-
|
22
|
-
// Note that fDataId is a data identifier, not a font identifier.
|
23
|
-
// (fDataID, fTtcIndex) can be seen as a font identifier.
|
24
|
-
uint32_t fDataId;
|
25
|
-
uint32_t fTtcIndex;
|
26
|
-
|
27
|
-
// On Linux/FontConfig there is also the ability to specify preferences for rendering
|
28
|
-
// antialias, embedded bitmaps, autohint, hinting, hintstyle, lcd rendering
|
29
|
-
// may all be set or set to no-preference
|
30
|
-
// (No-preference is resolved against globals set by the platform)
|
31
|
-
// Since they may be selected against, these are really 'extensions' to SkFontStyle.
|
32
|
-
// SkFontStyle should pick these up.
|
33
|
-
SkFontStyle fFontStyle;
|
34
|
-
};
|
35
|
-
|
36
|
-
class SK_API SkRemotableFontIdentitySet : public SkRefCnt {
|
37
|
-
public:
|
38
|
-
SkRemotableFontIdentitySet(int count, SkFontIdentity** data);
|
39
|
-
|
40
|
-
int count() const { return fCount; }
|
41
|
-
const SkFontIdentity& at(int index) const { return fData[index]; }
|
42
|
-
|
43
|
-
static SkRemotableFontIdentitySet* NewEmpty();
|
44
|
-
|
45
|
-
private:
|
46
|
-
SkRemotableFontIdentitySet() : fCount(0), fData() { }
|
47
|
-
|
48
|
-
friend SkRemotableFontIdentitySet* sk_remotable_font_identity_set_new();
|
49
|
-
|
50
|
-
int fCount;
|
51
|
-
skia_private::AutoTArray<SkFontIdentity> fData;
|
52
|
-
|
53
|
-
using INHERITED = SkRefCnt;
|
54
|
-
};
|
55
|
-
|
56
|
-
class SK_API SkRemotableFontMgr : public SkRefCnt {
|
57
|
-
public:
|
58
|
-
/**
|
59
|
-
* Returns all of the fonts with the given familyIndex.
|
60
|
-
* Returns NULL if the index is out of bounds.
|
61
|
-
* Returns empty if there are no fonts at the given index.
|
62
|
-
*
|
63
|
-
* The caller must unref() the returned object.
|
64
|
-
*/
|
65
|
-
virtual SkRemotableFontIdentitySet* getIndex(int familyIndex) const = 0;
|
66
|
-
|
67
|
-
/**
|
68
|
-
* Returns the closest match to the given style in the given index.
|
69
|
-
* If there are no available fonts at the given index, the return value's
|
70
|
-
* data id will be kInvalidDataId.
|
71
|
-
*/
|
72
|
-
virtual SkFontIdentity matchIndexStyle(int familyIndex, const SkFontStyle&) const = 0;
|
73
|
-
|
74
|
-
/**
|
75
|
-
* Returns all the fonts on the system with the given name.
|
76
|
-
* If the given name is NULL, will return the default font family.
|
77
|
-
* Never returns NULL; will return an empty set if the name is not found.
|
78
|
-
*
|
79
|
-
* It is possible that this will return fonts not accessible from
|
80
|
-
* getIndex(int) or matchIndexStyle(int, SkFontStyle) due to
|
81
|
-
* hidden or auto-activated fonts.
|
82
|
-
*
|
83
|
-
* The matching may be done in a system dependent way. The name may be
|
84
|
-
* matched case-insensitive, there may be system aliases which resolve,
|
85
|
-
* and names outside the current locale may be considered. However, this
|
86
|
-
* should only return fonts which are somehow associated with the requested
|
87
|
-
* name.
|
88
|
-
*
|
89
|
-
* The caller must unref() the returned object.
|
90
|
-
*/
|
91
|
-
virtual SkRemotableFontIdentitySet* matchName(const char familyName[]) const = 0;
|
92
|
-
|
93
|
-
/**
|
94
|
-
* Returns the closest matching font to the specified name and style.
|
95
|
-
* If there are no available fonts which match the name, the return value's
|
96
|
-
* data id will be kInvalidDataId.
|
97
|
-
* If the given name is NULL, the match will be against any default fonts.
|
98
|
-
*
|
99
|
-
* It is possible that this will return a font identity not accessible from
|
100
|
-
* methods returning sets due to hidden or auto-activated fonts.
|
101
|
-
*
|
102
|
-
* The matching may be done in a system dependent way. The name may be
|
103
|
-
* matched case-insensitive, there may be system aliases which resolve,
|
104
|
-
* and names outside the current locale may be considered. However, this
|
105
|
-
* should only return a font which is somehow associated with the requested
|
106
|
-
* name.
|
107
|
-
*
|
108
|
-
* The caller must unref() the returned object.
|
109
|
-
*/
|
110
|
-
virtual SkFontIdentity matchNameStyle(const char familyName[], const SkFontStyle&) const = 0;
|
111
|
-
|
112
|
-
/**
|
113
|
-
* Use the system fall-back to find a font for the given character.
|
114
|
-
* If no font can be found for the character, the return value's data id
|
115
|
-
* will be kInvalidDataId.
|
116
|
-
* If the name is NULL, the match will start against any default fonts.
|
117
|
-
* If the bpc47 is NULL, a default locale will be assumed.
|
118
|
-
*
|
119
|
-
* Note that bpc47 is a combination of ISO 639, 15924, and 3166-1 codes,
|
120
|
-
* so it is fine to just pass a ISO 639 here.
|
121
|
-
*/
|
122
|
-
virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], const SkFontStyle&,
|
123
|
-
const char* bcp47[], int bcp47Count,
|
124
|
-
SkUnichar character) const=0;
|
125
|
-
|
126
|
-
/**
|
127
|
-
* Returns the data for the given data id.
|
128
|
-
* Will return NULL if the data id is invalid.
|
129
|
-
* Note that this is a data id, not a font id.
|
130
|
-
*
|
131
|
-
* The caller must unref() the returned object.
|
132
|
-
*/
|
133
|
-
virtual SkStreamAsset* getData(int dataId) const = 0;
|
134
|
-
|
135
|
-
private:
|
136
|
-
using INHERITED = SkRefCnt;
|
137
|
-
};
|
138
|
-
|
139
|
-
#endif
|
@@ -1,90 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2008 The Android Open Source Project
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef SkFloatBits_DEFINED
|
9
|
-
#define SkFloatBits_DEFINED
|
10
|
-
|
11
|
-
#include "include/private/base/SkMath.h"
|
12
|
-
|
13
|
-
#include <cstdint>
|
14
|
-
|
15
|
-
/** Convert a sign-bit int (i.e. float interpreted as int) into a 2s compliement
|
16
|
-
int. This also converts -0 (0x80000000) to 0. Doing this to a float allows
|
17
|
-
it to be compared using normal C operators (<, <=, etc.)
|
18
|
-
*/
|
19
|
-
static inline int32_t SkSignBitTo2sCompliment(int32_t x) {
|
20
|
-
if (x < 0) {
|
21
|
-
x &= 0x7FFFFFFF;
|
22
|
-
x = -x;
|
23
|
-
}
|
24
|
-
return x;
|
25
|
-
}
|
26
|
-
|
27
|
-
/** Convert a 2s compliment int to a sign-bit (i.e. int interpreted as float).
|
28
|
-
This undoes the result of SkSignBitTo2sCompliment().
|
29
|
-
*/
|
30
|
-
static inline int32_t Sk2sComplimentToSignBit(int32_t x) {
|
31
|
-
int sign = x >> 31;
|
32
|
-
// make x positive
|
33
|
-
x = (x ^ sign) - sign;
|
34
|
-
// set the sign bit as needed
|
35
|
-
x |= SkLeftShift(sign, 31);
|
36
|
-
return x;
|
37
|
-
}
|
38
|
-
|
39
|
-
union SkFloatIntUnion {
|
40
|
-
float fFloat;
|
41
|
-
int32_t fSignBitInt;
|
42
|
-
};
|
43
|
-
|
44
|
-
// Helper to see a float as its bit pattern (w/o aliasing warnings)
|
45
|
-
static inline int32_t SkFloat2Bits(float x) {
|
46
|
-
SkFloatIntUnion data;
|
47
|
-
data.fFloat = x;
|
48
|
-
return data.fSignBitInt;
|
49
|
-
}
|
50
|
-
|
51
|
-
// Helper to see a bit pattern as a float (w/o aliasing warnings)
|
52
|
-
static inline float SkBits2Float(int32_t floatAsBits) {
|
53
|
-
SkFloatIntUnion data;
|
54
|
-
data.fSignBitInt = floatAsBits;
|
55
|
-
return data.fFloat;
|
56
|
-
}
|
57
|
-
|
58
|
-
constexpr int32_t gFloatBits_exponent_mask = 0x7F800000;
|
59
|
-
constexpr int32_t gFloatBits_matissa_mask = 0x007FFFFF;
|
60
|
-
|
61
|
-
static inline bool SkFloatBits_IsFinite(int32_t bits) {
|
62
|
-
return (bits & gFloatBits_exponent_mask) != gFloatBits_exponent_mask;
|
63
|
-
}
|
64
|
-
|
65
|
-
static inline bool SkFloatBits_IsInf(int32_t bits) {
|
66
|
-
return ((bits & gFloatBits_exponent_mask) == gFloatBits_exponent_mask) &&
|
67
|
-
(bits & gFloatBits_matissa_mask) == 0;
|
68
|
-
}
|
69
|
-
|
70
|
-
/** Return the float as a 2s compliment int. Just to be used to compare floats
|
71
|
-
to each other or against positive float-bit-constants (like 0). This does
|
72
|
-
not return the int equivalent of the float, just something cheaper for
|
73
|
-
compares-only.
|
74
|
-
*/
|
75
|
-
static inline int32_t SkFloatAs2sCompliment(float x) {
|
76
|
-
return SkSignBitTo2sCompliment(SkFloat2Bits(x));
|
77
|
-
}
|
78
|
-
|
79
|
-
/** Return the 2s compliment int as a float. This undos the result of
|
80
|
-
SkFloatAs2sCompliment
|
81
|
-
*/
|
82
|
-
static inline float Sk2sComplimentAsFloat(int32_t x) {
|
83
|
-
return SkBits2Float(Sk2sComplimentToSignBit(x));
|
84
|
-
}
|
85
|
-
|
86
|
-
// Scalar wrappers for float-bit routines
|
87
|
-
|
88
|
-
#define SkScalarAs2sCompliment(x) SkFloatAs2sCompliment(x)
|
89
|
-
|
90
|
-
#endif
|
@@ -1,69 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2023 Google LLC
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef skgpu_graphite_ContextOptionsPriv_DEFINED
|
9
|
-
#define skgpu_graphite_ContextOptionsPriv_DEFINED
|
10
|
-
|
11
|
-
namespace skgpu::graphite {
|
12
|
-
|
13
|
-
/**
|
14
|
-
* Used to include or exclude a specific path rendering technique for testing purposes.
|
15
|
-
*/
|
16
|
-
enum class PathRendererStrategy {
|
17
|
-
/**
|
18
|
-
* Graphite selects the best path rendering technique for each shape. This is the default
|
19
|
-
* behavior.
|
20
|
-
*/
|
21
|
-
kDefault,
|
22
|
-
|
23
|
-
/**
|
24
|
-
* All paths are rasterized into coverage masks using a GPU compute approach. This method
|
25
|
-
* always uses analytic anti-aliasing.
|
26
|
-
*/
|
27
|
-
kComputeAnalyticAA,
|
28
|
-
|
29
|
-
/**
|
30
|
-
* All paths are rasterized into coverage masks using a GPU compute approach. This method
|
31
|
-
* always uses 16sample multi-sampled anti-aliasing.
|
32
|
-
*/
|
33
|
-
kComputeMSAA16,
|
34
|
-
|
35
|
-
/**
|
36
|
-
* All paths are rasterized into coverage masks using the CPU raster backend.
|
37
|
-
*/
|
38
|
-
kRasterAA,
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Render paths using tessellation and stencil-and-cover.
|
42
|
-
*/
|
43
|
-
kTessellation,
|
44
|
-
};
|
45
|
-
|
46
|
-
/**
|
47
|
-
* Private options that are only meant for testing within Skia's tools.
|
48
|
-
*/
|
49
|
-
struct ContextOptionsPriv {
|
50
|
-
|
51
|
-
int fMaxTextureSizeOverride = SK_MaxS32;
|
52
|
-
|
53
|
-
/**
|
54
|
-
* Maximum width and height of internal texture atlases.
|
55
|
-
*/
|
56
|
-
int fMaxTextureAtlasSize = 2048;
|
57
|
-
|
58
|
-
/**
|
59
|
-
* If true, will store a pointer in Recorder that points back to the Context
|
60
|
-
* that created it. Used by readPixels() and other methods that normally require a Context.
|
61
|
-
*/
|
62
|
-
bool fStoreContextRefInRecorder = false;
|
63
|
-
|
64
|
-
PathRendererStrategy fPathRendererStrategy = PathRendererStrategy::kDefault;
|
65
|
-
};
|
66
|
-
|
67
|
-
} // namespace skgpu::graphite
|
68
|
-
|
69
|
-
#endif // skgpu_graphite_ContextOptionsPriv_DEFINED
|
@@ -1,54 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2022 Google LLC.
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef skgpu_graphite_DawnTypesPriv_DEFINED
|
9
|
-
#define skgpu_graphite_DawnTypesPriv_DEFINED
|
10
|
-
|
11
|
-
#include "include/core/SkString.h"
|
12
|
-
#include "include/gpu/graphite/dawn/DawnTypes.h"
|
13
|
-
|
14
|
-
namespace skgpu::graphite {
|
15
|
-
|
16
|
-
struct DawnTextureSpec {
|
17
|
-
DawnTextureSpec()
|
18
|
-
: fFormat(wgpu::TextureFormat::Undefined)
|
19
|
-
, fUsage(wgpu::TextureUsage::None)
|
20
|
-
, fAspect(wgpu::TextureAspect::All) {}
|
21
|
-
DawnTextureSpec(const DawnTextureInfo& info)
|
22
|
-
: fFormat(info.fFormat), fUsage(info.fUsage), fAspect(info.fAspect) {}
|
23
|
-
|
24
|
-
bool operator==(const DawnTextureSpec& that) const {
|
25
|
-
return fUsage == that.fUsage && fFormat == that.fFormat && fAspect == that.fAspect;
|
26
|
-
}
|
27
|
-
|
28
|
-
bool isCompatible(const DawnTextureSpec& that) const {
|
29
|
-
// The usages may match or the usage passed in may be a superset of the usage stored within.
|
30
|
-
// The aspect should either match the plane aspect or should be All.
|
31
|
-
return fFormat == that.fFormat && (fUsage & that.fUsage) == fUsage &&
|
32
|
-
(fAspect == that.fAspect || fAspect == wgpu::TextureAspect::All);
|
33
|
-
}
|
34
|
-
|
35
|
-
SkString toString() const {
|
36
|
-
return SkStringPrintf("format=0x%08X,usage=0x%08X,aspect=0x%08X",
|
37
|
-
static_cast<unsigned int>(fFormat),
|
38
|
-
static_cast<unsigned int>(fUsage),
|
39
|
-
static_cast<unsigned int>(fAspect));
|
40
|
-
}
|
41
|
-
|
42
|
-
// `fFormat` is always single plane format or plane view format for a multiplanar wgpu::Texture.
|
43
|
-
wgpu::TextureFormat fFormat;
|
44
|
-
wgpu::TextureUsage fUsage;
|
45
|
-
wgpu::TextureAspect fAspect;
|
46
|
-
};
|
47
|
-
|
48
|
-
DawnTextureInfo DawnTextureSpecToTextureInfo(const DawnTextureSpec& dawnSpec,
|
49
|
-
uint32_t sampleCount,
|
50
|
-
Mipmapped mipmapped);
|
51
|
-
|
52
|
-
} // namespace skgpu::graphite
|
53
|
-
|
54
|
-
#endif // skgpu_graphite_DawnTypesPriv_DEFINED
|
@@ -1,95 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2021 Google Inc.
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef skgpu_graphite_MtlGraphiteTypesPriv_DEFINED
|
9
|
-
#define skgpu_graphite_MtlGraphiteTypesPriv_DEFINED
|
10
|
-
|
11
|
-
#include "include/core/SkString.h"
|
12
|
-
#include "include/gpu/graphite/GraphiteTypes.h"
|
13
|
-
#include "include/gpu/graphite/mtl/MtlGraphiteTypes.h"
|
14
|
-
|
15
|
-
///////////////////////////////////////////////////////////////////////////////
|
16
|
-
|
17
|
-
#ifdef __APPLE__
|
18
|
-
|
19
|
-
#include <TargetConditionals.h>
|
20
|
-
|
21
|
-
// We're using the MSL version as shorthand for the Metal SDK version here
|
22
|
-
#if defined(SK_BUILD_FOR_MAC)
|
23
|
-
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 130000
|
24
|
-
#define SKGPU_GRAPHITE_METAL_SDK_VERSION 300
|
25
|
-
#elif __MAC_OS_X_VERSION_MAX_ALLOWED >= 120000
|
26
|
-
#define SKGPU_GRAPHITE_METAL_SDK_VERSION 240
|
27
|
-
#elif __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
|
28
|
-
#define SKGPU_GRAPHITE_METAL_SDK_VERSION 230
|
29
|
-
#else
|
30
|
-
#error Must use at least 11.00 SDK to build Metal backend for MacOS
|
31
|
-
#endif
|
32
|
-
#else
|
33
|
-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000 || __TV_OS_VERSION_MAX_ALLOWED >= 160000
|
34
|
-
#define SKGPU_GRAPHITE_METAL_SDK_VERSION 300
|
35
|
-
#elif __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 || __TV_OS_VERSION_MAX_ALLOWED >= 150000
|
36
|
-
#define SKGPU_GRAPHITE_METAL_SDK_VERSION 240
|
37
|
-
#elif __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 || __TV_OS_VERSION_MAX_ALLOWED >= 140000
|
38
|
-
#define SKGPU_GRAPHITE_METAL_SDK_VERSION 230
|
39
|
-
#else
|
40
|
-
#error Must use at least 14.00 SDK to build Metal backend for iOS
|
41
|
-
#endif
|
42
|
-
#endif
|
43
|
-
|
44
|
-
#endif // __APPLE__
|
45
|
-
|
46
|
-
namespace skgpu::graphite {
|
47
|
-
|
48
|
-
struct MtlTextureSpec {
|
49
|
-
MtlTextureSpec()
|
50
|
-
: fFormat(0)
|
51
|
-
, fUsage(0)
|
52
|
-
, fStorageMode(0)
|
53
|
-
, fFramebufferOnly(false) {}
|
54
|
-
MtlTextureSpec(const MtlTextureInfo& info)
|
55
|
-
: fFormat(info.fFormat)
|
56
|
-
, fUsage(info.fUsage)
|
57
|
-
, fStorageMode(info.fStorageMode)
|
58
|
-
, fFramebufferOnly(info.fFramebufferOnly) {}
|
59
|
-
|
60
|
-
bool operator==(const MtlTextureSpec& that) const {
|
61
|
-
return fFormat == that.fFormat &&
|
62
|
-
fUsage == that.fUsage &&
|
63
|
-
fStorageMode == that.fStorageMode &&
|
64
|
-
fFramebufferOnly == that.fFramebufferOnly;
|
65
|
-
}
|
66
|
-
|
67
|
-
bool isCompatible(const MtlTextureSpec& that) const {
|
68
|
-
// The usages may match or the usage passed in may be a superset of the usage stored within.
|
69
|
-
return fFormat == that.fFormat &&
|
70
|
-
fStorageMode == that.fStorageMode &&
|
71
|
-
fFramebufferOnly == that.fFramebufferOnly &&
|
72
|
-
(fUsage & that.fUsage) == fUsage;
|
73
|
-
}
|
74
|
-
|
75
|
-
SkString toString() const {
|
76
|
-
return SkStringPrintf("format=%u,usage=0x%04X,storageMode=%d,framebufferOnly=%d",
|
77
|
-
fFormat,
|
78
|
-
fUsage,
|
79
|
-
fStorageMode,
|
80
|
-
fFramebufferOnly);
|
81
|
-
}
|
82
|
-
|
83
|
-
MtlPixelFormat fFormat;
|
84
|
-
MtlTextureUsage fUsage;
|
85
|
-
MtlStorageMode fStorageMode;
|
86
|
-
bool fFramebufferOnly;
|
87
|
-
};
|
88
|
-
|
89
|
-
MtlTextureInfo MtlTextureSpecToTextureInfo(const MtlTextureSpec& mtlSpec,
|
90
|
-
uint32_t sampleCount,
|
91
|
-
Mipmapped mipmapped);
|
92
|
-
|
93
|
-
} // namespace skgpu::graphite
|
94
|
-
|
95
|
-
#endif // skgpu_graphite_MtlGraphiteTypesPriv_DEFINED
|
@@ -1,83 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2022 Google LLC.
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef skgpu_graphite_VulkanGraphiteTypesPriv_DEFINED
|
9
|
-
#define skgpu_graphite_VulkanGraphiteTypesPriv_DEFINED
|
10
|
-
|
11
|
-
#include "include/core/SkString.h"
|
12
|
-
#include "include/gpu/graphite/vk/VulkanGraphiteTypes.h"
|
13
|
-
#include "include/private/gpu/vk/SkiaVulkan.h"
|
14
|
-
|
15
|
-
namespace skgpu::graphite {
|
16
|
-
|
17
|
-
struct VulkanTextureSpec {
|
18
|
-
VulkanTextureSpec()
|
19
|
-
: fFlags(0)
|
20
|
-
, fFormat(VK_FORMAT_UNDEFINED)
|
21
|
-
, fImageTiling(VK_IMAGE_TILING_OPTIMAL)
|
22
|
-
, fImageUsageFlags(0)
|
23
|
-
, fSharingMode(VK_SHARING_MODE_EXCLUSIVE)
|
24
|
-
, fAspectMask(VK_IMAGE_ASPECT_COLOR_BIT)
|
25
|
-
, fYcbcrConversionInfo({}) {}
|
26
|
-
VulkanTextureSpec(const VulkanTextureInfo& info)
|
27
|
-
: fFlags(info.fFlags)
|
28
|
-
, fFormat(info.fFormat)
|
29
|
-
, fImageTiling(info.fImageTiling)
|
30
|
-
, fImageUsageFlags(info.fImageUsageFlags)
|
31
|
-
, fSharingMode(info.fSharingMode)
|
32
|
-
, fAspectMask(info.fAspectMask)
|
33
|
-
, fYcbcrConversionInfo(info.fYcbcrConversionInfo) {}
|
34
|
-
|
35
|
-
bool operator==(const VulkanTextureSpec& that) const {
|
36
|
-
return fFlags == that.fFlags &&
|
37
|
-
fFormat == that.fFormat &&
|
38
|
-
fImageTiling == that.fImageTiling &&
|
39
|
-
fImageUsageFlags == that.fImageUsageFlags &&
|
40
|
-
fSharingMode == that.fSharingMode &&
|
41
|
-
fAspectMask == that.fAspectMask &&
|
42
|
-
fYcbcrConversionInfo == that.fYcbcrConversionInfo;
|
43
|
-
}
|
44
|
-
|
45
|
-
bool isCompatible(const VulkanTextureSpec& that) const {
|
46
|
-
// The usages may match or the usage passed in may be a superset of the usage stored within.
|
47
|
-
return fFlags == that.fFlags &&
|
48
|
-
fFormat == that.fFormat &&
|
49
|
-
fImageTiling == that.fImageTiling &&
|
50
|
-
fSharingMode == that.fSharingMode &&
|
51
|
-
fAspectMask == that.fAspectMask &&
|
52
|
-
(fImageUsageFlags & that.fImageUsageFlags) == fImageUsageFlags &&
|
53
|
-
fYcbcrConversionInfo == that.fYcbcrConversionInfo;
|
54
|
-
}
|
55
|
-
|
56
|
-
SkString toString() const {
|
57
|
-
return SkStringPrintf(
|
58
|
-
"flags=0x%08X,format=%d,imageTiling=%d,imageUsageFlags=0x%08X,sharingMode=%d,"
|
59
|
-
"aspectMask=%d",
|
60
|
-
fFlags,
|
61
|
-
fFormat,
|
62
|
-
fImageTiling,
|
63
|
-
fImageUsageFlags,
|
64
|
-
fSharingMode,
|
65
|
-
fAspectMask);
|
66
|
-
}
|
67
|
-
|
68
|
-
VkImageCreateFlags fFlags;
|
69
|
-
VkFormat fFormat;
|
70
|
-
VkImageTiling fImageTiling;
|
71
|
-
VkImageUsageFlags fImageUsageFlags;
|
72
|
-
VkSharingMode fSharingMode;
|
73
|
-
VkImageAspectFlags fAspectMask;
|
74
|
-
VulkanYcbcrConversionInfo fYcbcrConversionInfo;
|
75
|
-
};
|
76
|
-
|
77
|
-
VulkanTextureInfo VulkanTextureSpecToTextureInfo(const VulkanTextureSpec& vkSpec,
|
78
|
-
uint32_t sampleCount,
|
79
|
-
Mipmapped mipmapped);
|
80
|
-
|
81
|
-
} // namespace skgpu::graphite
|
82
|
-
|
83
|
-
#endif // skgpu_graphite_VulkanGraphiteTypesPriv_DEFINED
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2022 Google LLC
|
3
|
-
*
|
4
|
-
* Use of this source code is governed by a BSD-style license that can be
|
5
|
-
* found in the LICENSE file.
|
6
|
-
*
|
7
|
-
* This file contains private enums related to paths. See also skbug.com/10670
|
8
|
-
*/
|
9
|
-
|
10
|
-
#ifndef SkPathEnums_DEFINED
|
11
|
-
#define SkPathEnums_DEFINED
|
12
|
-
|
13
|
-
enum class SkPathConvexity {
|
14
|
-
kConvex,
|
15
|
-
kConcave,
|
16
|
-
kUnknown,
|
17
|
-
};
|
18
|
-
|
19
|
-
enum class SkPathFirstDirection {
|
20
|
-
kCW, // == SkPathDirection::kCW
|
21
|
-
kCCW, // == SkPathDirection::kCCW
|
22
|
-
kUnknown,
|
23
|
-
};
|
24
|
-
|
25
|
-
#endif
|