Home
last modified time | relevance | path

Searched refs:SkPoint (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DPath.cpp237 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points);
239 static void addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addMove()
240 const SkPoint& point) { in addMove()
249 static void addLine(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addLine()
250 const SkPoint& toPoint) { in addLine()
252 segmentPoints.push_back(SkPoint::Make(0, 0)); in addLine()
257 float length = lengths.back() + SkPoint::Distance(segmentPoints.back(), toPoint); in addLine()
272 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { in cubicBezierCalculation()
277 return SkPoint::Make(x, y); in cubicBezierCalculation()
285 static SkPoint quadraticBezierCalculation(float t, const SkPoint* points) { in quadraticBezierCalculation()
[all …]
DGraphicsJNI.h60 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
61 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
DMatrix.cpp70 matrix->mapPoints((SkPoint*) dstArray, (const SkPoint*) srcArray, in mapPoints()
114 result = matrix->setPolyToPoly((const SkPoint*) src, in setPolyToPoly()
115 (const SkPoint*) dst, ptCount); in setPolyToPoly()
DShader.cpp110 SkPoint pts[2]; in LinearGradient_create()
141 SkPoint center; in RadialGradient_create()
DGraphics.cpp289 SkPoint* GraphicsJNI::jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) in jpointf_to_point()
298 void GraphicsJNI::point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) in point_to_jpointf()
DPaint.cpp75 const SkPoint pos[], SkPath* dst) { in getPosTextPath()
79 const SkPoint* fPos; in getPosTextPath()
285 Paint* paint, uint16_t* glyphs, SkPoint* pos) in GetTextFunctor()
310 SkPoint* pos;
324 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath()
DPathMeasure.cpp99 if (!pair->fMeasure.getPosTan(dist, (SkPoint*)posPtr, (SkVector*)tanPtr)) { in getPosTan()
/frameworks/base/libs/hwui/tests/common/scenes/
DSimpleGradientAnimation.cpp53 SkPoint pts[] = {SkPoint::Make(0, 0), SkPoint::Make(width, height)}; in createCard()
DSimpleColorMatrixAnimation.cpp75 SkPoint pts[] = {SkPoint::Make(0, 0), SkPoint::Make(width, height)}; in createCard()
DListOfFadedTextAnimation.cpp41 SkPoint pts[2]; in createListItem()
DHwBitmapInCompositeShader.cpp57 SkPoint center; in createContent()
DListViewAnimation.cpp54 const SkPoint pos = {SkIntToScalar(size / 2), in createRandomCharIcon()
/frameworks/base/libs/hwui/
DRecordingCanvas.h114 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
116 void drawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&);
197 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
199 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
DRecordingCanvas.cpp395 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
408 SkPoint cubics[12];
410 SkPoint texs[4];
428 c->drawPoints(mode, count, pod<SkPoint>(this), paint); in draw()
646 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch()
647 const SkPoint texs[4], SkBlendMode bmode, const SkPaint& paint) { in drawPatch()
650 void DisplayListData::drawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint points[], in drawPoints()
652 void* pod = this->push<DrawPoints>(count * sizeof(SkPoint), mode, count, paint); in drawPoints()
957 void RecordingCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
958 const SkPoint texCoords[4], SkBlendMode bmode, in onDrawPatch()
[all …]
DSkiaCanvas.cpp462 std::unique_ptr<SkPoint[]> pts(new SkPoint[count]); in drawPoints()
577 memcpy(builder.positions(), vertices, ptCount * sizeof(SkPoint)); in drawBitmapMesh()
581 SkPoint* texs = builder.texCoords(); in drawBitmapMesh()
591 SkPoint* texsPtr = texs; in drawBitmapMesh()
741 SkPoint pos; in drawLayoutOnPath()
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h36 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], in onDrawPatch()
57 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) { in onDrawPoints()
/frameworks/base/libs/hwui/pipeline/skia/
DDumpOpsCanvas.h108 void onDrawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&) override { in onDrawPoints() argument
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp393 reinterpret_cast<const SkPoint*>(verts), in drawVertices()
394 reinterpret_cast<const SkPoint*>(texs), in drawVertices()