/frameworks/base/libs/hwui/ |
D | RecordingCanvas.h | 127 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 …]
|
D | RecordingCanvas.cpp | 168 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 …]
|
D | Layer.cpp | 59 static inline SkScalar isIntegerAligned(SkScalar x) { in isIntegerAligned()
|
D | SkiaCanvas.cpp | 701 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()
|
D | CanvasTransform.cpp | 102 std::array<SkScalar, _colorStorage.size()> _offsetStorage; in applyColorTransform()
|
/frameworks/base/libs/hwui/hwui/ |
D | DrawTextFunctor.h | 41 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()
|
D | Canvas.cpp | 43 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 …]
|
D | MinikinSkia.cpp | 63 SkScalar skWidth; in GetHorizontalAdvance()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 35 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/ |
D | Interpolator.cpp | 27 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()
|
D | android_graphics_HardwareBufferRenderer.cpp | 85 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()
|
D | android_graphics_Color.cpp | 26 SkScalar hsv[3]; in Color_RGBToHSV() 39 SkScalar* hsv = autoHSV.ptr(); in Color_HSVToColor()
|
D | MaskFilter.cpp | 28 SkScalar sigma = convertRadiusToSigma(radius); in createBlur() 35 SkScalar direction[3]; in createEmboss() 43 SkScalar sigma = convertRadiusToSigma(radius); in createEmboss()
|
D | PathMeasure.cpp | 88 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()
|
D | Paint.cpp | 602 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 …]
|
D | Shader.cpp | 140 SkScalar* pos = autoPos.ptr(); in LinearGradient_create() 180 SkScalar* pos = autoPos.ptr(); in RadialGradient_create() 208 SkScalar* pos = autoPos.ptr(); in SweepGradient_create()
|
D | PathEffect.cpp | 38 SkScalar* intervals = autoInterval.ptr(); in Dash_constructor()
|
D | Camera.cpp | 108 SkScalar dot = v->dotWithNormal(x, y, z); in Camera_dotWithNormal()
|
/frameworks/base/libs/hwui/tests/common/ |
D | CallCountingCanvas.h | 78 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/ |
D | DumpOpsCanvas.h | 77 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
|
D | SkiaUtils.h | 24 const SkScalar v = SK_ScalarMax; in SkRectMakeLargest()
|
D | LayerDrawable.cpp | 46 static inline SkScalar isIntegerAligned(SkScalar x) { in isIntegerAligned()
|
D | ReorderBarrierDrawables.cpp | 142 const SkScalar casterAlpha = in drawShadow()
|
/frameworks/base/libs/hwui/canvas/ |
D | CanvasOps.h | 223 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/ |
D | SkiaOpenGLPipeline.h | 61 static const SkScalar kOffset = 0.063f; in getPixelSnapMatrix()
|