@shopify/react-native-skia 0.1.196 → 0.1.199
Sign up to get free protection for your applications and to get access to all the features.
- package/android/CMakeLists.txt +32 -31
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.cpp +4 -2
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +3 -0
- package/cpp/api/JsiSkImage.h +1 -1
- package/cpp/api/JsiSkShaderFactory.h +4 -4
- package/cpp/api/JsiSkSurface.h +0 -1
- package/cpp/api/JsiSkSurfaceFactory.h +2 -1
- package/cpp/rnskia/RNSkView.h +20 -40
- package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +2 -2
- package/cpp/rnskia/values/RNSkReadonlyValue.h +6 -7
- package/cpp/skia/include/android/SkCanvasAndroid.h +20 -0
- package/cpp/skia/include/android/SkHeifDecoder.h +43 -0
- package/cpp/skia/include/android/SkSurfaceAndroid.h +50 -0
- package/cpp/skia/include/codec/SkAvifDecoder.h +43 -0
- package/cpp/skia/include/codec/SkBmpDecoder.h +43 -0
- package/cpp/skia/include/codec/SkCodec.h +25 -1
- package/cpp/skia/include/codec/SkGifDecoder.h +43 -0
- package/cpp/skia/include/codec/SkIcoDecoder.h +43 -0
- package/cpp/skia/include/codec/SkJpegDecoder.h +43 -0
- package/cpp/skia/include/codec/SkJpegxlDecoder.h +43 -0
- package/cpp/skia/include/codec/SkPngDecoder.h +43 -0
- package/cpp/skia/include/codec/SkRawDecoder.h +49 -0
- package/cpp/skia/include/codec/SkWbmpDecoder.h +43 -0
- package/cpp/skia/include/codec/SkWebpDecoder.h +43 -0
- package/cpp/skia/include/core/SkBBHFactory.h +5 -1
- package/cpp/skia/include/core/SkBlender.h +0 -2
- package/cpp/skia/include/core/SkCanvas.h +4 -23
- package/cpp/skia/include/core/SkColorFilter.h +14 -1
- package/cpp/skia/include/core/SkColorTable.h +59 -0
- package/cpp/skia/include/core/SkContourMeasure.h +3 -0
- package/cpp/skia/include/core/SkDeferredDisplayList.h +8 -104
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +8 -91
- package/cpp/skia/include/core/SkDrawable.h +5 -2
- package/cpp/skia/include/core/SkGraphics.h +7 -19
- package/cpp/skia/include/core/SkImage.h +157 -249
- package/cpp/skia/include/core/SkImageGenerator.h +0 -31
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkPathMeasure.h +3 -3
- package/cpp/skia/include/core/SkPictureRecorder.h +1 -1
- package/cpp/skia/include/core/SkPoint.h +5 -563
- package/cpp/skia/include/core/SkPoint3.h +1 -0
- package/cpp/skia/include/core/SkPromiseImageTexture.h +4 -30
- package/cpp/skia/include/core/SkRect.h +8 -8
- package/cpp/skia/include/core/SkSamplingOptions.h +4 -2
- package/cpp/skia/include/core/SkScalar.h +1 -1
- package/cpp/skia/include/core/SkSerialProcs.h +5 -1
- package/cpp/skia/include/core/SkShader.h +14 -21
- package/cpp/skia/include/core/SkString.h +2 -0
- package/cpp/skia/include/core/SkSurface.h +169 -701
- package/cpp/skia/include/core/SkSurfaceCharacterization.h +8 -256
- package/cpp/skia/include/core/SkTiledImageUtils.h +97 -0
- package/cpp/skia/include/core/SkTypes.h +4 -2
- package/cpp/skia/include/core/SkYUVAPixmaps.h +0 -5
- package/cpp/skia/include/effects/SkGradientShader.h +10 -1
- package/cpp/skia/include/effects/SkImageFilters.h +62 -37
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +28 -29
- package/cpp/skia/include/effects/SkRuntimeEffect.h +17 -12
- package/cpp/skia/include/gpu/GrBackendSurface.h +12 -39
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +6 -0
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +3 -3
- package/cpp/skia/include/gpu/GrDirectContext.h +103 -3
- package/cpp/skia/include/gpu/GrRecordingContext.h +10 -19
- package/cpp/skia/include/gpu/MutableTextureState.h +4 -0
- package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +54 -0
- package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +20 -76
- package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +217 -0
- package/cpp/skia/include/gpu/ganesh/mtl/SkSurfaceMetal.h +73 -0
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +13 -2
- package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +78 -0
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +1 -0
- package/cpp/skia/include/gpu/graphite/Image.h +277 -0
- package/cpp/skia/include/gpu/graphite/ImageProvider.h +1 -1
- package/cpp/skia/include/gpu/graphite/Recording.h +1 -4
- package/cpp/skia/include/gpu/graphite/Surface.h +81 -0
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +5 -7
- package/cpp/skia/include/gpu/graphite/YUVABackendTextures.h +2 -2
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +23 -8
- package/cpp/skia/include/ports/SkTypeface_fontations.h +21 -0
- package/cpp/skia/include/private/SkGainmapInfo.h +2 -0
- package/cpp/skia/include/private/SkGainmapShader.h +1 -0
- package/cpp/skia/include/private/SkJpegMetadataDecoder.h +19 -1
- package/cpp/skia/include/private/SkPathRef.h +13 -15
- package/cpp/skia/include/private/SkXmp.h +53 -0
- package/cpp/skia/include/private/base/SkFeatures.h +0 -4
- package/cpp/skia/include/private/base/SkFloatingPoint.h +11 -5
- package/cpp/skia/include/private/base/SkPoint_impl.h +569 -0
- package/cpp/skia/include/private/base/SkSpan_impl.h +3 -7
- package/cpp/skia/include/private/base/SkTArray.h +11 -11
- package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +120 -0
- package/cpp/skia/include/private/chromium/GrDeferredDisplayListRecorder.h +98 -0
- package/cpp/skia/include/private/chromium/GrPromiseImageTexture.h +43 -0
- package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +215 -0
- package/cpp/skia/include/private/chromium/GrVkSecondaryCBDrawContext.h +6 -6
- package/cpp/skia/include/private/chromium/SkImageChromium.h +104 -0
- package/cpp/skia/include/private/chromium/Slug.h +7 -3
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +7 -3
- package/cpp/skia/include/private/gpu/ganesh/GrGLTypesPriv.h +2 -0
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +3 -2
- package/cpp/skia/include/private/gpu/ganesh/GrMtlTypesPriv.h +10 -2
- package/cpp/skia/include/{gpu → private/gpu}/ganesh/GrTextureGenerator.h +2 -13
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1 -1
- package/cpp/skia/include/private/gpu/graphite/DawnTypesPriv.h +7 -0
- package/cpp/skia/include/private/gpu/graphite/MtlGraphiteTypesPriv.h +19 -6
- package/cpp/skia/include/private/gpu/graphite/VulkanGraphiteTypesPriv.h +13 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +0 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +14 -1
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +999 -79
- package/cpp/skia/modules/skcms/src/Transform_inl.h +36 -236
- package/cpp/skia/modules/skparagraph/include/Paragraph.h +2 -0
- package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +16 -0
- package/cpp/skia/modules/skparagraph/include/TextStyle.h +6 -2
- package/cpp/skia/modules/skresources/include/SkResources.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 +1 -1
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGDefs.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/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 +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.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/SkSVGG.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGImage.h +1 -1
- 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 +3 -3
- 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/SkSVGTypes.h +21 -21
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGValue.h +2 -2
- package/cpp/skia/{include/private → src/core}/SkChecksum.h +32 -17
- package/cpp/skia/src/core/SkTHash.h +1 -1
- package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +3 -1
- package/ios/RNSkia-iOS/SkiaMetalRenderer.mm +3 -1
- package/lib/commonjs/renderer/Canvas.js +24 -13
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/skia/core/Data.d.ts +2 -2
- package/lib/commonjs/skia/core/Data.js.map +1 -1
- package/lib/commonjs/skia/core/RRect.js +5 -1
- package/lib/commonjs/skia/core/RRect.js.map +1 -1
- package/lib/commonjs/skia/core/Rect.js +32 -6
- package/lib/commonjs/skia/core/Rect.js.map +1 -1
- package/lib/commonjs/skia/types/Color.js.map +1 -1
- package/lib/commonjs/skia/types/JsiInstance.d.ts +2 -4
- package/lib/commonjs/skia/types/JsiInstance.js.map +1 -1
- package/lib/module/renderer/Canvas.js +25 -14
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/skia/core/Data.d.ts +2 -2
- package/lib/module/skia/core/Data.js.map +1 -1
- package/lib/module/skia/core/RRect.js +5 -1
- package/lib/module/skia/core/RRect.js.map +1 -1
- package/lib/module/skia/core/Rect.js +32 -6
- package/lib/module/skia/core/Rect.js.map +1 -1
- package/lib/module/skia/types/Color.js.map +1 -1
- package/lib/module/skia/types/JsiInstance.d.ts +2 -4
- package/lib/module/skia/types/JsiInstance.js.map +1 -1
- package/lib/typescript/src/skia/core/Data.d.ts +2 -2
- package/lib/typescript/src/skia/types/JsiInstance.d.ts +2 -4
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskottie.a +0 -0
- package/libs/android/arm64-v8a/libsksg.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/libsksg.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/libsksg.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/libsksg.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/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/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 -4
- package/src/renderer/Canvas.tsx +25 -19
- package/src/skia/core/Data.ts +3 -3
- package/src/skia/core/RRect.tsx +4 -2
- package/src/skia/core/Rect.ts +29 -12
- package/src/skia/types/Color.ts +1 -1
- package/src/skia/types/JsiInstance.ts +2 -5
- package/cpp/skia/include/effects/SkTableColorFilter.h +0 -29
- package/cpp/skia/include/private/SkOpts_spi.h +0 -23
- package/cpp/skia/include/private/SkSpinlock.h +0 -57
- package/cpp/skia/include/private/chromium/GrSlug.h +0 -16
- package/scripts/install-npm.js +0 -33
@@ -5,94 +5,11 @@
|
|
5
5
|
* found in the LICENSE file.
|
6
6
|
*/
|
7
7
|
|
8
|
-
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
#include "include/core/SkTypes.h"
|
17
|
-
|
18
|
-
class GrBackendFormat;
|
19
|
-
class GrBackendTexture;
|
20
|
-
class GrRecordingContext;
|
21
|
-
class GrYUVABackendTextureInfo;
|
22
|
-
class SkCanvas;
|
23
|
-
class SkSurface;
|
24
|
-
|
25
|
-
/*
|
26
|
-
* This class is intended to be used as:
|
27
|
-
* Get an SkSurfaceCharacterization representing the intended gpu-backed destination SkSurface
|
28
|
-
* Create one of these (an SkDeferredDisplayListRecorder) on the stack
|
29
|
-
* Get the canvas and render into it
|
30
|
-
* Snap off and hold on to an SkDeferredDisplayList
|
31
|
-
* Once your app actually needs the pixels, call SkSurface::draw(SkDeferredDisplayList*)
|
32
|
-
*
|
33
|
-
* This class never accesses the GPU but performs all the cpu work it can. It
|
34
|
-
* is thread-safe (i.e., one can break a scene into tiles and perform their cpu-side
|
35
|
-
* work in parallel ahead of time).
|
36
|
-
*/
|
37
|
-
class SK_API SkDeferredDisplayListRecorder {
|
38
|
-
public:
|
39
|
-
SkDeferredDisplayListRecorder(const SkSurfaceCharacterization&);
|
40
|
-
~SkDeferredDisplayListRecorder();
|
41
|
-
|
42
|
-
const SkSurfaceCharacterization& characterization() const {
|
43
|
-
return fCharacterization;
|
44
|
-
}
|
45
|
-
|
46
|
-
// The backing canvas will become invalid (and this entry point will return
|
47
|
-
// null) once 'detach' is called.
|
48
|
-
// Note: ownership of the SkCanvas is not transferred via this call.
|
49
|
-
SkCanvas* getCanvas();
|
50
|
-
|
51
|
-
sk_sp<SkDeferredDisplayList> detach();
|
52
|
-
|
53
|
-
#if defined(SK_GANESH)
|
54
|
-
using PromiseImageTextureContext = void*;
|
55
|
-
using PromiseImageTextureFulfillProc =
|
56
|
-
sk_sp<SkPromiseImageTexture> (*)(PromiseImageTextureContext);
|
57
|
-
using PromiseImageTextureReleaseProc = void (*)(PromiseImageTextureContext);
|
58
|
-
|
59
|
-
#ifndef SK_MAKE_PROMISE_TEXTURE_DISABLE_LEGACY_API
|
60
|
-
/** Deprecated: Use SkImages::PromiseTextureFrom instead. */
|
61
|
-
sk_sp<SkImage> makePromiseTexture(const GrBackendFormat& backendFormat,
|
62
|
-
int width,
|
63
|
-
int height,
|
64
|
-
GrMipmapped mipmapped,
|
65
|
-
GrSurfaceOrigin origin,
|
66
|
-
SkColorType colorType,
|
67
|
-
SkAlphaType alphaType,
|
68
|
-
sk_sp<SkColorSpace> colorSpace,
|
69
|
-
PromiseImageTextureFulfillProc textureFulfillProc,
|
70
|
-
PromiseImageTextureReleaseProc textureReleaseProc,
|
71
|
-
PromiseImageTextureContext textureContext);
|
72
|
-
|
73
|
-
/** Deprecated: Use SkImages::PromiseTextureFromYUVA instead. */
|
74
|
-
sk_sp<SkImage> makeYUVAPromiseTexture(const GrYUVABackendTextureInfo& yuvaBackendTextureInfo,
|
75
|
-
sk_sp<SkColorSpace> imageColorSpace,
|
76
|
-
PromiseImageTextureFulfillProc textureFulfillProc,
|
77
|
-
PromiseImageTextureReleaseProc textureReleaseProc,
|
78
|
-
PromiseImageTextureContext textureContexts[]);
|
79
|
-
#endif // SK_MAKE_PROMISE_TEXTURE_DISABLE_LEGACY_API
|
80
|
-
#endif // defined(SK_GANESH)
|
81
|
-
|
82
|
-
private:
|
83
|
-
SkDeferredDisplayListRecorder(const SkDeferredDisplayListRecorder&) = delete;
|
84
|
-
SkDeferredDisplayListRecorder& operator=(const SkDeferredDisplayListRecorder&) = delete;
|
85
|
-
|
86
|
-
bool init();
|
87
|
-
|
88
|
-
const SkSurfaceCharacterization fCharacterization;
|
89
|
-
|
90
|
-
#if defined(SK_GANESH)
|
91
|
-
sk_sp<GrRecordingContext> fContext;
|
92
|
-
sk_sp<GrRenderTargetProxy> fTargetProxy;
|
93
|
-
sk_sp<SkDeferredDisplayList::LazyProxyData> fLazyProxyData;
|
94
|
-
sk_sp<SkSurface> fSurface;
|
95
|
-
#endif
|
96
|
-
};
|
97
|
-
|
98
|
-
#endif
|
8
|
+
// TODO(kjlubick, robertphillips) migrate Chromium to use the new location
|
9
|
+
#include "include/private/chromium/GrDeferredDisplayListRecorder.h" // IWYU pragma: export
|
10
|
+
|
11
|
+
class GrDeferredDisplayList;
|
12
|
+
class GrSurfaceCharacterization;
|
13
|
+
using SkDeferredDisplayList = GrDeferredDisplayList;
|
14
|
+
using SkDeferredDisplayListRecorder = GrDeferredDisplayListRecorder;
|
15
|
+
using SkSurfaceCharacterization = GrSurfaceCharacterization;
|
@@ -93,7 +93,10 @@ public:
|
|
93
93
|
return this->onSnapGpuDrawHandler(backendApi, matrix, clipBounds, bufferInfo);
|
94
94
|
}
|
95
95
|
|
96
|
-
|
96
|
+
/**
|
97
|
+
* Returns an SkPicture with the contents of this SkDrawable.
|
98
|
+
*/
|
99
|
+
sk_sp<SkPicture> makePictureSnapshot();
|
97
100
|
|
98
101
|
/**
|
99
102
|
* Return a unique value for this instance. If two calls to this return the same value,
|
@@ -166,7 +169,7 @@ protected:
|
|
166
169
|
* of their drawable. Note: this picture must draw the same as what would be drawn from
|
167
170
|
* onDraw().
|
168
171
|
*/
|
169
|
-
virtual SkPicture
|
172
|
+
virtual sk_sp<SkPicture> onMakePictureSnapshot();
|
170
173
|
|
171
174
|
private:
|
172
175
|
int32_t fGenerationID;
|
@@ -74,6 +74,13 @@ public:
|
|
74
74
|
*/
|
75
75
|
static void PurgeFontCache();
|
76
76
|
|
77
|
+
/**
|
78
|
+
* If the strike cache is above the cache limit, attempt to purge strikes
|
79
|
+
* with pinners. This should be called after clients release locks on
|
80
|
+
* pinned strikes.
|
81
|
+
*/
|
82
|
+
static void PurgePinnedFontCache();
|
83
|
+
|
77
84
|
/**
|
78
85
|
* This function returns the memory used for temporary images and other resources.
|
79
86
|
*/
|
@@ -147,25 +154,6 @@ public:
|
|
147
154
|
* Call early in main() to allow Skia to use a JIT to accelerate CPU-bound operations.
|
148
155
|
*/
|
149
156
|
static void AllowJIT();
|
150
|
-
|
151
|
-
/**
|
152
|
-
* To override the default AA algorithm choice in the CPU backend, provide a function that
|
153
|
-
* returns whether to use analytic (true) or supersampled (false) for a given path.
|
154
|
-
*
|
155
|
-
* NOTE: This is a temporary API, intended for migration of all clients to one algorithm,
|
156
|
-
* and should not be used.
|
157
|
-
*/
|
158
|
-
typedef bool (*PathAnalyticAADeciderProc)(const SkPath&);
|
159
|
-
static void SetPathAnalyticAADecider(PathAnalyticAADeciderProc);
|
160
|
-
|
161
|
-
/*
|
162
|
-
* Similar to above, but simply forces the CPU backend to always use analytic AA.
|
163
|
-
*
|
164
|
-
* NOTE: This is a temporary API, intended for migration of all clients to one algorithm.
|
165
|
-
* If the PathAnalyticAADeciderProc is *also* set, this setting has no effect.
|
166
|
-
* Unlike that API, this function is thread-safe.
|
167
|
-
*/
|
168
|
-
static void SetForceAnalyticAA(bool);
|
169
157
|
};
|
170
158
|
|
171
159
|
class SkAutoGraphics {
|