Home
last modified time | relevance | path

Searched refs:sk_sp (Results 1 - 25 of 1890) sorted by relevance

12345678910>>...76

/third_party/skia/modules/skottie/src/effects/
H A DEffects.h28 sk_sp<sksg::RenderNode> attachEffects(const skjson::ArrayValue&,
29 sk_sp<sksg::RenderNode>) const;
31 sk_sp<sksg::RenderNode> attachStyles(const skjson::ArrayValue&,
32 sk_sp<sksg::RenderNode>) const;
41 using EffectBuilderT = sk_sp<sksg::RenderNode>(EffectBuilder::*)(const skjson::ArrayValue&,
42 sk_sp<sksg::RenderNode>) const;
44 sk_sp<sksg::RenderNode> attachBlackAndWhiteEffect (const skjson::ArrayValue&,
45 sk_sp<sksg::RenderNode>) const;
46 sk_sp<sksg::RenderNode> attachBrightnessContrastEffect(const skjson::ArrayValue&,
47 sk_sp<sks
[all...]
/third_party/skia/include/effects/
H A DSkImageFilters.h70 static sk_sp<SkImageFilter> AlphaThreshold(const SkRegion& region, SkScalar innerMin,
71 SkScalar outerMax, sk_sp<SkImageFilter> input,
84 static sk_sp<SkImageFilter> Arithmetic(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
85 bool enforcePMColor, sk_sp<SkImageFilter> background,
86 sk_sp<SkImageFilter> foreground,
96 static sk_sp<SkImageFilter> Blend(SkBlendMode mode, sk_sp<SkImageFilter> background,
97 sk_sp<SkImageFilter> foreground = nullptr,
107 static sk_sp<SkImageFilter> Blend(sk_sp<SkBlende
[all...]
H A DSkGradientShader.h73 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
77 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear()
97 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
98 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace,
101 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear()
102 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear()
120 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
124 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
143 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
144 const SkColor4f colors[], sk_sp<SkColorSpac
[all...]
/third_party/skia/modules/sksg/include/
H A DSkSGRenderEffect.h35 const sk_sp<SkShader>& getShader() const { in getShader()
45 virtual sk_sp<SkShader> onRevalidateShader() = 0;
48 sk_sp<SkShader> fShader;
60 static sk_sp<ShaderEffect> Make(sk_sp<RenderNode> child, sk_sp<Shader> shader = nullptr);
62 void setShader(sk_sp<Shader>);
70 ShaderEffect(sk_sp<RenderNode> child, sk_sp<Shader> shader);
72 sk_sp<Shade
[all...]
H A DSkSGGeometryEffect.h25 explicit GeometryEffect(sk_sp<GeometryNode>);
35 virtual SkPath onRevalidateEffect(const sk_sp<GeometryNode>&) = 0;
38 const sk_sp<GeometryNode> fChild;
49 static sk_sp<TrimEffect> Make(sk_sp<GeometryNode> child) { in Make()
50 return child ? sk_sp<TrimEffect>(new TrimEffect(std::move(child))) : nullptr; in Make()
58 explicit TrimEffect(sk_sp<GeometryNode> child) : INHERITED(std::move(child)) {} in TrimEffect()
60 SkPath onRevalidateEffect(const sk_sp<GeometryNode>&) override;
74 static sk_sp<GeometryTransform> Make(sk_sp<GeometryNod
[all...]
H A DSkSGColorFilter.h28 explicit ColorFilter(sk_sp<RenderNode>);
35 virtual sk_sp<SkColorFilter> onRevalidateFilter() = 0;
38 sk_sp<SkColorFilter> fColorFilter;
50 static sk_sp<ExternalColorFilter> Make(sk_sp<RenderNode> child);
54 SG_ATTRIBUTE(ColorFilter, sk_sp<SkColorFilter>, fColorFilter)
60 explicit ExternalColorFilter(sk_sp<RenderNode>);
62 sk_sp<SkColorFilter> fColorFilter;
74 static sk_sp<ModeColorFilter> Make(sk_sp<RenderNod
[all...]
/third_party/skia/modules/skresources/include/
H A DSkResources.h51 virtual sk_sp<SkImage> getFrame(float t);
55 sk_sp<SkImage> image;
85 static sk_sp<MultiFrameImageAsset> Make(sk_sp<SkData>, bool predecode = false);
89 sk_sp<SkImage> getFrame(float t) override;
94 sk_sp<SkImage> generateFrame(float t);
97 sk_sp<SkImage> fCachedFrame;
131 virtual sk_sp<SkData> load(const char[] /* resource_path */, in load()
140 virtual sk_sp<ImageAsset> loadImageAsset(const char[] /* resource_path */, in loadImageAsset()
149 virtual sk_sp<ExternalTrackAsse
[all...]
/third_party/skia/modules/skottie/src/layers/shapelayer/
H A DShapeLayer.h39 static sk_sp<sksg::Merge> MergeGeometry(std::vector<sk_sp<sksg::GeometryNode>>&&,
42 static sk_sp<sksg::GeometryNode> AttachPathGeometry(const skjson::ObjectValue&,
44 static sk_sp<sksg::GeometryNode> AttachRRectGeometry(const skjson::ObjectValue&,
46 static sk_sp<sksg::GeometryNode> AttachEllipseGeometry(const skjson::ObjectValue&,
48 static sk_sp<sksg::GeometryNode> AttachPolystarGeometry(const skjson::ObjectValue&,
51 static sk_sp<sksg::PaintNode> AttachColorFill(const skjson::ObjectValue&,
53 static sk_sp<sksg::PaintNode> AttachColorStroke(const skjson::ObjectValue&,
55 static sk_sp<sksg::PaintNode> AttachGradientFill(const skjson::ObjectValue&,
57 static sk_sp<sks
[all...]
/third_party/skia/modules/svg/src/
H A DSkSVGDOM.cpp56 bool SetIRIAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, in SetIRIAttribute()
67 bool SetStringAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, in SetStringAttribute()
75 bool SetTransformAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, in SetTransformAttribute()
86 bool SetLengthAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, in SetLengthAttribute()
97 bool SetViewBoxAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, in SetViewBoxAttribute()
109 bool SetObjectBoundingBoxUnitsAttribute(const sk_sp<SkSVGNode>& node, in SetObjectBoundingBoxUnitsAttribute()
121 bool SetPreserveAspectRatioAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, in SetPreserveAspectRatioAttribute()
181 bool set_string_attribute(const sk_sp<SkSVGNode>& node, const char* name, const char* value);
183 bool SetStyleAttributes(const sk_sp<SkSVGNode>& node, SkSVGAttribute, in SetStyleAttributes()
207 bool (*fSetter)(const sk_sp<SkSVGNod
[all...]
/third_party/skia/modules/skottie/src/
H A DSkottiePriv.h50 using AnimatorScope = std::vector<sk_sp<Animator>>;
54 AnimationBuilder(sk_sp<ResourceProvider>, sk_sp<SkFontMgr>, sk_sp<PropertyObserver>,
55 sk_sp<Logger>, sk_sp<MarkerObserver>, sk_sp<PrecompInterceptor>,
56 sk_sp<ExpressionManager>,
72 sk_sp<SkTypeface> fTypeface;
81 sk_sp<sks
[all...]
/third_party/skia/src/gpu/
H A DGrProxyProvider.h54 sk_sp<GrTextureProxy> findProxyByUniqueKey(const GrUniqueKey&);
60 sk_sp<GrTextureProxy> findOrCreateProxyByUniqueKey(const GrUniqueKey&,
78 sk_sp<GrTextureProxy> createProxyFromBitmap(const SkBitmap&,
86 sk_sp<GrTextureProxy> createProxy(const GrBackendFormat&,
100 sk_sp<GrTextureProxy> createCompressedTextureProxy(SkISize dimensions,
105 sk_sp<SkData> data);
115 sk_sp<GrTextureProxy> wrapBackendTexture(const GrBackendTexture&,
119 sk_sp<GrRefCntedCallback> = nullptr);
121 sk_sp<GrTextureProxy> wrapCompressedBackendTexture(const GrBackendTexture&,
124 sk_sp<GrRefCntedCallbac
[all...]
H A DGrResourceProvider.h50 typename std::enable_if<std::is_base_of<GrGpuResource, T>::value, sk_sp<T>>::type
52 return sk_sp<T>(static_cast<T*>(this->findResourceByUniqueKey(key).release())); in findByUniqueKey()
64 sk_sp<GrTexture> createApproxTexture(SkISize dimensions,
72 sk_sp<GrTexture> createTexture(SkISize dimensions,
86 sk_sp<GrTexture> createTexture(SkISize dimensions,
102 sk_sp<GrTexture> createTexture(SkISize dimensions,
117 sk_sp<GrTexture> findAndRefScratchTexture(const GrScratchKey&);
118 sk_sp<GrTexture> findAndRefScratchTexture(SkISize dimensions,
130 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions,
151 sk_sp<GrTextur
[all...]
H A DGrBufferAllocPool.h44 static sk_sp<CpuBufferCache> Make(int maxBuffersToCache);
46 sk_sp<GrCpuBuffer> makeBuffer(size_t size, bool mustBeInitialized);
53 sk_sp<GrCpuBuffer> fBuffer;
86 GrBufferAllocPool(GrGpu* gpu, GrGpuBufferType bufferType, sk_sp<CpuBufferCache> cpuBufferCache);
109 void* makeSpace(size_t size, size_t alignment, sk_sp<const GrBuffer>* buffer, size_t* offset);
139 sk_sp<const GrBuffer>* buffer,
143 sk_sp<GrBuffer> getBuffer(size_t size);
148 sk_sp<GrBuffer> fBuffer;
162 sk_sp<CpuBufferCache> fCpuBufferCache;
163 sk_sp<GrCpuBuffe
[all...]
/third_party/skia/include/core/
H A DSkImage.h85 static sk_sp<SkImage> MakeRasterCopy(const SkPixmap& pixmap);
101 static sk_sp<SkImage> MakeRasterData(const SkImageInfo& info, sk_sp<SkData> pixels,
129 static sk_sp<SkImage> MakeFromRaster(const SkPixmap& pixmap,
149 static sk_sp<SkImage> MakeFromBitmap(const SkBitmap& bitmap);
162 static sk_sp<SkImage> MakeFromGenerator(std::unique_ptr<SkImageGenerator> imageGenerator);
186 static sk_sp<SkImage> MakeFromEncoded(sk_sp<SkData> encoded);
226 static sk_sp<SkImage> MakeRasterFromCompressed(sk_sp<SkDat
[all...]
H A DSkRefCnt.h213 * may have its ref/unref be thread-safe, but that is not assumed/imposed by sk_sp.
215 template <typename T> class sk_sp { class
219 constexpr sk_sp() : fPtr(nullptr) {} in sk_sp() function in sk_sp
220 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp() function in sk_sp
224 * created sk_sp both have a reference to it.
226 sk_sp(const sk_sp<T>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp() function in sk_sp
229 sk_sp(const sk_sp<U>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp() function in sk_sp
232 * Move the underlying object from the argument to the newly created sk_sp
236 sk_sp(sk_sp<T>&& that) : fPtr(that.release()) {} sk_sp() function in sk_sp
239 sk_sp(sk_sp<U>&& that) : fPtr(that.release()) {} sk_sp() function in sk_sp
245 explicit sk_sp(T* obj) : fPtr(obj) {} sk_sp() function in sk_sp
[all...]
H A DSkColorFilter.h56 sk_sp<SkColorFilter> makeComposed(sk_sp<SkColorFilter> inner) const;
58 static sk_sp<SkColorFilter> Deserialize(const void* data, size_t size,
70 static sk_sp<SkColorFilter> Compose(sk_sp<SkColorFilter> outer, sk_sp<SkColorFilter> inner) { in Compose()
73 static sk_sp<SkColorFilter> Blend(SkColor c, SkBlendMode mode);
78 static sk_sp<SkColorFilter> Matrix(const SkColorMatrix&, Clamp clamp);
79 static sk_sp<SkColorFilter> Matrix(const float rowMajor[20], Clamp clamp);
81 static sk_sp<SkColorFilte
[all...]
/third_party/skia/modules/sksg/src/
H A DSkSGRenderEffect.cpp17 sk_sp<MaskShaderEffect> MaskShaderEffect::Make(sk_sp<RenderNode> child, sk_sp<SkShader> sh) { in Make()
18 return child ? sk_sp<MaskShaderEffect>(new MaskShaderEffect(std::move(child), std::move(sh))) in Make()
22 MaskShaderEffect::MaskShaderEffect(sk_sp<RenderNode> child, sk_sp<SkShader> sh) in MaskShaderEffect()
34 sk_sp<ShaderEffect> ShaderEffect::Make(sk_sp<RenderNode> child, sk_sp<Shader> shader) { in Make()
35 return child ? sk_sp<ShaderEffec in Make()
[all...]
H A DSkSGColorFilter.cpp19 ColorFilter::ColorFilter(sk_sp<RenderNode> child) in ColorFilter()
41 sk_sp<ExternalColorFilter> ExternalColorFilter::Make(sk_sp<RenderNode> child) { in Make()
42 return child ? sk_sp<ExternalColorFilter>(new ExternalColorFilter(std::move(child))) in Make()
46 ExternalColorFilter::ExternalColorFilter(sk_sp<RenderNode> child) : INHERITED(std::move(child)) {} in ExternalColorFilter()
56 sk_sp<ModeColorFilter> ModeColorFilter::Make(sk_sp<RenderNode> child, sk_sp<Color> color, in Make()
58 return (child && color) ? sk_sp<ModeColorFilter>(new ModeColorFilter(std::move(child), in Make()
63 ModeColorFilter::ModeColorFilter(sk_sp<RenderNod
[all...]
/third_party/skia/src/core/
H A DSkPathEffect.cpp59 SkPairPathEffect(sk_sp<SkPathEffect> pe0, sk_sp<SkPathEffect> pe1) in SkPairPathEffect()
72 sk_sp<SkPathEffect> fPE0;
73 sk_sp<SkPathEffect> fPE1;
88 static sk_sp<SkPathEffect> Make(sk_sp<SkPathEffect> outer, sk_sp<SkPathEffect> inner) { in Make()
95 return sk_sp<SkPathEffect>(new SkComposePathEffect(outer, inner)); in Make()
98 SkComposePathEffect(sk_sp<SkPathEffect> outer, sk_sp<SkPathEffec
[all...]
/third_party/skia/modules/skottie/include/
H A DSkottie.h69 virtual sk_sp<ExpressionEvaluator<float>> createNumberExpressionEvaluator(
72 virtual sk_sp<ExpressionEvaluator<SkString>> createStringExpressionEvaluator(
75 virtual sk_sp<ExpressionEvaluator<std::vector<float>>> createArrayExpressionEvaluator(
121 Builder& setResourceProvider(sk_sp<ResourceProvider>);
126 Builder& setFontManager(sk_sp<SkFontMgr>);
134 Builder& setPropertyObserver(sk_sp<PropertyObserver>);
139 Builder& setLogger(sk_sp<Logger>);
144 Builder& setMarkerObserver(sk_sp<MarkerObserver>);
150 Builder& setPrecompInterceptor(sk_sp<PrecompInterceptor>);
156 Builder& setExpressionManager(sk_sp<ExpressionManage
[all...]
/third_party/skia/fuzz/
H A DFuzzMain.cpp77 static void fuzz_android_codec(sk_sp<SkData>);
78 static void fuzz_animated_img(sk_sp<SkData>);
79 static void fuzz_api(sk_sp<SkData> bytes, SkString name);
80 static void fuzz_color_deserialize(sk_sp<SkData>);
81 static void fuzz_filter_fuzz(sk_sp<SkData>);
82 static void fuzz_image_decode(sk_sp<SkData>);
83 static void fuzz_image_decode_incremental(sk_sp<SkData>);
84 static void fuzz_img(sk_sp<SkData>, uint8_t, uint8_t);
85 static void fuzz_json(sk_sp<SkData>);
86 static void fuzz_path_deserialize(sk_sp<SkDat
[all...]
/third_party/skia/src/image/
H A DSkImage_Gpu.h26 SkImage_Gpu(sk_sp<GrImageContext> context,
31 static sk_sp<SkImage> MakeWithVolatileSrc(sk_sp<GrRecordingContext> rContext,
53 sk_sp<SkImage> onMakeColorTypeAndColorSpace(SkColorType, sk_sp<SkColorSpace>,
56 sk_sp<SkImage> onReinterpretColorSpace(sk_sp<SkColorSpace>) const final;
66 sk_sp<SkColorSpace>,
79 SkImage_Gpu(sk_sp<GrDirectContext>,
81 sk_sp<GrSurfaceProx
[all...]
/third_party/skia/modules/svg/include/
H A DSkSVGDOM.h31 Builder& setFontManager(sk_sp<SkFontMgr>);
36 Builder& setResourceProvider(sk_sp<skresources::ResourceProvider>);
38 sk_sp<SkSVGDOM> make(SkStream&) const;
39 sk_sp<SkSVGDOM> make(SkStream&, uint64_t) const;
42 sk_sp<SkFontMgr> fFontMgr;
43 sk_sp<skresources::ResourceProvider> fResourceProvider;
46 static sk_sp<SkSVGDOM> MakeFromStream(SkStream& str) { in MakeFromStream()
50 static sk_sp<SkSVGDOM> MakeFromStream(SkStream&str, uint64_t svgColor) { in MakeFromStream()
86 sk_sp<SkSVGNode>* findNodeById(const char* id);
91 SkSVGDOM(sk_sp<SkSVGSV
[all...]
/third_party/skia/modules/skresources/src/
H A DSkResources.cpp31 static sk_sp<VideoAsset> Make(sk_sp<SkData> data) { in Make()
39 return sk_sp<VideoAsset>(new VideoAsset(std::move(decoder))); in Make()
58 sk_sp<SkImage> getFrame(float t_float) override {
80 sk_sp<SkImage> frame;
92 sk_sp<SkImage> ImageAsset::getFrame(float t) { in getFrame()
105 sk_sp<MultiFrameImageAsset> MultiFrameImageAsset::Make(sk_sp<SkData> data, bool predecode) { in Make()
107 return sk_sp<MultiFrameImageAsset>( in Make()
126 sk_sp<SkImag
[all...]
/third_party/skia/gm/
H A Dcolorfilterimagefilter.cpp36 static sk_sp<SkColorFilter> cf_make_brightness(float brightness) { in cf_make_brightness()
45 static sk_sp<SkColorFilter> cf_make_grayscale() { in cf_make_grayscale()
55 static sk_sp<SkColorFilter> cf_make_colorize(SkColor color) { in cf_make_colorize()
59 static void sk_gm_get_colorfilters(SkTArray<sk_sp<SkColorFilter>>* array) { in sk_gm_get_colorfilters()
67 static sk_sp<SkShader> sh_make_lineargradient0() { in sh_make_lineargradient0()
73 static sk_sp<SkShader> sh_make_lineargradient1() { in sh_make_lineargradient1()
79 static sk_sp<SkShader> sh_make_image() { in sh_make_image()
80 sk_sp<SkImage> image(GetResourceAsImage("images/mandrill_128.png")); in sh_make_image()
101 static sk_sp<SkImageFilter> make_blur(float amount, sk_sp<SkImageFilte
[all...]

Completed in 10 milliseconds

12345678910>>...76