Home
last modified time | relevance | path

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

123

/external/skia/src/core/
DSkMask.cpp24 size_t SkMask::computeImageSize() const { in computeImageSize()
28 size_t SkMask::computeTotalImageSize() const { in computeTotalImageSize()
30 if (fFormat == SkMask::k3D_Format) { in computeTotalImageSize()
39 uint8_t* SkMask::AllocImage(size_t size) { in AllocImage()
46 void SkMask::FreeImage(void* image) { in FreeImage()
61 static int maskFormatToShift(SkMask::Format format) { in maskFormatToShift()
63 SkASSERT(SkMask::kBW_Format != format); in maskFormatToShift()
67 void* SkMask::getAddr(int x, int y) const { in getAddr()
DSkRasterizer.cpp20 SkMask* mask, SkMask::CreateMode mode) { in rasterize()
23 if (clipBounds && filter && SkMask::kJustRenderImage_CreateMode != mode) { in rasterize()
25 SkMask srcM, dstM; in rasterize()
27 srcM.fFormat = SkMask::kA8_Format; in rasterize()
45 SkMask* mask, SkMask::CreateMode mode) { in onRasterize()
DSkScalerContext.cpp24 void SkGlyph::toMask(SkMask* mask) const { in toMask()
30 mask->fFormat = static_cast<SkMask::Format>(fMaskFormat); in toMask()
37 case SkMask::k3D_Format: in computeImageSize()
282 SkMask mask; in getMetrics()
286 SkMask::kJustComputeBounds_CreateMode)) { in getMetrics()
309 if (SkMask::kARGB32_Format != glyph->fMaskFormat) { in getMetrics()
314 SkMask src, dst; in getMetrics()
344 return SkMask::kLCD16_Format == rec.fMaskFormat || in isLCD()
345 SkMask::kLCD32_Format == rec.fMaskFormat; in isLCD()
352 static void copyToLCD16(const SkBitmap& src, const SkMask& dst) { in copyToLCD16()
[all …]
DSkMaskFilter.cpp17 bool SkMaskFilter::filterMask(SkMask*, const SkMask&, const SkMatrix&, in filterMask() argument
25 SkMask srcM, dstM; in filterPath()
28 SkMask::kComputeBoundsAndRenderImage_CreateMode)) { in filterPath()
60 SkMask srcM, dstM; in computeFastBounds()
65 srcM.fFormat = SkMask::kA8_Format; in computeFastBounds()
DSkBlitMask.h21 static bool BlitColor(const SkBitmap& device, const SkMask& mask,
54 static ColorProc ColorFactory(SkBitmap::Config, SkMask::Format, SkColor);
60 static ColorProc PlatformColorProcs(SkBitmap::Config, SkMask::Format, SkColor);
81 static RowProc RowFactory(SkBitmap::Config, SkMask::Format, RowFlags);
87 static RowProc PlatformRowProcs(SkBitmap::Config, SkMask::Format, RowFlags);
DSkCoreBlitters.h50 virtual void blitMask(const SkMask&, const SkIRect&);
68 virtual void blitMask(const SkMask&, const SkIRect&);
90 virtual void blitMask(const SkMask&, const SkIRect&);
111 virtual void blitMask(const SkMask&, const SkIRect&);
133 virtual void blitMask(const SkMask&, const SkIRect&);
DSkBlitter_ARGB32.cpp17 static void SkARGB32_Blit32(const SkBitmap& device, const SkMask& mask, in SkARGB32_Blit32()
149 void SkARGB32_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
161 if (mask.fFormat == SkMask::kBW_Format) { in blitMask()
163 } else if (SkMask::kARGB32_Format == mask.fFormat) { in blitMask()
168 void SkARGB32_Opaque_Blitter::blitMask(const SkMask& mask, in blitMask()
176 if (mask.fFormat == SkMask::kBW_Format) { in blitMask()
178 } else if (SkMask::kARGB32_Format == mask.fFormat) { in blitMask()
375 void SkARGB32_Shader_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
377 if (fXfermode && (SkMask::kA8_Format != mask.fFormat)) { in blitMask()
412 SkASSERT(SkMask::kA8_Format == mask.fFormat); in blitMask()
DSkBlitter.cpp107 void SkBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
110 if (mask.fFormat == SkMask::kBW_Format) { in blitMask()
185 void SkBlitter::blitMaskRegion(const SkMask& mask, const SkRegion& clip) { in blitMaskRegion()
230 void SkNullBlitter::blitMask(const SkMask& mask, const SkIRect& clip) {} in blitMask()
381 void SkRectClipBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
514 void SkRgnClipBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
569 void setMask(const SkMask* mask) { fMask = mask; } in setMask()
684 const SkMask* fMask;
718 virtual void blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask()
719 if (mask.fFormat == SkMask::k3D_Format) { in blitMask()
[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::kLCD32_Format: in operator ==()
38 case SkMask::kARGB32_Format: in operator ==()
59 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask()
60 mask->fFormat = SkMask::kA8_Format; in copyToMask()
71 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask()
[all …]
/external/skia/include/core/
DSkScalerContext.h54 static unsigned ComputeRowBytes(unsigned width, SkMask::Format format) { in ComputeRowBytes()
56 if (SkMask::kBW_Format == format) { in ComputeRowBytes()
58 } else if (SkMask::kARGB32_Format == format || in ComputeRowBytes()
59 SkMask::kLCD32_Format == format) in ComputeRowBytes()
62 } else if (SkMask::kLCD16_Format == format) { in ComputeRowBytes()
71 return ComputeRowBytes(fWidth, (SkMask::Format)fMaskFormat); in rowBytes()
156 void toMask(SkMask* mask) const;
233 SkMask::Format getFormat() const { in getFormat()
234 return static_cast<SkMask::Format>(fMaskFormat); in getFormat()
268 SkMask::Format getMaskFormat() const { in getMaskFormat()
[all …]
DSkRasterizer.h29 SkMask* mask, SkMask::CreateMode mode);
37 SkMask* mask, SkMask::CreateMode mode);
DSkMaskFilter.h40 virtual SkMask::Format getFormat() = 0;
55 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
DSkBlitter.h46 virtual void blitMask(const SkMask&, const SkIRect& clip);
55 void blitMaskRegion(const SkMask& mask, const SkRegion& clip);
93 virtual void blitMask(const SkMask&, const SkIRect& clip) SK_OVERRIDE;
116 virtual void blitMask(const SkMask&, const SkIRect& clip) SK_OVERRIDE;
143 virtual void blitMask(const SkMask&, const SkIRect& clip) SK_OVERRIDE;
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp63 SkMask::Format SkEmbossMaskFilter::getFormat() { in getFormat()
64 return SkMask::k3D_Format; in getFormat()
67 bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
76 dst->fFormat = SkMask::k3D_Format; in filterMask()
93 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask()
95 SkMask::FreeImage(alphaPlane); in filterMask()
DSkTableMaskFilter.cpp28 bool SkTableMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
30 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
36 dst->fFormat = SkMask::kA8_Format; in filterMask()
40 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
70 SkMask::Format SkTableMaskFilter::getFormat() { in getFormat()
71 return SkMask::kA8_Format; in getFormat()
DSkBlurMaskFilter.cpp21 virtual SkMask::Format getFormat() SK_OVERRIDE;
22 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
76 SkMask::Format SkBlurMaskFilterImpl::getFormat() { in getFormat()
77 return SkMask::kA8_Format; in getFormat()
80 bool SkBlurMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
DSkKernel33MaskFilter.cpp11 SkMask::Format SkKernel33ProcMaskFilter::getFormat() { in getFormat()
12 return SkMask::kA8_Format; in getFormat()
15 bool SkKernel33ProcMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
21 dst->fFormat = SkMask::kA8_Format; in filterMask()
32 dst->fImage = SkMask::AllocImage(size); in filterMask()
DSkLayerRasterizer.cpp74 SkMask mask; in compute_bounds()
77 SkMask::kJustComputeBounds_CreateMode)) { in compute_bounds()
88 SkMask* mask, SkMask::CreateMode mode) { in onRasterize()
93 if (SkMask::kJustRenderImage_CreateMode != mode) { in onRasterize()
98 if (SkMask::kComputeBoundsAndRenderImage_CreateMode == mode) { in onRasterize()
99 mask->fFormat = SkMask::kA8_Format; in onRasterize()
105 mask->fImage = SkMask::AllocImage(size); in onRasterize()
109 if (SkMask::kJustComputeBounds_CreateMode != mode) { in onRasterize()
DSkBlurMask.h31 static bool Blur(SkMask* dst, const SkMask& src,
/external/skia/src/gpu/
DSkGrFontScaler.cpp80 SkMask::Format format = fStrike->getMaskFormat(); in getMaskFormat()
82 case SkMask::kBW_Format: in getMaskFormat()
84 case SkMask::kA8_Format: in getMaskFormat()
86 case SkMask::kLCD16_Format: in getMaskFormat()
88 case SkMask::kLCD32_Format: in getMaskFormat()
139 if (SkMask::kBW_Format == fStrike->getMaskFormat()) { in getPackedGlyphImage()
/external/skia/include/effects/
DSkEmbossMaskFilter.h32 virtual SkMask::Format getFormat();
34 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
DSkKernel33MaskFilter.h23 virtual SkMask::Format getFormat();
24 virtual bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*);
DSkTableMaskFilter.h51 virtual SkMask::Format getFormat();
52 virtual bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*);
/external/skia/src/opts/
Dopts_check_SSE2.cpp150 SkMask::Format maskFormat, in PlatformColorProcs()
152 if (SkMask::kA8_Format != maskFormat) { in PlatformColorProcs()
186 SkMask::Format maskFormat, in PlatformRowProcs()
DSkBlitRow_opts_none.cpp32 SkMask::Format maskFormat, in PlatformColorProcs()
42 SkMask::Format maskFormat, in PlatformRowProcs()

123