Home
last modified time | relevance | path

Searched refs:SkScalar (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/libs/hwui/
DRecordingCanvas.h127 void scale(SkScalar, SkScalar);
128 void translate(SkScalar, SkScalar);
129 void translateZ(SkScalar);
144 void drawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&);
155 void drawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&);
157 void drawImage(DrawImagePayload&&, SkScalar, SkScalar, const SkSamplingOptions&,
203 void didScale(SkScalar, SkScalar) override;
204 void didTranslate(SkScalar, SkScalar) override;
219 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
227 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override;
[all …]
DRecordingCanvas.cpp168 Scale(SkScalar sx, SkScalar sy) : sx(sx), sy(sy) {} in Scale()
169 SkScalar sx, sy;
174 Translate(SkScalar dx, SkScalar dy) : dx(dx), dy(dy) {} in Translate()
175 SkScalar dx, dy;
265 DrawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in DrawArc()
273 SkScalar startAngle;
274 SkScalar sweepAngle;
344 DrawImage(DrawImagePayload&& payload, SkScalar x, SkScalar y, const SkSamplingOptions& sampling, in DrawImage()
358 SkScalar x, y;
455 DrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) in DrawTextBlob()
[all …]
DLayer.cpp59 static inline SkScalar isIntegerAligned(SkScalar x) { in isIntegerAligned()
DSkiaCanvas.cpp701 const SkScalar w = SkIntToScalar(bitmap.width()); in drawBitmapMesh()
702 const SkScalar h = SkIntToScalar(bitmap.height()); in drawBitmapMesh()
703 const SkScalar dx = w / meshWidth; in drawBitmapMesh()
704 const SkScalar dy = h / meshHeight; in drawBitmapMesh()
707 SkScalar y = 0; in drawBitmapMesh()
712 SkScalar x = 0; in drawBitmapMesh()
DCanvasTransform.cpp102 std::array<SkScalar, _colorStorage.size()> _offsetStorage; in applyColorTransform()
/frameworks/base/libs/hwui/hwui/
DDrawTextFunctor.h41 static inline void drawStroke(SkScalar left, SkScalar right, SkScalar top, SkScalar thickness, in drawStroke()
43 const SkScalar strokeWidth = fmax(thickness, 1.0f); in drawStroke()
44 const SkScalar bottom = top + strokeWidth; in drawStroke()
140 SkScalar position; in operator()
144 SkScalar thickness; in operator()
DCanvas.cpp43 const SkScalar left = x; in drawTextDecorations()
44 const SkScalar right = x + length; in drawTextDecorations()
49 SkScalar position; in drawTextDecorations()
53 SkScalar thickness; in drawTextDecorations()
57 const SkScalar top = y + position; in drawTextDecorations()
62 const SkScalar thickness = textSize * Paint::kStdStrikeThru_Thickness; in drawTextDecorations()
63 const SkScalar top = y + position; in drawTextDecorations()
122 const SkScalar left = x; in drawText()
123 const SkScalar right = x + layout.getAdvance(); in drawText()
125 const SkScalar top = y + f.getUnderlinePosition(); in drawText()
[all …]
DMinikinSkia.cpp63 SkScalar skWidth; in GetHorizontalAdvance()
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h35 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { in onDrawTextBlob()
52 void onDrawArc(const SkRect&, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in onDrawArc()
/frameworks/base/libs/hwui/jni/
DInterpolator.cpp27 SkScalar* scalars = autoValues.ptr(); in Interpolator_setKeyFrame()
28 SkScalar* blend = autoBlend.ptr(); in Interpolator_setKeyFrame()
49 result = interp->timeToValues(msec, (SkScalar*)values); in Interpolator_timeToValues()
54 values[i] = SkScalarToFloat(*(SkScalar*)&values[i]); in Interpolator_timeToValues()
Dandroid_graphics_HardwareBufferRenderer.cpp85 static SkMatrix createMatrixFromBufferTransform(SkScalar width, SkScalar height, int transform) { in createMatrixFromBufferTransform()
106 auto skWidth = static_cast<SkScalar>(width); in android_graphics_HardwareBufferRenderer_render()
107 auto skHeight = static_cast<SkScalar>(height); in android_graphics_HardwareBufferRenderer_render()
Dandroid_graphics_Color.cpp26 SkScalar hsv[3]; in Color_RGBToHSV()
39 SkScalar* hsv = autoHSV.ptr(); in Color_HSVToColor()
DMaskFilter.cpp28 SkScalar sigma = convertRadiusToSigma(radius); in createBlur()
35 SkScalar direction[3]; in createEmboss()
43 SkScalar sigma = convertRadiusToSigma(radius); in createEmboss()
DPathMeasure.cpp88 static void convertTwoElemFloatArray(JNIEnv* env, jfloatArray array, const SkScalar src[2]) { in convertTwoElemFloatArray()
97 SkScalar tmpPos[2], tmpTan[2]; in getPosTan()
98 SkScalar* posPtr = pos ? tmpPos : NULL; in getPosTan()
99 SkScalar* tanPtr = tan ? tmpTan : NULL; in getPosTan()
DPaint.cpp602 static SkScalar getMetricsInternal(jlong paintHandle, SkFontMetrics* metrics, bool useLocale) { in getMetricsInternal()
616 SkScalar spacing = font->getMetrics(metrics); in getMetricsInternal()
623 SkScalar size = font->getSize(); in getMetricsInternal()
710 SkScalar spacing = getMetricsInternal(paintHandle, &metrics, useLocale); in getFontMetrics()
1061 SkScalar position; in getUnderlinePosition()
1065 const SkScalar textSize = reinterpret_cast<Paint*>(paintHandle)->getSkFont().getSize(); in getUnderlinePosition()
1073 SkScalar thickness; in getUnderlineThickness()
1077 const SkScalar textSize = reinterpret_cast<Paint*>(paintHandle)->getSkFont().getSize(); in getUnderlineThickness()
1083 const SkScalar textSize = reinterpret_cast<Paint*>(paintHandle)->getSkFont().getSize(); in getStrikeThruPosition()
1088 const SkScalar textSize = reinterpret_cast<Paint*>(paintHandle)->getSkFont().getSize(); in getStrikeThruThickness()
[all …]
DShader.cpp140 SkScalar* pos = autoPos.ptr(); in LinearGradient_create()
180 SkScalar* pos = autoPos.ptr(); in RadialGradient_create()
208 SkScalar* pos = autoPos.ptr(); in SweepGradient_create()
DPathEffect.cpp38 SkScalar* intervals = autoInterval.ptr(); in Dash_constructor()
DCamera.cpp108 SkScalar dot = v->dotWithNormal(x, y, z); in Camera_dotWithNormal()
/frameworks/base/libs/hwui/tests/common/
DCallCountingCanvas.h78 void onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in onDrawArc()
94 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, in onDrawTextBlob()
/frameworks/base/libs/hwui/pipeline/skia/
DDumpOpsCanvas.h77 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override { in onDrawArc() argument
89 void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override { in onDrawTextBlob() argument
DSkiaUtils.h24 const SkScalar v = SK_ScalarMax; in SkRectMakeLargest()
DLayerDrawable.cpp46 static inline SkScalar isIntegerAligned(SkScalar x) { in isIntegerAligned()
DReorderBarrierDrawables.cpp142 const SkScalar casterAlpha = in drawShadow()
/frameworks/base/libs/hwui/canvas/
DCanvasOps.h223 SkScalar rx;
224 SkScalar ry;
245 SkScalar cx;
246 SkScalar cy;
247 SkScalar radius;
268 SkScalar startAngle;
269 SkScalar sweepAngle;
/frameworks/base/libs/hwui/platform/android/pipeline/skia/
DSkiaOpenGLPipeline.h61 static const SkScalar kOffset = 0.063f; in getPixelSnapMatrix()

12