Home
last modified time | relevance | path

Searched refs:SkScalarRoundToScalar (Results 1 – 25 of 41) sorted by relevance

12

/external/skqp/src/gpu/
DGrClip.h127 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()
128 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()
129 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()
130 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
DSkGpuDevice_drawTexture.cpp35 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
36 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
/external/skia/src/gpu/
DGrClip.h224 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance && in IsPixelAligned()
225 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance && in IsPixelAligned()
226 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance && in IsPixelAligned()
227 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance; in IsPixelAligned()
DSkGpuDevice_drawTexture.cpp44 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
45 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
/external/skqp/samplecode/
DSampleFilter2.cpp80 x = SkScalarRoundToScalar(x); in onDrawContent()
81 y = SkScalarRoundToScalar(y); in onDrawContent()
DSamplePathClip.cpp183 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
DSampleThinAA.cpp365 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
DSampleFatBits.cpp37 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
/external/skqp/gm/
Dblurs.cpp88 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f;
104 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
Dshowmiplevels.cpp185 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()
299 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()
/external/skia/gm/
Dblurs.cpp98 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f;
114 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
/external/skia/modules/skparagraph/src/
DTextWrapper.cpp25 roundedWidth = SkScalarRoundToScalar(width * 100) * (1.0f/100); in breakLine()
27 roundedWidth = SkScalarRoundToScalar(width * 10) * (1.0f/10); in breakLine()
DParagraphCache.cpp15 return SkScalarRoundToScalar(a * threshold)/threshold; in relax()
DParagraphImpl.cpp35 return SkScalarRoundToScalar(a * 100.0)/100.0; in littleRound()
37 return SkScalarRoundToScalar(a * 10.0)/10.0; in littleRound()
/external/skia/include/core/
DSkScalar.h31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
/external/skqp/src/gpu/ccpr/
DGrCCDrawPathsOp.cpp135 fMatrix.setTranslateX(SkScalarRoundToScalar(fMatrix.getTranslateX())); in SingleDraw()
136 fMatrix.setTranslateY(SkScalarRoundToScalar(fMatrix.getTranslateY())); in SingleDraw()
/external/skqp/include/core/
DSkScalar.h31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
/external/skia/src/core/
DSkPathBuilder.cpp385 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc()
552 point.fX = SkScalarRoundToScalar(point.fX); in arcTo()
553 point.fY = SkScalarRoundToScalar(point.fY); in arcTo()
DSkBitmapProcState.cpp174 && SkScalarNearlyEqual(m.getTranslateX(), SkScalarRoundToScalar(m.getTranslateX()), tol) in just_trans_integral()
175 && SkScalarNearlyEqual(m.getTranslateY(), SkScalarRoundToScalar(m.getTranslateY()), tol); in just_trans_integral()
/external/skqp/src/core/
DSkBitmapProcState.cpp159 && SkScalarNearlyEqual(m.getTranslateX(), SkScalarRoundToScalar(m.getTranslateX()), tol) in just_trans_integral()
160 && SkScalarNearlyEqual(m.getTranslateY(), SkScalarRoundToScalar(m.getTranslateY()), tol); in just_trans_integral()
/external/skia/samplecode/
DSamplePathClip.cpp169 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
DSampleThinAA.cpp367 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
DSampleFatBits.cpp37 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
/external/skia/src/shaders/
DSkPerlinNoiseShader.cpp515 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade()
516 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
/external/skia/src/utils/
DSkShadowTessellator.cpp736 out->fX = SkScalarRoundToScalar(16.f*in.fX)*0.0625f; in sanitize_point()
737 out->fY = SkScalarRoundToScalar(16.f*in.fY)*0.0625f; in sanitize_point()

12