Home
last modified time | relevance | path

Searched refs:fScale (Results 1 – 24 of 24) sorted by relevance

/external/skia/src/utils/
DSkUnitMappers.cpp16 fScale = 0; in SK_DEFINE_INST_COUNT()
22 fScale = SK_Fract1 / (segments - 1); in SK_DEFINE_INST_COUNT()
28 x = x * fScale >> 14; in mapUnit16()
36 fScale = rb.read32(); in SkDiscreteMapper()
43 wb.write32(fScale); in flatten()
/external/skia/legacy/src/utils/
DSkUnitMappers.cpp13 fScale = 0; in SkDiscreteMapper()
19 fScale = SK_Fract1 / (segments - 1); in SkDiscreteMapper()
25 x = x * fScale >> 14; in mapUnit16()
33 fScale = rb.readU32(); in SkDiscreteMapper()
48 wb.write32(fScale); in flatten()
/external/skia/src/effects/
DSkDisplacementMapEffect.cpp143 , fScale(scale) in SkDisplacementMapEffect()
155 fScale = buffer.readScalar(); in SkDisplacementMapEffect()
162 buffer.writeScalar(fScale); in flatten()
193 computeDisplacement(fXChannelSelector, fYChannelSelector, fScale, dst, &displ, &color); in onFilterImage()
253 SkScalar scale() const { return fScale; } in scale()
273 SkScalar fScale; member in GrDisplacementMapEffect
306 fScale, in filterImageGPU()
327 , fScale(scale) { in GrDisplacementMapEffect()
341 fScale == s.fScale; in onIsEqual()
DSkBicubicImageFilter.cpp27 fScale(scale) { in SkBicubicImageFilter()
47 fScale.fWidth = buffer.readScalar(); in SkBicubicImageFilter()
48 fScale.fHeight = buffer.readScalar(); in SkBicubicImageFilter()
54 buffer.writeScalar(fScale.fWidth); in flatten()
55 buffer.writeScalar(fScale.fHeight); in flatten()
91 SkRect dstRect = SkRect::MakeWH(SkScalarMul(SkIntToScalar(src.width()), fScale.fWidth), in onFilterImage()
92 SkScalarMul(SkIntToScalar(src.height()), fScale.fHeight)); in onFilterImage()
343 SkRect dstRect = SkRect::MakeWH(srcBM.width() * fScale.fWidth, in filterImageGPU()
344 srcBM.height() * fScale.fHeight); in filterImageGPU()
DSkTestImageFilters.cpp74 SkScalar scale = fScale; in onFilterImage()
124 buffer.writeScalar(fScale); in flatten()
128 fScale = buffer.readScalar(); in SkDownSampleImageFilter()
/external/skia/src/core/
DSkTextToPathIter.h23 SkScalar getPathScale() const { return fScale; } in getPathScale()
38 SkScalar fScale; variable
DSkBlitter_RGB16.cpp69 unsigned fScale; member in SkRGB16_Blitter
528 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter()
542 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter()
543 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), in SkRGB16_Blitter()
544 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); in SkRGB16_Blitter()
548 if (!fDoDither && 256 == fScale) { in justAnOpaqueColor()
587 unsigned scale = fScale; in blitAntiH()
636 SkRGB16_BlendBW(fDevice, mask, clip, 256 - fScale, fColor16); in blitMask()
648 unsigned scale256 = fScale; in blitMask()
668 unsigned scale5 = SkAlpha255To256(alpha) * fScale >> (8 + 3); in blitV()
DSkPaint.cpp2306 fScale = paint.getTextSize() / SkPaint::kCanonicalTextSizeForPaths; in SkTextToPathIter()
2308 fPaint.setStrokeWidth(SkScalarDiv(fPaint.getStrokeWidth(), fScale)); in SkTextToPathIter()
2311 fScale = SK_Scalar1; in SkTextToPathIter()
2338 &count, NULL), fScale); in SkTextToPathIter()
2361 fXPos += SkScalarMul(SkFixedToScalar(fPrevAdvance + fAutoKern.adjust(glyph)), fScale); in next()
/external/skia/include/effects/
DSkTestImageFilters.h30 SkDownSampleImageFilter(SkScalar scale) : INHERITED(0), fScale(scale) {} in SkDownSampleImageFilter()
42 SkScalar fScale;
DSkBicubicImageFilter.h49 SkSize fScale;
DSkDisplacementMapEffect.h48 SkScalar fScale; variable
/external/skia/legacy/src/ports/
DSkFontHost_win.cpp429 SkScalar fScale; // to get from canonical size to real size member in SkScalerContext_Windows
484 fScale = fRec.fTextSize / gCanonicalTextSize; in SkScalerContext_Windows()
486 fXform.eM11 = mul2float(fScale, fRec.fPost2x2[0][0]); in SkScalerContext_Windows()
487 fXform.eM12 = mul2float(fScale, fRec.fPost2x2[1][0]); in SkScalerContext_Windows()
488 fXform.eM21 = mul2float(fScale, fRec.fPost2x2[0][1]); in SkScalerContext_Windows()
489 fXform.eM22 = mul2float(fScale, fRec.fPost2x2[1][1]); in SkScalerContext_Windows()
669 mx->fTop = -fScale * otm.otmTextMetrics.tmAscent; in generateFontMetrics()
670 mx->fAscent = -fScale * otm.otmAscent; in generateFontMetrics()
671 mx->fDescent = -fScale * otm.otmDescent; in generateFontMetrics()
672 mx->fBottom = fScale * otm.otmTextMetrics.tmDescent; in generateFontMetrics()
[all …]
/external/skia/src/ports/
DSkFontHost_win.cpp558 SkScalar fScale; // to get from canonical size to real size member in SkScalerContext_Windows
677 fScale = fRec.fTextSize / gCanonicalTextSize; in SkScalerContext_Windows()
679 fXform.eM11 = mul2float(fScale, fRec.fPost2x2[0][0]); in SkScalerContext_Windows()
680 fXform.eM12 = mul2float(fScale, fRec.fPost2x2[1][0]); in SkScalerContext_Windows()
681 fXform.eM21 = mul2float(fScale, fRec.fPost2x2[0][1]); in SkScalerContext_Windows()
682 fXform.eM22 = mul2float(fScale, fRec.fPost2x2[1][1]); in SkScalerContext_Windows()
698 fScale = SK_Scalar1; in SkScalerContext_Windows()
913 mx->fTop = -fScale * otm.otmTextMetrics.tmAscent; in generateFontMetrics()
914 mx->fAscent = -fScale * otm.otmAscent; in generateFontMetrics()
915 mx->fDescent = -fScale * otm.otmDescent; in generateFontMetrics()
[all …]
/external/skia/bench/
DBitmapBench.cpp188 bool fScale; member in FilterBitmapBench
199 , fScale(addScale), fRotate(addRotate), fFilter(addFilter) { in FilterBitmapBench()
206 if (fScale) in onGetName()
218 if (fScale) { in onDraw()
/external/skia/legacy/include/core/
DSkDraw.h136 SkScalar getPathScale() const { return fScale; } in getPathScale()
143 SkScalar fScale; variable
/external/skia/legacy/src/core/
DSkBlitter_RGB16.cpp69 unsigned fScale; member in SkRGB16_Blitter
528 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter()
542 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter()
543 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), in SkRGB16_Blitter()
544 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); in SkRGB16_Blitter()
548 if (!fDoDither && 256 == fScale) { in justAnOpaqueColor()
587 unsigned scale = fScale; in blitAntiH()
636 SkRGB16_BlendBW(fDevice, mask, clip, 256 - fScale, fColor16); in blitMask()
648 unsigned scale256 = fScale; in blitMask()
668 unsigned scale5 = SkAlpha255To256(alpha) * fScale >> (8 + 3); in blitV()
DSkPaint.cpp2107 fScale = paint.getTextSize() / SkPaint::kCanonicalTextSizeForPaths; in SkTextToPathIter()
2109 fPaint.setStrokeWidth(SkScalarDiv(fPaint.getStrokeWidth(), fScale)); in SkTextToPathIter()
2112 fScale = SK_Scalar1; in SkTextToPathIter()
2139 &count, NULL), fScale); in SkTextToPathIter()
2162 fXPos += SkScalarMul(SkFixedToScalar(fPrevAdvance + fAutoKern.adjust(glyph)), fScale); in next()
/external/skia/legacy/include/effects/
DSkTestImageFilters.h135 SkDownSampleImageFilter(SkScalar scale) : fScale(scale) {} in SkDownSampleImageFilter()
151 SkScalar fScale;
/external/skia/include/utils/
DSkUnitMappers.h31 SkFract fScale; // computed from fSegments variable
/external/skia/legacy/include/utils/
DSkUnitMappers.h30 SkFract fScale; // computed from fSegments variable
/external/skia/legacy/src/effects/
DSkTestImageFilters.cpp341 SkScalar scale = fScale; in onFilterImage()
391 buffer.writeScalar(fScale); in flatten()
395 fScale = buffer.readScalar(); in SkDownSampleImageFilter()
DSkGradientShader.cpp189 uint32_t fScale; // (1 << 24) / range member
330 recs->fScale = (1 << 24) / (curr - prev); in Gradient_Shader()
332 recs->fScale = 0; // ignore this segment in Gradient_Shader()
344 recs->fScale = scale; in Gradient_Shader()
380 recs[i].fScale = buffer.readU32(); in Gradient_Shader()
417 buffer.write32(recs[i].fScale); in flatten()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp110 recs->fScale = (1 << 24) / (curr - prev); in SkGradientShaderBase()
112 recs->fScale = 0; // ignore this segment in SkGradientShaderBase()
124 recs->fScale = scale; in SkGradientShaderBase()
160 recs[i].fScale = buffer.readUInt(); in SkGradientShaderBase()
196 buffer.writeUInt(recs[i].fScale); in flatten()
DSkGradientShaderPriv.h143 uint32_t fScale; // (1 << 24) / range member