Searched refs:SkScalarRoundToScalar (Results 1 – 25 of 41) sorted by relevance
12
/external/skqp/src/gpu/ |
D | GrClip.h | 127 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()
|
D | SkGpuDevice_drawTexture.cpp | 35 …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/ |
D | GrClip.h | 224 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()
|
D | SkGpuDevice_drawTexture.cpp | 44 …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/ |
D | SampleFilter2.cpp | 80 x = SkScalarRoundToScalar(x); in onDrawContent() 81 y = SkScalarRoundToScalar(y); in onDrawContent()
|
D | SamplePathClip.cpp | 183 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
|
D | SampleThinAA.cpp | 365 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
|
D | SampleFatBits.cpp | 37 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
|
/external/skqp/gm/ |
D | blurs.cpp | 88 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f; 104 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
|
D | showmiplevels.cpp | 185 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw() 299 canvas->translate(0, SkScalarRoundToScalar(bm.height() * 0.85f)); in onDraw()
|
/external/skia/gm/ |
D | blurs.cpp | 98 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 14 + 0.25f; 114 SkScalar dx = SkScalarRoundToScalar(path.getBounds().width()) + 40 + 0.25f;
|
/external/skia/modules/skparagraph/src/ |
D | TextWrapper.cpp | 25 roundedWidth = SkScalarRoundToScalar(width * 100) * (1.0f/100); in breakLine() 27 roundedWidth = SkScalarRoundToScalar(width * 10) * (1.0f/10); in breakLine()
|
D | ParagraphCache.cpp | 15 return SkScalarRoundToScalar(a * threshold)/threshold; in relax()
|
D | ParagraphImpl.cpp | 35 return SkScalarRoundToScalar(a * 100.0)/100.0; in littleRound() 37 return SkScalarRoundToScalar(a * 10.0)/10.0; in littleRound()
|
/external/skia/include/core/ |
D | SkScalar.h | 31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCDrawPathsOp.cpp | 135 fMatrix.setTranslateX(SkScalarRoundToScalar(fMatrix.getTranslateX())); in SingleDraw() 136 fMatrix.setTranslateY(SkScalarRoundToScalar(fMatrix.getTranslateY())); in SingleDraw()
|
/external/skqp/include/core/ |
D | SkScalar.h | 31 #define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f) macro
|
/external/skia/src/core/ |
D | SkPathBuilder.cpp | 385 SkScalar startOver90I = SkScalarRoundToScalar(startOver90); in addArc() 552 point.fX = SkScalarRoundToScalar(point.fX); in arcTo() 553 point.fY = SkScalarRoundToScalar(point.fY); in arcTo()
|
D | SkBitmapProcState.cpp | 174 && 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/ |
D | SkBitmapProcState.cpp | 159 && 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/ |
D | SamplePathClip.cpp | 169 return SkScalarRoundToScalar(x * 0.5f) * 2; in snap()
|
D | SampleThinAA.cpp | 367 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
|
D | SampleFatBits.cpp | 37 return SkScalarRoundToScalar(x * grid) / grid; in apply_grid()
|
/external/skia/src/shaders/ |
D | SkPerlinNoiseShader.cpp | 515 newPoint.fX = SkScalarRoundToScalar(newPoint.fX); in shade() 516 newPoint.fY = SkScalarRoundToScalar(newPoint.fY); in shade()
|
/external/skia/src/utils/ |
D | SkShadowTessellator.cpp | 736 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