Home
last modified time | relevance | path

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

123

/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp35 static FT_Pixel_Mode compute_pixel_mode(SkMask::Format format) { in compute_pixel_mode()
37 case SkMask::kBW_Format: in compute_pixel_mode()
39 case SkMask::kA8_Format: in compute_pixel_mode()
78 static void copyFT2LCD16(const FT_Bitmap& bitmap, const SkMask& mask, int lcdIsBGR, in copyFT2LCD16()
81 SkASSERT(SkMask::kLCD16_Format == mask.fFormat); in copyFT2LCD16()
179 static void copyFTBitmap(const FT_Bitmap& srcFTBitmap, SkMask& dstMask) { in copyFTBitmap()
190 const SkMask::Format dstFormat = static_cast<SkMask::Format>(dstMask.fFormat); in copyFTBitmap()
196 if (SkMask::kLCD16_Format == dstFormat) { in copyFTBitmap()
201 if ((FT_PIXEL_MODE_MONO == srcFormat && SkMask::kBW_Format == dstFormat) || in copyFTBitmap()
202 (FT_PIXEL_MODE_GRAY == srcFormat && SkMask::kA8_Format == dstFormat)) in copyFTBitmap()
[all …]
/external/skia/src/effects/
DSkBlurMask.h18 static bool BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src, SkBlurStyle,
20 SkMask::CreateMode createMode =
21 SkMask::kComputeBoundsAndRenderImage_CreateMode);
22 static bool BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src, SkBlurStyle,
24 SkMask::CreateMode createMode =
25 SkMask::kComputeBoundsAndRenderImage_CreateMode);
33 static bool BoxBlur(SkMask* dst, const SkMask& src,
39 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src, SkBlurStyle,
DSkBlurMaskFilter.cpp41 SkMask::Format getFormat() const override;
42 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
87 bool filterRectMask(SkMask* dstM, const SkRect& r, const SkMatrix& matrix,
88 SkIPoint* margin, SkMask::CreateMode createMode) const;
89 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix,
90 SkIPoint* margin, SkMask::CreateMode createMode) const;
148 SkMask::Format SkBlurMaskFilterImpl::getFormat() const { in getFormat()
149 return SkMask::kA8_Format; in getFormat()
165 bool SkBlurMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
172 bool SkBlurMaskFilterImpl::filterRectMask(SkMask* dst, const SkRect& r, in filterRectMask()
[all …]
DSkTableMaskFilter.cpp27 bool SkTableMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
29 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
35 dst->fFormat = SkMask::kA8_Format; in filterMask()
39 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
69 SkMask::Format SkTableMaskFilter::getFormat() const { in getFormat()
70 return SkMask::kA8_Format; in getFormat()
DSkEmbossMaskFilter.cpp73 SkMask::Format SkEmbossMaskFilter::getFormat() const { in getFormat()
74 return SkMask::k3D_Format; in getFormat()
77 bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
85 dst->fFormat = SkMask::k3D_Format; in filterMask()
102 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask()
104 SkMask::FreeImage(alphaPlane); in filterMask()
DSkBlurMask.cpp479 SkMask::FreeImage(image); in SkMask_FreeImage()
482 bool SkBlurMask::BoxBlur(SkMask* dst, const SkMask& src, in BoxBlur()
486 if (src.fFormat != SkMask::kA8_Format) { in BoxBlur()
532 dst->fFormat = SkMask::kA8_Format; in BoxBlur()
544 uint8_t* dp = SkMask::AllocImage(dstSize); in BoxBlur()
593 dst->fImage = SkMask::AllocImage(srcSize); in BoxBlur()
598 SkMask::FreeImage(dp); in BoxBlur()
740 bool SkBlurMask::BlurRect(SkScalar sigma, SkMask *dst, in BlurRect()
742 SkIPoint *margin, SkMask::CreateMode createMode) { in BlurRect()
756 dst->fFormat = SkMask::kA8_Format; in BlurRect()
[all …]
DSkLayerRasterizer.cpp81 SkMask mask; in compute_bounds()
84 SkMask::kJustComputeBounds_CreateMode, in compute_bounds()
96 SkMask* mask, SkMask::CreateMode mode) const { in onRasterize()
102 if (SkMask::kJustRenderImage_CreateMode != mode) { in onRasterize()
107 if (SkMask::kComputeBoundsAndRenderImage_CreateMode == mode) { in onRasterize()
108 mask->fFormat = SkMask::kA8_Format; in onRasterize()
114 mask->fImage = SkMask::AllocImage(size); in onRasterize()
118 if (SkMask::kJustComputeBounds_CreateMode != mode) { in onRasterize()
/external/skia/src/core/
DSkMask.cpp23 size_t SkMask::computeImageSize() const { in computeImageSize()
27 size_t SkMask::computeTotalImageSize() const { in computeTotalImageSize()
29 if (fFormat == SkMask::k3D_Format) { in computeTotalImageSize()
42 uint8_t* SkMask::AllocImage(size_t size) { in AllocImage()
52 void SkMask::FreeImage(void* image) { in FreeImage()
71 static int maskFormatToShift(SkMask::Format format) { in maskFormatToShift()
73 SkASSERT(SkMask::kBW_Format != format); in maskFormatToShift()
77 void* SkMask::getAddr(int x, int y) const { in getAddr()
DSkRasterizer.cpp17 SkMask* mask, SkMask::CreateMode mode) const { in rasterize()
20 if (clipBounds && filter && SkMask::kJustRenderImage_CreateMode != mode) { in rasterize()
22 SkMask srcM, dstM; in rasterize()
24 srcM.fFormat = SkMask::kA8_Format; in rasterize()
41 SkMask* mask, SkMask::CreateMode mode) const { in onRasterize()
DSkScalerContext.cpp28 void SkGlyph::toMask(SkMask* mask) const { in toMask()
34 mask->fFormat = static_cast<SkMask::Format>(fMaskFormat); in toMask()
41 case SkMask::k3D_Format: in computeImageSize()
156 SkMask mask; in getMetrics()
160 SkMask::kJustComputeBounds_CreateMode)) { in getMetrics()
182 case SkMask::kLCD16_Format: in getMetrics()
193 if (SkMask::kARGB32_Format != glyph->fMaskFormat) { in getMetrics()
199 SkMask::kARGB32_Format == glyph->fMaskFormat) { in getMetrics()
200 glyph->fMaskFormat = SkMask::kA8_Format; in getMetrics()
204 SkMask src, dst; in getMetrics()
[all …]
DSkBlitMask.h21 static bool BlitColor(const SkBitmap& device, const SkMask& mask,
54 static ColorProc ColorFactory(SkColorType, SkMask::Format, SkColor);
60 static ColorProc PlatformColorProcs(SkColorType, SkMask::Format, SkColor);
81 static RowProc RowFactory(SkColorType, SkMask::Format, RowFlags);
87 static RowProc PlatformRowProcs(SkColorType, SkMask::Format, RowFlags);
DSkGlyph.h65 static unsigned ComputeRowBytes(unsigned width, SkMask::Format format) { in ComputeRowBytes()
67 if (SkMask::kBW_Format == format) { in ComputeRowBytes()
69 } else if (SkMask::kARGB32_Format == format) { in ComputeRowBytes()
71 } else if (SkMask::kLCD16_Format == format) { in ComputeRowBytes()
80 return ComputeRowBytes(fWidth, (SkMask::Format)fMaskFormat); in rowBytes()
115 void toMask(SkMask* mask) const;
DSkMaskCache.h27 const SkRRect& rrect, SkMask* mask,
30 const SkRect rects[], int count, SkMask* mask,
37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data,
40 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
DSkMaskFilter.cpp29 SkMask::FreeImage(fMask.fImage); in ~NinePatch()
33 bool SkMaskFilter::filterMask(SkMask*, const SkMask&, const SkMatrix&, in filterMask() argument
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()
193 static void draw_nine(const SkMask& mask, const SkIRect& outerR, const SkIPoint& center, in draw_nine()
263 SkMask srcM, dstM; in filterPath()
266 SkMask::kComputeBoundsAndRenderImage_CreateMode, in filterPath()
[all …]
DSkMaskCache.cpp14 SkMask fMask;
40 RRectBlurRec(RRectBlurKey key, const SkMask& mask, SkCachedData* data) in RRectBlurRec()
74 const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) { in FindAndRef()
87 const SkRRect& rrect, const SkMask& mask, SkCachedData* data, in Add()
131 RectsBlurRec(RectsBlurKey key, const SkMask& mask, SkCachedData* data) in RectsBlurRec()
165 const SkRect rects[], int count, SkMask* mask, in FindAndRef()
179 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data, in Add()
DSkCoreBlitters.h69 void blitMask(const SkMask&, const SkIRect&) override;
80 virtual void blitMask(const SkMask&, const SkIRect&);
99 virtual void blitMask(const SkMask&, const SkIRect&);
121 virtual void blitMask(const SkMask&, const SkIRect&);
143 virtual void blitMask(const SkMask&, const SkIRect&);
172 void blitMask(const SkMask&, const SkIRect&) override;
DSkBlitter.h48 virtual void blitMask(const SkMask&, const SkIRect& clip);
117 void blitMaskRegion(const SkMask& mask, const SkRegion& clip);
154 void blitMask(const SkMask&, const SkIRect& clip) override;
178 void blitMask(const SkMask&, const SkIRect& clip) override;
213 void blitMask(const SkMask&, const SkIRect& clip) override;
/external/skia/src/gpu/
DGrFontScaler.cpp63 SkMask::Format format = fStrike->getMaskFormat(); in getMaskFormat()
65 case SkMask::kBW_Format: in getMaskFormat()
67 case SkMask::kA8_Format: in getMaskFormat()
69 case SkMask::kLCD16_Format: in getMaskFormat()
71 case SkMask::kARGB32_Format: in getMaskFormat()
90 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in getPackedGlyphMaskFormat()
92 case SkMask::kBW_Format: in getPackedGlyphMaskFormat()
94 case SkMask::kA8_Format: in getPackedGlyphMaskFormat()
96 case SkMask::kLCD16_Format: in getPackedGlyphMaskFormat()
98 case SkMask::kARGB32_Format: in getPackedGlyphMaskFormat()
[all …]
/external/skia/bench/
DBlurRectBench.cpp92 SkMask mask; in makeBlurryRect()
95 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()
150 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
173 SkMask mask; in makeBlurryRect()
[all …]
/external/skia/tests/
DAAClipTest.cpp15 static bool operator==(const SkMask& a, const SkMask& b) { in operator ==()
28 case SkMask::kBW_Format: in operator ==()
31 case SkMask::kA8_Format: in operator ==()
32 case SkMask::k3D_Format: in operator ==()
34 case SkMask::kLCD16_Format: in operator ==()
37 case SkMask::kARGB32_Format: in operator ==()
58 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask()
59 mask->fFormat = SkMask::kA8_Format; in copyToMask()
70 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask()
107 SkMask mask0, mask1; in operator ==()
[all …]
/external/skia/include/core/
DSkRasterizer.h29 SkMask* mask, SkMask::CreateMode mode) const;
37 SkMask* mask, SkMask::CreateMode mode) const;
DSkMaskFilter.h49 virtual SkMask::Format getFormat() const = 0;
64 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
179 SkMask fMask; // fBounds must have [0,0] in its top-left
/external/skia/gm/
Dblurrect.cpp221 SkMask mask; in onDraw()
290 virtual bool makeMask(SkMask *m, const SkRect&) = 0;
300 SkMask mask; in onDraw()
332 bool makeMask(SkMask *m, const SkRect& r) override { in makeMask()
348 bool makeMask(SkMask *m, const SkRect& r) override { in makeMask()
349 SkMask src; in makeMask()
352 src.fFormat = SkMask::kA8_Format; in makeMask()
354 src.fImage = SkMask::AllocImage(src.computeTotalImageSize()); in makeMask()
394 bool makeMask(SkMask *m, const SkRect& r) override { in makeMask()
395 SkMask src; in makeMask()
[all …]
/external/skia/include/effects/
DSkEmbossMaskFilter.h30 SkMask::Format getFormat() const override;
32 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
DSkTableMaskFilter.h48 SkMask::Format getFormat() const override;
49 virtual bool filterMask(SkMask*, const SkMask&, const SkMatrix&,

123