@shopify/react-native-skia 2.11.0-next.2 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +0 -10
- package/android/src/main/java/com/shopify/reactnative/skia/ViewScreenshotService.java +9 -12
- package/apple/RNSkApplePlatformContext.h +0 -3
- package/apple/RNSkApplePlatformContext.mm +0 -11
- package/cpp/api/JsiSkApi.h +0 -6
- package/cpp/api/JsiSkFont.h +2 -8
- package/cpp/api/JsiSkMatrix.h +4 -2
- package/cpp/api/recorder/Convertor.h +62 -11
- package/cpp/api/recorder/Drawings.h +13 -3
- package/cpp/api/recorder/ImageFilters.h +15 -1
- package/cpp/api/recorder/Paint.h +5 -2
- package/cpp/api/third_party/SkottieUtils.cpp +1 -1
- package/cpp/rnskia/RNSkPlatformContext.h +0 -3
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +0 -2
- package/cpp/skia/include/android/vk/AndroidVulkanMemoryAllocator.h +1 -1
- package/cpp/skia/include/codec/SkAndroidCodec.h +1 -1
- package/cpp/skia/include/codec/SkAvifDecoder.h +1 -1
- package/cpp/skia/include/codec/SkBmpDecoder.h +1 -1
- package/cpp/skia/include/codec/SkBmpRustDecoder.h +42 -0
- package/cpp/skia/include/codec/SkCodec.h +3 -2
- package/cpp/skia/include/codec/SkGifDecoder.h +1 -1
- package/cpp/skia/include/codec/SkIcoDecoder.h +1 -1
- package/cpp/skia/include/codec/SkJpegDecoder.h +1 -1
- package/cpp/skia/include/codec/SkJpegxlDecoder.h +1 -1
- package/cpp/skia/include/codec/SkPixmapUtils.h +1 -1
- package/cpp/skia/include/codec/SkPngDecoder.h +1 -1
- package/cpp/skia/include/codec/SkPngRustDecoder.h +1 -1
- package/cpp/skia/include/codec/SkRawDecoder.h +1 -1
- package/cpp/skia/include/codec/SkWbmpDecoder.h +1 -1
- package/cpp/skia/include/codec/SkWebpDecoder.h +1 -1
- package/cpp/skia/include/core/SkBitmap.h +3 -3
- package/cpp/skia/include/core/SkCPUContext.h +1 -1
- package/cpp/skia/include/core/SkCPURecorder.h +2 -3
- package/cpp/skia/include/core/SkCanvas.h +23 -15
- package/cpp/skia/include/core/SkColor.h +2 -2
- package/cpp/skia/include/core/SkColorFilter.h +1 -1
- package/cpp/skia/include/core/SkColorSpace.h +2 -2
- package/cpp/skia/include/core/SkColorTable.h +1 -1
- package/cpp/skia/include/core/SkContourMeasure.h +1 -1
- package/cpp/skia/include/core/SkData.h +1 -1
- package/cpp/skia/include/core/SkDataTable.h +2 -2
- package/cpp/skia/include/core/SkDocument.h +1 -1
- package/cpp/skia/include/core/SkDrawable.h +1 -1
- package/cpp/skia/include/core/SkFont.h +2 -2
- package/cpp/skia/include/core/SkFontMetrics.h +1 -1
- package/cpp/skia/include/core/SkFontMgr.h +1 -1
- package/cpp/skia/include/core/SkFontScanner.h +3 -3
- package/cpp/skia/include/core/SkFontStyle.h +1 -1
- package/cpp/skia/include/core/SkGraphics.h +1 -1
- package/cpp/skia/include/core/SkImage.h +1 -1
- package/cpp/skia/include/core/SkImageFilter.h +1 -1
- package/cpp/skia/include/core/SkImageGenerator.h +1 -1
- package/cpp/skia/include/core/SkImageInfo.h +4 -4
- package/cpp/skia/include/core/SkMatrix.h +3 -3
- package/cpp/skia/include/core/SkMesh.h +2 -2
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOverdrawCanvas.h +1 -1
- package/cpp/skia/include/core/SkPaint.h +4 -4
- package/cpp/skia/include/core/SkPath.h +5 -23
- package/cpp/skia/include/core/SkPathBuilder.h +4 -2
- package/cpp/skia/include/core/SkPathMeasure.h +1 -1
- package/cpp/skia/include/core/SkPictureRecorder.h +1 -1
- package/cpp/skia/include/core/SkPixelRef.h +3 -5
- package/cpp/skia/include/core/SkPixmap.h +7 -2
- package/cpp/skia/include/core/SkPoint.h +555 -5
- package/cpp/skia/include/core/SkPoint3.h +2 -2
- package/cpp/skia/include/core/SkRRect.h +9 -1
- package/cpp/skia/include/core/SkRSXform.h +1 -1
- package/cpp/skia/include/core/SkRecorder.h +2 -3
- package/cpp/skia/include/core/SkRect.h +3 -3
- package/cpp/skia/include/core/SkRefCnt.h +1 -1
- package/cpp/skia/include/core/SkRegion.h +4 -4
- package/cpp/skia/include/core/SkScalar.h +2 -3
- package/cpp/skia/include/core/SkSerialProcs.h +1 -1
- package/cpp/skia/include/core/SkShader.h +1 -1
- package/cpp/skia/include/core/SkSize.h +1 -1
- package/cpp/skia/include/core/SkSpan.h +165 -4
- package/cpp/skia/include/core/SkStream.h +2 -2
- package/cpp/skia/include/core/SkStrikeRef.h +16 -0
- package/cpp/skia/include/core/SkString.h +2 -2
- package/cpp/skia/include/core/SkStrokeRec.h +1 -1
- package/cpp/skia/include/core/SkSurfaceProps.h +1 -1
- package/cpp/skia/include/core/SkSwizzle.h +1 -1
- package/cpp/skia/include/core/SkTextBlob.h +2 -2
- package/cpp/skia/include/core/SkTiledImageUtils.h +1 -1
- package/cpp/skia/include/core/SkTypeface.h +8 -2
- package/cpp/skia/include/core/SkTypes.h +6 -6
- package/cpp/skia/include/core/SkUnPreMultiply.h +1 -1
- package/cpp/skia/include/core/SkVertices.h +1 -1
- package/cpp/skia/include/core/SkYUVAPixmaps.h +1 -1
- package/cpp/skia/include/docs/SkPDFDocument.h +9 -3
- package/cpp/skia/include/effects/SkGradient.h +1 -1
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +1 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +4 -4
- package/cpp/skia/include/encode/SkEncoder.h +3 -3
- package/cpp/skia/include/encode/SkICC.h +1 -1
- package/cpp/skia/include/encode/SkJpegEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngRustEncoder.h +16 -1
- package/cpp/skia/include/encode/SkWebpEncoder.h +1 -1
- package/cpp/skia/include/gpu/GpuTypes.h +1 -1
- package/cpp/skia/include/gpu/MutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +2 -2
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +3 -3
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkaroundsAutogen.h +39 -37
- package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +3 -2
- package/cpp/skia/include/gpu/ganesh/GrTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkMeshGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLConfig.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLExtensions.h +2 -2
- package/cpp/skia/include/gpu/ganesh/gl/GrGLFunctions.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLMakeWebGLInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/epoxy/GrGLMakeEpoxyEGLInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/ios/GrGLMakeIOSInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/mac/GrGLMakeMacInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/win/GrGLMakeWinInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkDirectContext.h +1 -1
- package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +2 -2
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +2 -2
- package/cpp/skia/include/gpu/graphite/Context.h +3 -3
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +8 -2
- package/cpp/skia/include/gpu/graphite/PersistentPipelineStorage.h +1 -1
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +16 -2
- package/cpp/skia/include/gpu/graphite/Recorder.h +8 -7
- package/cpp/skia/include/gpu/graphite/Recording.h +6 -4
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +2 -2
- package/cpp/skia/include/gpu/graphite/dawn/DawnGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes_cpp.h +1 -1
- package/cpp/skia/include/gpu/graphite/precompile/PaintOptions.h +2 -2
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileImageFilter.h +1 -1
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteContext.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanBackendContext.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +3 -3
- package/cpp/skia/include/gpu/vk/VulkanMutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanPreferredFeatures.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +1 -1
- package/cpp/skia/include/pathops/SkPathOps.h +2 -2
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +2 -2
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +2 -2
- package/cpp/skia/include/private/{base/SingleOwner.h → SingleOwner.h} +5 -5
- package/cpp/skia/include/private/{base/SkAPI.h → SkAPI.h} +1 -1
- package/cpp/skia/include/private/{base/SkAlign.h → SkAlign.h} +1 -1
- package/cpp/skia/include/private/{base/SkAnySubclass.h → SkAnySubclass.h} +1 -1
- package/cpp/skia/include/private/{base/SkAssert.h → SkAssert.h} +4 -4
- package/cpp/skia/include/private/{base/SkAttributes.h → SkAttributes.h} +2 -2
- package/cpp/skia/include/private/{base/SkContainers.h → SkContainers.h} +3 -3
- package/cpp/skia/include/private/{base/SkDebug.h → SkDebug.h} +3 -3
- package/cpp/skia/include/private/{base/SkDeque.h → SkDeque.h} +1 -1
- package/cpp/skia/include/private/SkEncodedInfo.h +2 -2
- package/cpp/skia/include/private/SkEnumBitMask.h +92 -0
- package/cpp/skia/include/private/SkExif.h +1 -1
- package/cpp/skia/include/private/{base/SkFixed.h → SkFixed.h} +4 -4
- package/cpp/skia/include/private/{base/SkFloatingPoint.h → SkFloatingPoint.h} +2 -2
- package/cpp/skia/include/private/SkGainmapShader.h +1 -1
- package/cpp/skia/include/private/SkHdrMetadata.h +1 -1
- package/cpp/skia/include/private/SkIDChangeListener.h +3 -3
- package/cpp/skia/include/private/{base/SkLoadUserConfig.h → SkLoadUserConfig.h} +2 -2
- package/cpp/skia/include/private/{base/SkLog.h → SkLog.h} +4 -4
- package/cpp/skia/include/private/{base/SkMacros.h → SkMacros.h} +1 -1
- package/cpp/skia/include/private/{base/SkMalloc.h → SkMalloc.h} +1 -1
- package/cpp/skia/include/private/{base/SkMath.h → SkMath.h} +2 -2
- package/cpp/skia/include/private/{base/SkMutex.h → SkMutex.h} +5 -5
- package/cpp/skia/include/private/{base/SkNoncopyable.h → SkNoncopyable.h} +1 -1
- package/cpp/skia/include/private/{base/SkOnce.h → SkOnce.h} +1 -1
- package/cpp/skia/include/private/SkPathRef.h +4 -4
- package/cpp/skia/include/private/SkPixelStorage.h +20 -5
- package/cpp/skia/include/private/{base/SkSafe32.h → SkSafe32.h} +2 -2
- package/cpp/skia/include/private/{base/SkSemaphore.h → SkSemaphore.h} +3 -3
- package/cpp/skia/include/private/{base/SkTArray.h → SkTArray.h} +10 -11
- package/cpp/skia/include/private/{base/SkTDArray.h → SkTDArray.h} +4 -4
- package/cpp/skia/include/private/{base/SkTFitsIn.h → SkTFitsIn.h} +0 -2
- package/cpp/skia/include/private/{base/SkTLogic.h → SkTLogic.h} +1 -1
- package/cpp/skia/include/private/{base/SkTemplates.h → SkTemplates.h} +5 -6
- package/cpp/skia/include/private/{base/SkThreadAnnotations.h → SkThreadAnnotations.h} +1 -1
- package/cpp/skia/include/private/{base/SkThreadID.h → SkThreadID.h} +2 -2
- package/cpp/skia/include/private/{base/SkTo.h → SkTo.h} +2 -2
- package/cpp/skia/include/private/{base/SkTypeTraits.h → SkTypeTraits.h} +20 -0
- package/cpp/skia/include/private/SkXmp.h +1 -1
- package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +1 -1
- package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +1 -1
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -1
- package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkExifChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkImageChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkPMColor.h +1 -1
- package/cpp/skia/include/private/chromium/Slug.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +2 -2
- package/cpp/skia/include/private/gpu/ganesh/GrTextureGenerator.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +4 -4
- package/cpp/skia/include/utils/SkCamera.h +1 -1
- package/cpp/skia/include/utils/SkNWayCanvas.h +1 -1
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +1 -1
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +6 -6
- package/cpp/skia/modules/jsonreader/SkJSONReader.h +2 -2
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +1 -1
- package/cpp/skia/modules/skottie/include/SlotManager.h +2 -2
- package/cpp/skia/modules/skottie/include/TextShaper.h +1 -1
- package/cpp/skia/modules/skottie/src/text/Font.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +1 -1
- package/cpp/skia/modules/skresources/include/SkResources.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +1 -1
- package/cpp/skia/modules/skunicode/include/SkUnicode.h +3 -3
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFe.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGLine.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGMask.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGNode.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGShape.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGStop.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGValue.h +1 -1
- package/cpp/skia/src/{base → core}/SkArenaAlloc.h +5 -5
- package/cpp/skia/src/{base → core}/SkAutoLocaleSetter.h +1 -1
- package/cpp/skia/src/core/SkChecksum.h +1 -1
- package/cpp/skia/src/core/SkLRUCache.h +1 -1
- package/cpp/skia/src/{base → core}/SkMathPriv.h +3 -3
- package/cpp/skia/src/core/SkTHash.h +1 -1
- package/cpp/skia/src/{base → core}/SkTInternalLList.h +3 -3
- package/cpp/skia/src/{base → core}/SkTLazy.h +1 -1
- package/cpp/skia/src/{base → core}/SkUTF.h +1 -1
- package/lib/commonjs/renderer/components/Mask.js +3 -9
- package/lib/commonjs/renderer/components/Mask.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.js +28 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix4.js +7 -2
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
- package/lib/commonjs/skia/types/Skia.d.ts +1 -6
- package/lib/commonjs/skia/types/Skia.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkia.js +0 -3
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Core.js +8 -1
- package/lib/commonjs/sksg/Recorder/Core.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/commonjs/sksg/Recorder/DrawingContext.js +10 -0
- package/lib/commonjs/sksg/Recorder/DrawingContext.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Player.js +1 -1
- package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js +8 -0
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.js +4 -0
- package/lib/commonjs/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Visitor.js +6 -1
- package/lib/commonjs/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Drawing.js +10 -8
- package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js +15 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Shaders.js +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Shaders.js.map +1 -1
- package/lib/commonjs/sksg/utils.d.ts +4 -0
- package/lib/commonjs/sksg/utils.js +14 -1
- package/lib/commonjs/sksg/utils.js.map +1 -1
- package/lib/module/renderer/components/Mask.js +3 -9
- package/lib/module/renderer/components/Mask.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/module/renderer/processors/Animations/Animations.js +21 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/module/skia/types/Matrix4.js +7 -2
- package/lib/module/skia/types/Matrix4.js.map +1 -1
- package/lib/module/skia/types/Skia.d.ts +1 -6
- package/lib/module/skia/types/Skia.js.map +1 -1
- package/lib/module/skia/web/JsiSkia.js +0 -3
- package/lib/module/skia/web/JsiSkia.js.map +1 -1
- package/lib/module/sksg/Recorder/Core.js +8 -1
- package/lib/module/sksg/Recorder/Core.js.map +1 -1
- package/lib/module/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/module/sksg/Recorder/DrawingContext.js +10 -0
- package/lib/module/sksg/Recorder/DrawingContext.js.map +1 -1
- package/lib/module/sksg/Recorder/Player.js +1 -1
- package/lib/module/sksg/Recorder/Player.js.map +1 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js +9 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/module/sksg/Recorder/Recorder.js +5 -1
- package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Visitor.js +6 -1
- package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Drawing.js +10 -8
- package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js +15 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Shaders.js +1 -1
- package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
- package/lib/module/sksg/utils.d.ts +4 -0
- package/lib/module/sksg/utils.js +12 -0
- package/lib/module/sksg/utils.js.map +1 -1
- package/lib/typescript/lib/commonjs/renderer/processors/Animations/Animations.d.ts +22 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +0 -1
- package/lib/typescript/lib/commonjs/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/typescript/lib/commonjs/sksg/utils.d.ts +1 -0
- package/lib/typescript/lib/module/mock/index.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/Animations.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/index.d.ts +1 -1
- package/lib/typescript/lib/module/skia/Skia.web.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +0 -1
- package/lib/typescript/lib/module/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/typescript/lib/module/sksg/utils.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/typescript/src/skia/types/Skia.d.ts +1 -6
- package/lib/typescript/src/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/typescript/src/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/typescript/src/sksg/utils.d.ts +4 -0
- package/package.json +9 -9
- package/src/renderer/components/Mask.tsx +10 -3
- package/src/renderer/processors/Animations/Animations.ts +34 -1
- package/src/skia/types/Matrix4.ts +6 -2
- package/src/skia/types/Skia.ts +1 -7
- package/src/skia/web/JsiSkia.ts +0 -4
- package/src/sksg/Recorder/Core.ts +11 -1
- package/src/sksg/Recorder/DrawingContext.ts +10 -0
- package/src/sksg/Recorder/Player.ts +1 -1
- package/src/sksg/Recorder/ReanimatedRecorder.ts +10 -1
- package/src/sksg/Recorder/Recorder.ts +7 -3
- package/src/sksg/Recorder/Visitor.ts +9 -6
- package/src/sksg/Recorder/commands/Drawing.ts +10 -8
- package/src/sksg/Recorder/commands/ImageFilters.ts +20 -1
- package/src/sksg/Recorder/commands/Shaders.ts +1 -1
- package/src/sksg/utils.ts +18 -0
- package/cpp/api/JsiSkiaContext.h +0 -94
- package/cpp/dawn/include/dawn/dawn_proc.h +0 -53
- package/cpp/dawn/include/dawn/dawn_proc_table.h +0 -330
- package/cpp/dawn/include/dawn/dawn_thread_dispatch_proc.h +0 -47
- package/cpp/dawn/include/dawn/dawn_version.h +0 -41
- package/cpp/dawn/include/dawn/native/D3D11Backend.h +0 -65
- package/cpp/dawn/include/dawn/native/D3D12Backend.h +0 -86
- package/cpp/dawn/include/dawn/native/D3DBackend.h +0 -56
- package/cpp/dawn/include/dawn/native/DawnNative.h +0 -369
- package/cpp/dawn/include/dawn/native/MetalBackend.h +0 -56
- package/cpp/dawn/include/dawn/native/NullBackend.h +0 -39
- package/cpp/dawn/include/dawn/native/OpenGLBackend.h +0 -89
- package/cpp/dawn/include/dawn/native/VulkanBackend.h +0 -183
- package/cpp/dawn/include/dawn/native/WebGPUBackend.h +0 -49
- package/cpp/dawn/include/dawn/native/dawn_native_export.h +0 -49
- package/cpp/dawn/include/dawn/platform/DawnPlatform.h +0 -210
- package/cpp/dawn/include/dawn/platform/dawn_platform_export.h +0 -49
- package/cpp/dawn/include/dawn/replay/Replay.h +0 -99
- package/cpp/dawn/include/dawn/replay/dawn_replay_export.h +0 -49
- package/cpp/dawn/include/dawn/webgpu_cpp_print.h +0 -2844
- package/cpp/dawn/include/tint/tint.h +0 -90
- package/cpp/dawn/include/webgpu/webgpu.h +0 -4987
- package/cpp/dawn/include/webgpu/webgpu_cpp.h +0 -10080
- package/cpp/dawn/include/webgpu/webgpu_cpp_chained_struct.h +0 -57
- package/cpp/dawn/include/webgpu/webgpu_enum_class_bitmasks.h +0 -161
- package/cpp/dawn/include/webgpu/webgpu_glfw.h +0 -88
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteUtils.h +0 -10
- package/cpp/skia/include/private/base/README.md +0 -4
- package/cpp/skia/include/private/base/SkPoint_impl.h +0 -560
- package/cpp/skia/include/private/base/SkSpan_impl.h +0 -158
- package/cpp/skia/src/gpu/graphite/ContextOptionsPriv.h +0 -45
- package/cpp/skia/src/gpu/graphite/ResourceTypes.h +0 -360
- package/cpp/skia/src/gpu/graphite/TextureProxyView.h +0 -105
- package/libs/.graphite +0 -1
- /package/cpp/skia/include/private/{base/SkASAN.h → SkASAN.h} +0 -0
- /package/cpp/skia/include/private/{base/SkAlignedStorage.h → SkAlignedStorage.h} +0 -0
- /package/cpp/skia/include/private/{base/SkCPUTypes.h → SkCPUTypes.h} +0 -0
- /package/cpp/skia/include/private/{base/SkFeatures.h → SkFeatures.h} +0 -0
- /package/cpp/skia/include/private/{base/SkLogPriority.h → SkLogPriority.h} +0 -0
- /package/cpp/skia/include/private/{base/SkTPin.h → SkTPin.h} +0 -0
|
@@ -6,42 +6,44 @@
|
|
|
6
6
|
// DO NOT EDIT!
|
|
7
7
|
|
|
8
8
|
#ifndef GPU_DRIVER_BUG_WORKAROUNDS
|
|
9
|
-
#define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
|
|
10
|
-
GPU_OP(ADD_AND_TRUE_TO_LOOP_CONDITION,
|
|
11
|
-
add_and_true_to_loop_condition)
|
|
12
|
-
GPU_OP(DISABLE_BLEND_EQUATION_ADVANCED,
|
|
13
|
-
disable_blend_equation_advanced)
|
|
14
|
-
GPU_OP(DISABLE_DISCARD_FRAMEBUFFER,
|
|
15
|
-
disable_discard_framebuffer)
|
|
16
|
-
GPU_OP(DISABLE_DUAL_SOURCE_BLENDING_SUPPORT,
|
|
17
|
-
disable_dual_source_blending_support)
|
|
18
|
-
GPU_OP(DISABLE_TEXTURE_STORAGE,
|
|
19
|
-
disable_texture_storage)
|
|
20
|
-
GPU_OP(DISALLOW_LARGE_INSTANCED_DRAW,
|
|
21
|
-
disallow_large_instanced_draw)
|
|
22
|
-
GPU_OP(EMULATE_ABS_INT_FUNCTION,
|
|
23
|
-
emulate_abs_int_function)
|
|
24
|
-
GPU_OP(ENSURE_PREVIOUS_FRAMEBUFFER_NOT_DELETED,
|
|
25
|
-
ensure_previous_framebuffer_not_deleted)
|
|
26
|
-
GPU_OP(FLUSH_ON_FRAMEBUFFER_CHANGE,
|
|
27
|
-
flush_on_framebuffer_change)
|
|
28
|
-
GPU_OP(
|
|
29
|
-
|
|
30
|
-
GPU_OP(
|
|
31
|
-
|
|
32
|
-
GPU_OP(
|
|
33
|
-
|
|
34
|
-
GPU_OP(
|
|
35
|
-
|
|
36
|
-
GPU_OP(
|
|
37
|
-
|
|
38
|
-
GPU_OP(
|
|
39
|
-
|
|
40
|
-
GPU_OP(
|
|
41
|
-
|
|
42
|
-
GPU_OP(
|
|
43
|
-
|
|
44
|
-
GPU_OP(
|
|
45
|
-
|
|
9
|
+
#define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) \
|
|
10
|
+
GPU_OP(ADD_AND_TRUE_TO_LOOP_CONDITION, \
|
|
11
|
+
add_and_true_to_loop_condition) \
|
|
12
|
+
GPU_OP(DISABLE_BLEND_EQUATION_ADVANCED, \
|
|
13
|
+
disable_blend_equation_advanced) \
|
|
14
|
+
GPU_OP(DISABLE_DISCARD_FRAMEBUFFER, \
|
|
15
|
+
disable_discard_framebuffer) \
|
|
16
|
+
GPU_OP(DISABLE_DUAL_SOURCE_BLENDING_SUPPORT, \
|
|
17
|
+
disable_dual_source_blending_support) \
|
|
18
|
+
GPU_OP(DISABLE_TEXTURE_STORAGE, \
|
|
19
|
+
disable_texture_storage) \
|
|
20
|
+
GPU_OP(DISALLOW_LARGE_INSTANCED_DRAW, \
|
|
21
|
+
disallow_large_instanced_draw) \
|
|
22
|
+
GPU_OP(EMULATE_ABS_INT_FUNCTION, \
|
|
23
|
+
emulate_abs_int_function) \
|
|
24
|
+
GPU_OP(ENSURE_PREVIOUS_FRAMEBUFFER_NOT_DELETED, \
|
|
25
|
+
ensure_previous_framebuffer_not_deleted) \
|
|
26
|
+
GPU_OP(FLUSH_ON_FRAMEBUFFER_CHANGE, \
|
|
27
|
+
flush_on_framebuffer_change) \
|
|
28
|
+
GPU_OP(FLUSH_QUERIES_BEFORE_DELETING_OR_UNBINDING_FBO, \
|
|
29
|
+
flush_queries_before_deleting_or_unbinding_fbo) \
|
|
30
|
+
GPU_OP(FORCE_UPDATE_SCISSOR_STATE_WHEN_BINDING_FBO0, \
|
|
31
|
+
force_update_scissor_state_when_binding_fbo0) \
|
|
32
|
+
GPU_OP(GL_CLEAR_BROKEN, \
|
|
33
|
+
gl_clear_broken) \
|
|
34
|
+
GPU_OP(MAX_FRAGMENT_UNIFORM_VECTORS_32, \
|
|
35
|
+
max_fragment_uniform_vectors_32) \
|
|
36
|
+
GPU_OP(MAX_MSAA_SAMPLE_COUNT_4, \
|
|
37
|
+
max_msaa_sample_count_4) \
|
|
38
|
+
GPU_OP(PACK_PARAMETERS_WORKAROUND_WITH_PACK_BUFFER, \
|
|
39
|
+
pack_parameters_workaround_with_pack_buffer) \
|
|
40
|
+
GPU_OP(REMOVE_POW_WITH_CONSTANT_EXPONENT, \
|
|
41
|
+
remove_pow_with_constant_exponent) \
|
|
42
|
+
GPU_OP(REWRITE_DO_WHILE_LOOPS, \
|
|
43
|
+
rewrite_do_while_loops) \
|
|
44
|
+
GPU_OP(UNBIND_ATTACHMENTS_ON_BOUND_RENDER_FBO_DELETE, \
|
|
45
|
+
unbind_attachments_on_bound_render_fbo_delete) \
|
|
46
|
+
GPU_OP(UNFOLD_SHORT_CIRCUIT_AS_TERNARY_OPERATION, \
|
|
47
|
+
unfold_short_circuit_as_ternary_operation) \
|
|
46
48
|
|
|
47
49
|
#endif // GPU_DRIVER_BUG_WORKAROUNDS
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
13
|
#include "include/core/SkString.h" // IWYU pragma: keep
|
|
14
14
|
#include "include/core/SkTypes.h"
|
|
15
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkTArray.h"
|
|
16
16
|
#include "include/private/gpu/ganesh/GrContext_Base.h"
|
|
17
17
|
#include "include/private/gpu/ganesh/GrImageContext.h"
|
|
18
18
|
|
|
@@ -279,8 +279,9 @@ protected:
|
|
|
279
279
|
private:
|
|
280
280
|
OwnedArenas fArenas;
|
|
281
281
|
|
|
282
|
+
std::unique_ptr<GrProxyProvider> fProxyProvider;
|
|
283
|
+
// Depends on fProxyProvider (drawing tasks reference proxies). Must be destroyed first.
|
|
282
284
|
std::unique_ptr<GrDrawingManager> fDrawingManager;
|
|
283
|
-
std::unique_ptr<GrProxyProvider> fProxyProvider;
|
|
284
285
|
std::unique_ptr<const skcpu::ContextImpl> fCPUContext;
|
|
285
286
|
std::unique_ptr<SkGaneshRecorder> fRecorder;
|
|
286
287
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
13
|
#include "include/core/SkSurface.h"
|
|
14
14
|
#include "include/gpu/ganesh/GrTypes.h"
|
|
15
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
16
|
|
|
17
17
|
class GrBackendRenderTarget;
|
|
18
18
|
class GrBackendTexture;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define GrD3DBackendSemaphore_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/gpu/ganesh/GrBackendSemaphore.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "include/private/gpu/ganesh/GrD3DTypesMinimal.h"
|
|
14
14
|
|
|
15
15
|
namespace GrBackendSemaphores {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
#include "include/core/SkString.h"
|
|
12
12
|
#include "include/gpu/ganesh/gl/GrGLFunctions.h"
|
|
13
13
|
#include "include/gpu/ganesh/gl/GrGLTypes.h"
|
|
14
|
-
#include "include/private/
|
|
15
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
|
+
#include "include/private/SkTArray.h"
|
|
16
16
|
|
|
17
17
|
#include <utility>
|
|
18
18
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkTextureCompressionType.h"
|
|
12
12
|
#include "include/gpu/GpuTypes.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAssert.h"
|
|
14
14
|
#include "include/private/gpu/ganesh/GrTypesPriv.h"
|
|
15
15
|
|
|
16
16
|
#include <cstdint>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/gpu/ganesh/GrBackendSemaphore.h"
|
|
12
12
|
#include "include/gpu/ganesh/mtl/GrMtlTypes.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
14
|
|
|
15
15
|
namespace GrBackendSemaphores {
|
|
16
16
|
// It is the creator's responsibility to ref the MTLEvent passed in here, via __bridge_retained.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define GrVkBackendSemaphore_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/gpu/ganesh/GrBackendSemaphore.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "include/private/gpu/vk/SkiaVulkan.h"
|
|
14
14
|
|
|
15
15
|
namespace GrBackendSemaphores {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
#ifndef skgpu_graphite_BackendSemaphore_DEFINED
|
|
9
9
|
#define skgpu_graphite_BackendSemaphore_DEFINED
|
|
10
10
|
|
|
11
|
-
#include "include/private/
|
|
12
|
-
#include "include/private/
|
|
11
|
+
#include "include/private/SkAPI.h"
|
|
12
|
+
#include "include/private/SkAnySubclass.h"
|
|
13
13
|
|
|
14
14
|
#include <cstddef>
|
|
15
15
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkSize.h"
|
|
12
12
|
#include "include/gpu/graphite/TextureInfo.h"
|
|
13
|
-
#include "include/private/
|
|
14
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
|
+
#include "include/private/SkAnySubclass.h"
|
|
15
15
|
|
|
16
16
|
#include <cstddef>
|
|
17
17
|
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
#include "include/core/SkTypes.h"
|
|
16
16
|
#include "include/gpu/graphite/GraphiteTypes.h"
|
|
17
17
|
#include "include/gpu/graphite/Recorder.h" // IWYU pragma: keep
|
|
18
|
-
#include "include/private/
|
|
19
|
-
#include "include/private/
|
|
18
|
+
#include "include/private/SingleOwner.h"
|
|
19
|
+
#include "include/private/SkThreadAnnotations.h"
|
|
20
20
|
|
|
21
21
|
#if defined(GPU_TEST_UTILS)
|
|
22
|
-
#include "include/private/
|
|
22
|
+
#include "include/private/SkMutex.h"
|
|
23
23
|
#endif
|
|
24
24
|
|
|
25
25
|
#include <chrono>
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
#include "include/core/SkSize.h"
|
|
13
13
|
#include "include/core/SkSpan.h"
|
|
14
14
|
#include "include/gpu/graphite/GraphiteTypes.h"
|
|
15
|
-
#include "include/private/
|
|
16
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
|
+
#include "include/private/SkMath.h"
|
|
17
17
|
|
|
18
18
|
#include <optional>
|
|
19
19
|
#include <string>
|
|
@@ -222,6 +222,12 @@ struct SK_API ContextOptions {
|
|
|
222
222
|
*/
|
|
223
223
|
bool fEnableCapture = false;
|
|
224
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Avoid using depth/stencil buffers. This will disable depth-occlusion-culling (more GPU work)
|
|
227
|
+
* and fall back to analytic path algorithm instead of MSAA (more CPU work).
|
|
228
|
+
*/
|
|
229
|
+
bool fAvoidDepthMode = false;
|
|
230
|
+
|
|
225
231
|
/**
|
|
226
232
|
* Private options that are only meant for testing within Skia's tools.
|
|
227
233
|
*/
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
#define skgpu_graphite_PrecompileContext_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
13
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SingleOwner.h"
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
14
|
|
|
15
15
|
#include <chrono>
|
|
16
16
|
#include <memory>
|
|
@@ -75,6 +75,20 @@ public:
|
|
|
75
75
|
std::string getPipelineLabel(sk_sp<SkData> serializedPipelineKey,
|
|
76
76
|
uint32_t* uniqueHash = nullptr);
|
|
77
77
|
|
|
78
|
+
enum class ExternalFormatResult {
|
|
79
|
+
kInvalid, // the serialized key was invalid
|
|
80
|
+
kNoExternalFormat,
|
|
81
|
+
kHasExternalFormat
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Determine if a serialized pipeline key contains a usage of an external texture format.
|
|
86
|
+
*
|
|
87
|
+
* @param serializedPipelineKey serialized Pipeline key.
|
|
88
|
+
* @return a tri-state value (see ExternalFormatResult)
|
|
89
|
+
*/
|
|
90
|
+
ExternalFormatResult containsExternalFormat(sk_sp<SkData> serializedPipelineKey) const;
|
|
91
|
+
|
|
78
92
|
// Provides access to functions that aren't part of the public API.
|
|
79
93
|
PrecompileContextPriv priv();
|
|
80
94
|
const PrecompileContextPriv priv() const; // NOLINT(readability-const-return-type)
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
#include "include/core/SkSurface.h"
|
|
15
15
|
#include "include/gpu/graphite/GraphiteTypes.h"
|
|
16
16
|
#include "include/gpu/graphite/Recording.h"
|
|
17
|
-
#include "include/private/
|
|
18
|
-
#include "include/private/
|
|
19
|
-
#include "include/private/
|
|
17
|
+
#include "include/private/SingleOwner.h"
|
|
18
|
+
#include "include/private/SkAPI.h"
|
|
19
|
+
#include "include/private/SkTArray.h"
|
|
20
20
|
|
|
21
21
|
#include <chrono>
|
|
22
22
|
#include <cstddef>
|
|
@@ -52,7 +52,7 @@ class BackendTexture;
|
|
|
52
52
|
class Context;
|
|
53
53
|
class Device;
|
|
54
54
|
class DrawBufferManager;
|
|
55
|
-
class
|
|
55
|
+
class StorageBufferManager;
|
|
56
56
|
class ImageProvider;
|
|
57
57
|
class PaintParamsKeyBuilder;
|
|
58
58
|
class PipelineDataGatherer;
|
|
@@ -283,7 +283,7 @@ private:
|
|
|
283
283
|
void deregisterDevice(const Device*);
|
|
284
284
|
|
|
285
285
|
SkCanvas* makeCaptureCanvas(SkCanvas*) override;
|
|
286
|
-
|
|
286
|
+
void createCaptureBreakpoint(SkSurface*) override;
|
|
287
287
|
|
|
288
288
|
sk_sp<SharedContext> fSharedContext;
|
|
289
289
|
ResourceProvider* fResourceProvider; // May point to the Context's resource provider
|
|
@@ -296,9 +296,10 @@ private:
|
|
|
296
296
|
// Aggregated one-time uploads that precede all tasks in the root task list.
|
|
297
297
|
std::unique_ptr<UploadList> fRootUploads;
|
|
298
298
|
|
|
299
|
-
std::unique_ptr<DrawBufferManager> fDrawBufferManager;
|
|
300
299
|
std::unique_ptr<UploadBufferManager> fUploadBufferManager;
|
|
301
|
-
|
|
300
|
+
// Depends on fUploadBufferManager (holds a pointer to it). Must be destroyed first.
|
|
301
|
+
std::unique_ptr<DrawBufferManager> fDrawBufferManager;
|
|
302
|
+
sk_sp<StorageBufferManager> fStorageBufferManager;
|
|
302
303
|
std::unique_ptr<ProxyReadCountMap> fProxyReadCounts;
|
|
303
304
|
|
|
304
305
|
skia_private::STArray<kMaxKeyAndDataBuilders, std::unique_ptr<KeyAndDataBuilder>>
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
#define skgpu_graphite_Recording_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
13
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
|
+
#include "include/private/SkTArray.h"
|
|
14
14
|
#include <cstddef>
|
|
15
15
|
#include <cstdint>
|
|
16
16
|
#include <memory>
|
|
@@ -77,14 +77,16 @@ private:
|
|
|
77
77
|
uint32_t fUniqueID;
|
|
78
78
|
uint32_t fRecorderID;
|
|
79
79
|
|
|
80
|
-
// This is held by a pointer instead of being inline to allow TaskList to be forward declared.
|
|
81
|
-
std::unique_ptr<TaskList> fRootTaskList;
|
|
82
80
|
// We don't always take refs to all resources used by specific Tasks (e.g. a common buffer used
|
|
83
81
|
// for uploads). Instead we'll just hold onto one ref for those Resources outside the Tasks.
|
|
84
82
|
// Those refs are stored in the array here and will eventually be passed onto a CommandBuffer
|
|
85
83
|
// when the Recording adds its commands.
|
|
86
84
|
std::vector<sk_sp<Resource>> fExtraResourceRefs;
|
|
87
85
|
|
|
86
|
+
// This is held by a pointer instead of being inline to allow TaskList to be forward declared.
|
|
87
|
+
// Depends on fExtraResourceRefs (tasks reference resources). Must be destroyed first.
|
|
88
|
+
std::unique_ptr<TaskList> fRootTaskList;
|
|
89
|
+
|
|
88
90
|
std::unordered_set<sk_sp<TextureProxy>, ProxyHash> fNonVolatileLazyProxies;
|
|
89
91
|
std::unordered_set<sk_sp<TextureProxy>, ProxyHash> fVolatileLazyProxies;
|
|
90
92
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkString.h"
|
|
12
12
|
#include "include/gpu/graphite/GraphiteTypes.h"
|
|
13
|
-
#include "include/private/
|
|
14
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
|
+
#include "include/private/SkAnySubclass.h"
|
|
15
15
|
|
|
16
16
|
struct SkISize;
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkSize.h"
|
|
12
12
|
#include "include/gpu/graphite/GraphiteTypes.h"
|
|
13
13
|
#include "include/gpu/graphite/TextureInfo.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
|
|
16
16
|
#include "webgpu/webgpu_cpp.h" // NO_G3_REWRITE
|
|
17
17
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
#include "include/gpu/graphite/GraphiteTypes.h"
|
|
16
16
|
#include "include/gpu/graphite/TextureInfo.h"
|
|
17
17
|
#include "include/gpu/graphite/mtl/MtlGraphiteTypes_cpp.h"
|
|
18
|
-
#include "include/private/
|
|
18
|
+
#include "include/private/SkAPI.h"
|
|
19
19
|
|
|
20
20
|
#import <CoreFoundation/CoreFoundation.h>
|
|
21
21
|
#import <Metal/Metal.h>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
#include "include/core/SkBlendMode.h"
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
13
|
#include "include/core/SkSpan.h"
|
|
14
|
-
#include "include/private/
|
|
15
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkTArray.h"
|
|
15
|
+
#include "include/private/SkTDArray.h"
|
|
16
16
|
|
|
17
17
|
#include <functional>
|
|
18
18
|
|