Home
last modified time | relevance | path

Searched refs:SkMask (Results 1 – 25 of 156) sorted by relevance

1234567

/external/skqp/src/core/
DSkBlurMask.cpp101 SkMask::FreeImage(image); in SkMask_FreeImage()
104 bool SkBlurMask::BoxBlur(SkMask* dst, const SkMask& src, SkScalar sigma, SkBlurStyle style, in BoxBlur()
106 if (src.fFormat != SkMask::kBW_Format && in BoxBlur()
107 src.fFormat != SkMask::kA8_Format && in BoxBlur()
108 src.fFormat != SkMask::kARGB32_Format && in BoxBlur()
109 src.fFormat != SkMask::kLCD16_Format) in BoxBlur()
122 dst->fFormat = SkMask::kA8_Format; in BoxBlur()
157 case SkMask::kBW_Format: in BoxBlur()
160 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
163 case SkMask::kA8_Format: in BoxBlur()
[all …]
DSkGlyph.cpp14 void SkGlyph::toMask(SkMask* mask) const { in toMask()
20 mask->fFormat = static_cast<SkMask::Format>(fMaskFormat); in toMask()
36 static size_t format_alignment(SkMask::Format format) { in format_alignment()
38 case SkMask::kBW_Format: in format_alignment()
39 case SkMask::kA8_Format: in format_alignment()
40 case SkMask::k3D_Format: in format_alignment()
41 case SkMask::kSDF_Format: in format_alignment()
43 case SkMask::kARGB32_Format: in format_alignment()
45 case SkMask::kLCD16_Format: in format_alignment()
54 static size_t format_rowbytes(int width, SkMask::Format format) { in format_rowbytes()
[all …]
DSkMask.cpp25 size_t SkMask::computeImageSize() const { in computeImageSize()
29 size_t SkMask::computeTotalImageSize() const { in computeTotalImageSize()
31 if (fFormat == SkMask::k3D_Format) { in computeTotalImageSize()
40 uint8_t* SkMask::AllocImage(size_t size, AllocType at) { in AllocImage()
52 void SkMask::FreeImage(void* image) { in FreeImage()
56 SkMask SkMask::PrepareDestination(int radiusX, int radiusY, const SkMask& src) { in PrepareDestination()
59 SkMask dst; in PrepareDestination()
76 dst.fFormat = SkMask::kA8_Format; in PrepareDestination()
81 dst.fImage = SkMask::AllocImage(toAlloc); in PrepareDestination()
99 static int maskFormatToShift(SkMask::Format format) { in maskFormatToShift()
[all …]
DSkBlurMask.h18 static bool SK_WARN_UNUSED_RESULT BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
20 SkMask::CreateMode createMode =
21 SkMask::kComputeBoundsAndRenderImage_CreateMode);
22 static bool SK_WARN_UNUSED_RESULT BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src,
24 SkMask::CreateMode createMode =
25 SkMask::kComputeBoundsAndRenderImage_CreateMode);
38 static bool SK_WARN_UNUSED_RESULT BoxBlur(SkMask* dst, const SkMask& src,
44 static bool SK_WARN_UNUSED_RESULT BlurGroundTruth(SkScalar sigma, SkMask* dst,
45 const SkMask& src,
DSkMaskFilter.cpp34 SkMask::FreeImage(fMask.fImage); in ~NinePatch()
42 static void extractMaskSubset(const SkMask& src, SkMask* dst) { in extractMaskSubset()
52 static void blitClippedMask(SkBlitter* blitter, const SkMask& mask, in blitClippedMask()
68 static void dump(const SkMask& mask) {
79 static void draw_nine_clipped(const SkMask& mask, const SkIRect& outerR, in draw_nine_clipped()
84 SkMask m; in draw_nine_clipped()
172 SkMask m; in draw_nine_clipped()
177 m.fFormat = SkMask::kA8_Format; in draw_nine_clipped()
183 SkMask m; in draw_nine_clipped()
188 m.fFormat = SkMask::kA8_Format; in draw_nine_clipped()
[all …]
DSkMask.h22 struct SkMask { struct
23 SkMask() : fImage(nullptr) {} in SkMask() argument
146 static SkMask PrepareDestination(int radiusX, int radiusY, const SkMask& src);
149 template <> struct SkMask::AlphaIter<SkMask::kBW_Format> {
182 template <> struct SkMask::AlphaIter<SkMask::kA8_Format> {
196 template <> struct SkMask::AlphaIter<SkMask::kARGB32_Format> {
210 template <> struct SkMask::AlphaIter<SkMask::kLCD16_Format> {
238 using SkAutoMaskFreeImage = std::unique_ptr<uint8_t,SkFunctionWrapper<void,void,SkMask::FreeImage>>;
DSkRasterPipelineBlitter.cpp43 void blitMask (const SkMask&, const SkIRect& clip) override;
351 SkMask mask; in blitAntiH2()
355 mask.fFormat = SkMask::kA8_Format; in blitAntiH2()
364 SkMask mask; in blitAntiV2()
368 mask.fFormat = SkMask::kA8_Format; in blitAntiV2()
376 SkMask mask; in blitV()
380 mask.fFormat = SkMask::kA8_Format; in blitV()
385 void SkRasterPipelineBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
386 if (mask.fFormat == SkMask::kBW_Format) { in blitMask()
392 SkASSERT(mask.fFormat == SkMask::kA8_Format in blitMask()
[all …]
/external/skia/src/core/
DSkBlurMask.cpp101 SkMask::FreeImage(image); in SkMask_FreeImage()
104 bool SkBlurMask::BoxBlur(SkMask* dst, const SkMask& src, SkScalar sigma, SkBlurStyle style, in BoxBlur()
106 if (src.fFormat != SkMask::kBW_Format && in BoxBlur()
107 src.fFormat != SkMask::kA8_Format && in BoxBlur()
108 src.fFormat != SkMask::kARGB32_Format && in BoxBlur()
109 src.fFormat != SkMask::kLCD16_Format) in BoxBlur()
122 dst->fFormat = SkMask::kA8_Format; in BoxBlur()
157 case SkMask::kBW_Format: in BoxBlur()
160 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
163 case SkMask::kA8_Format: in BoxBlur()
[all …]
DSkGlyph.cpp14 void SkGlyph::toMask(SkMask* mask) const { in toMask()
20 mask->fFormat = static_cast<SkMask::Format>(fMaskFormat); in toMask()
36 static size_t format_alignment(SkMask::Format format) { in format_alignment()
38 case SkMask::kBW_Format: in format_alignment()
39 case SkMask::kA8_Format: in format_alignment()
40 case SkMask::k3D_Format: in format_alignment()
41 case SkMask::kSDF_Format: in format_alignment()
43 case SkMask::kARGB32_Format: in format_alignment()
45 case SkMask::kLCD16_Format: in format_alignment()
54 static size_t format_rowbytes(int width, SkMask::Format format) { in format_rowbytes()
[all …]
DSkMask.cpp25 size_t SkMask::computeImageSize() const { in computeImageSize()
29 size_t SkMask::computeTotalImageSize() const { in computeTotalImageSize()
31 if (fFormat == SkMask::k3D_Format) { in computeTotalImageSize()
40 uint8_t* SkMask::AllocImage(size_t size, AllocType at) { in AllocImage()
52 void SkMask::FreeImage(void* image) { in FreeImage()
56 SkMask SkMask::PrepareDestination(int radiusX, int radiusY, const SkMask& src) { in PrepareDestination()
59 SkMask dst; in PrepareDestination()
76 dst.fFormat = SkMask::kA8_Format; in PrepareDestination()
81 dst.fImage = SkMask::AllocImage(toAlloc); in PrepareDestination()
99 static int maskFormatToShift(SkMask::Format format) { in maskFormatToShift()
[all …]
DSkBlurMask.h18 static bool SK_WARN_UNUSED_RESULT BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
20 SkMask::CreateMode createMode =
21 SkMask::kComputeBoundsAndRenderImage_CreateMode);
22 static bool SK_WARN_UNUSED_RESULT BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src,
24 SkMask::CreateMode createMode =
25 SkMask::kComputeBoundsAndRenderImage_CreateMode);
38 static bool SK_WARN_UNUSED_RESULT BoxBlur(SkMask* dst, const SkMask& src,
44 static bool SK_WARN_UNUSED_RESULT BlurGroundTruth(SkScalar sigma, SkMask* dst,
45 const SkMask& src,
DSkMaskFilter.cpp34 SkMask::FreeImage(fMask.fImage); in ~NinePatch()
42 static void extractMaskSubset(const SkMask& src, SkMask* dst) { in extractMaskSubset()
52 static void blitClippedMask(SkBlitter* blitter, const SkMask& mask, in blitClippedMask()
68 static void dump(const SkMask& mask) {
79 static void draw_nine_clipped(const SkMask& mask, const SkIRect& outerR, in draw_nine_clipped()
84 SkMask m; in draw_nine_clipped()
172 SkMask m; in draw_nine_clipped()
177 m.fFormat = SkMask::kA8_Format; in draw_nine_clipped()
183 SkMask m; in draw_nine_clipped()
188 m.fFormat = SkMask::kA8_Format; in draw_nine_clipped()
[all …]
DSkMask.h22 struct SkMask { struct
23 SkMask() : fImage(nullptr) {} in SkMask() argument
146 static SkMask PrepareDestination(int radiusX, int radiusY, const SkMask& src);
149 template <> struct SkMask::AlphaIter<SkMask::kBW_Format> {
182 template <> struct SkMask::AlphaIter<SkMask::kA8_Format> {
196 template <> struct SkMask::AlphaIter<SkMask::kARGB32_Format> {
210 template <> struct SkMask::AlphaIter<SkMask::kLCD16_Format> {
238 using SkAutoMaskFreeImage = std::unique_ptr<uint8_t,SkFunctionWrapper<void,void,SkMask::FreeImage>>;
/external/skqp/src/gpu/text/
DGrSDFMaskFilter.cpp22 SkMask::Format getFormat() const override;
24 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
42 SkMask::Format GrSDFMaskFilterImpl::getFormat() const { in getFormat()
43 return SkMask::kSDF_Format; in getFormat()
46 bool GrSDFMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
48 if (src.fFormat != SkMask::kA8_Format in filterMask()
49 && src.fFormat != SkMask::kBW_Format in filterMask()
50 && src.fFormat != SkMask::kLCD16_Format) { in filterMask()
54 *dst = SkMask::PrepareDestination(SK_DistanceFieldPad, SK_DistanceFieldPad, src); in filterMask()
55 dst->fFormat = SkMask::kSDF_Format; in filterMask()
[all …]
/external/skia/src/gpu/text/
DGrSDFMaskFilter.cpp22 SkMask::Format getFormat() const override;
24 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
42 SkMask::Format GrSDFMaskFilterImpl::getFormat() const { in getFormat()
43 return SkMask::kSDF_Format; in getFormat()
46 bool GrSDFMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
48 if (src.fFormat != SkMask::kA8_Format in filterMask()
49 && src.fFormat != SkMask::kBW_Format in filterMask()
50 && src.fFormat != SkMask::kLCD16_Format) { in filterMask()
54 *dst = SkMask::PrepareDestination(SK_DistanceFieldPad, SK_DistanceFieldPad, src); in filterMask()
55 dst->fFormat = SkMask::kSDF_Format; in filterMask()
[all …]
/external/skqp/src/ports/
DSkFontHost_FreeType_common.cpp57 FT_Pixel_Mode compute_pixel_mode(SkMask::Format format) { in compute_pixel_mode()
59 case SkMask::kBW_Format: in compute_pixel_mode()
61 case SkMask::kA8_Format: in compute_pixel_mode()
100 void copyFT2LCD16(const FT_Bitmap& bitmap, const SkMask& mask, int lcdIsBGR, in copyFT2LCD16()
103 SkASSERT(SkMask::kLCD16_Format == mask.fFormat); in copyFT2LCD16()
202 void copyFTBitmap(const FT_Bitmap& srcFTBitmap, SkMask& dstMask) { in copyFTBitmap()
223 const SkMask::Format dstFormat = static_cast<SkMask::Format>(dstMask.fFormat); in copyFTBitmap()
229 if (SkMask::kLCD16_Format == dstFormat) { in copyFTBitmap()
234 if ((FT_PIXEL_MODE_MONO == srcFormat && SkMask::kBW_Format == dstFormat) || in copyFTBitmap()
235 (FT_PIXEL_MODE_GRAY == srcFormat && SkMask::kA8_Format == dstFormat)) in copyFTBitmap()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp57 FT_Pixel_Mode compute_pixel_mode(SkMask::Format format) { in compute_pixel_mode()
59 case SkMask::kBW_Format: in compute_pixel_mode()
61 case SkMask::kA8_Format: in compute_pixel_mode()
100 void copyFT2LCD16(const FT_Bitmap& bitmap, const SkMask& mask, int lcdIsBGR, in copyFT2LCD16()
103 SkASSERT(SkMask::kLCD16_Format == mask.fFormat); in copyFT2LCD16()
202 void copyFTBitmap(const FT_Bitmap& srcFTBitmap, SkMask& dstMask) { in copyFTBitmap()
223 const SkMask::Format dstFormat = static_cast<SkMask::Format>(dstMask.fFormat); in copyFTBitmap()
229 if (SkMask::kLCD16_Format == dstFormat) { in copyFTBitmap()
234 if ((FT_PIXEL_MODE_MONO == srcFormat && SkMask::kBW_Format == dstFormat) || in copyFTBitmap()
235 (FT_PIXEL_MODE_GRAY == srcFormat && SkMask::kA8_Format == dstFormat)) in copyFTBitmap()
[all …]
/external/skqp/src/gpu/
DGrGlyph.h26 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in FormatFromSkGlyph()
28 case SkMask::kBW_Format: in FormatFromSkGlyph()
29 case SkMask::kSDF_Format: in FormatFromSkGlyph()
31 case SkMask::kA8_Format: in FormatFromSkGlyph()
33 case SkMask::k3D_Format: in FormatFromSkGlyph()
35 case SkMask::kLCD16_Format: in FormatFromSkGlyph()
37 case SkMask::kARGB32_Format: in FormatFromSkGlyph()
53 return (SkMask::Format)skGlyph.fMaskFormat == SkMask::kSDF_Format in MaskStyleFromSkGlyph()
/external/skia/src/gpu/
DGrGlyph.h26 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in FormatFromSkGlyph()
28 case SkMask::kBW_Format: in FormatFromSkGlyph()
29 case SkMask::kSDF_Format: in FormatFromSkGlyph()
31 case SkMask::kA8_Format: in FormatFromSkGlyph()
33 case SkMask::k3D_Format: in FormatFromSkGlyph()
35 case SkMask::kLCD16_Format: in FormatFromSkGlyph()
37 case SkMask::kARGB32_Format: in FormatFromSkGlyph()
53 return (SkMask::Format)skGlyph.fMaskFormat == SkMask::kSDF_Format in MaskStyleFromSkGlyph()
/external/skia/src/effects/
DSkTableMaskFilter.cpp18 SkMask::Format getFormat() const override;
19 bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*) const override;
48 bool SkTableMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
50 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
56 dst->fFormat = SkMask::kA8_Format; in filterMask()
60 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
90 SkMask::Format SkTableMaskFilterImpl::getFormat() const { in getFormat()
91 return SkMask::kA8_Format; in getFormat()
DSkShaderMaskFilter.cpp19 SkMask::Format getFormat() const override { return SkMask::kA8_Format; } in getFormat()
21 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
66 bool SkShaderMF::filterMask(SkMask* dst, const SkMask& src, const SkMatrix& ctm, in filterMask()
68 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
77 dst->fFormat = SkMask::kA8_Format; in filterMask()
89 dst->fImage = SkMask::AllocImage(size); in filterMask()
/external/skqp/src/effects/
DSkTableMaskFilter.cpp18 SkMask::Format getFormat() const override;
19 bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*) const override;
48 bool SkTableMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
50 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
56 dst->fFormat = SkMask::kA8_Format; in filterMask()
60 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
90 SkMask::Format SkTableMaskFilterImpl::getFormat() const { in getFormat()
91 return SkMask::kA8_Format; in getFormat()
DSkShaderMaskFilter.cpp19 SkMask::Format getFormat() const override { return SkMask::kA8_Format; } in getFormat()
21 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
66 bool SkShaderMF::filterMask(SkMask* dst, const SkMask& src, const SkMatrix& ctm, in filterMask()
68 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
77 dst->fFormat = SkMask::kA8_Format; in filterMask()
89 dst->fImage = SkMask::AllocImage(size); in filterMask()
/external/skqp/bench/
DBlurRectBench.cpp92 SkMask mask; in makeBlurryRect()
97 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
109 SkMask::FreeImage(fSrcMask.fImage); in ~BlurRectSeparableBench()
114 SkMask::FreeImage(fSrcMask.fImage); in preBenchSetup()
117 fSrcMask.fFormat = SkMask::kA8_Format; in preBenchSetup()
119 fSrcMask.fImage = SkMask::AllocImage(fSrcMask.computeTotalImageSize()); in preBenchSetup()
124 SkMask fSrcMask;
146 SkMask mask; in makeBlurryRect()
151 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
174 SkMask mask; in makeBlurryRect()
[all …]
/external/skia/bench/
DBlurRectBench.cpp92 SkMask mask; in makeBlurryRect()
97 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
109 SkMask::FreeImage(fSrcMask.fImage); in ~BlurRectSeparableBench()
114 SkMask::FreeImage(fSrcMask.fImage); in preBenchSetup()
117 fSrcMask.fFormat = SkMask::kA8_Format; in preBenchSetup()
119 fSrcMask.fImage = SkMask::AllocImage(fSrcMask.computeTotalImageSize()); in preBenchSetup()
124 SkMask fSrcMask;
146 SkMask mask; in makeBlurryRect()
151 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
174 SkMask mask; in makeBlurryRect()
[all …]

1234567