Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/canvas/
DPoints.h25 class Points: public SkNVRefCnt<SkPoint> {
31 Points(std::initializer_list<SkPoint> init): skPoints(init) { } in Points()
33 SkPoint& operator[](int index) {
37 const SkPoint* data() const { in data()
47 android::FatVector<SkPoint, 2> skPoints;
/frameworks/base/libs/hwui/jni/
DPath.cpp235 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points);
237 static void addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addMove()
238 const SkPoint& point) { in addMove()
247 static void addLine(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addLine()
248 const SkPoint& toPoint) { in addLine()
250 segmentPoints.push_back(SkPoint::Make(0, 0)); in addLine()
255 float length = lengths.back() + SkPoint::Distance(segmentPoints.back(), toPoint); in addLine()
270 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { in cubicBezierCalculation()
275 return SkPoint::Make(x, y); in cubicBezierCalculation()
283 static SkPoint quadraticBezierCalculation(float t, const SkPoint* points) { in quadraticBezierCalculation()
[all …]
DGraphicsJNI.h81 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
82 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
Dandroid_graphics_Matrix.cpp67 matrix->mapPoints((SkPoint*) dstArray, (const SkPoint*) srcArray, in mapPoints()
111 result = matrix->setPolyToPoly((const SkPoint*) src, in setPolyToPoly()
112 (const SkPoint*) dst, ptCount); in setPolyToPoly()
DShader.cpp113 SkPoint pts[2]; in LinearGradient_create()
155 SkPoint start; in RadialGradient_create()
158 SkPoint end; in RadialGradient_create()
DPathMeasure.cpp97 if (!pair->fMeasure.getPosTan(dist, (SkPoint*)posPtr, (SkVector*)tanPtr)) { in getPosTan()
DPaint.cpp60 const SkPoint pos[], SkPath* dst) { in getPosTextPath()
64 const SkPoint* fPos; in getPosTextPath()
270 Paint* paint, uint16_t* glyphs, SkPoint* pos) in GetTextFunctor()
295 SkPoint* pos;
309 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath()
DGraphics.cpp338 SkPoint* GraphicsJNI::jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) in jpointf_to_point()
347 void GraphicsJNI::point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) in point_to_jpointf()
Dandroid_graphics_Canvas.cpp395 reinterpret_cast<const SkPoint*>(verts), in drawVertices()
396 reinterpret_cast<const SkPoint*>(texs), in drawVertices()
/frameworks/base/libs/hwui/hwui/
DBlurDrawLooper.h29 static sk_sp<BlurDrawLooper> Make(SkColor4f, SkColorSpace*, float blurSigma, SkPoint offset);
44 const SkPoint mOffset;
46 SkPoint apply(SkPaint* paint) const;
48 BlurDrawLooper(SkColor4f, float, SkPoint);
DBlurDrawLooper.cpp22 BlurDrawLooper::BlurDrawLooper(SkColor4f color, float blurSigma, SkPoint offset) in BlurDrawLooper()
27 SkPoint BlurDrawLooper::apply(SkPaint* paint) const { in apply()
36 SkPoint offset) { in Make()
/frameworks/base/libs/hwui/tests/common/scenes/
DSimpleGradientAnimation.cpp53 SkPoint pts[] = {SkPoint::Make(0, 0), SkPoint::Make(width, height)}; in createCard()
DSimpleColorMatrixAnimation.cpp67 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()
DStretchyListViewAnimation.cpp99 const SkPoint pos = {SkIntToScalar(size / 2), in createRandomCharIcon()
/frameworks/base/libs/hwui/
DRecordingCanvas.h125 void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
127 void drawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&);
205 void onDrawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4], SkBlendMode,
207 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
DRecordingCanvas.cpp398 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
411 SkPoint cubics[12];
413 SkPoint texs[4];
431 c->drawPoints(mode, count, pod<SkPoint>(this), paint); in draw()
741 void DisplayListData::drawPatch(const SkPoint points[12], const SkColor colors[4], in drawPatch()
742 const SkPoint texs[4], SkBlendMode bmode, const SkPaint& paint) { in drawPatch()
745 void DisplayListData::drawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint points[], in drawPoints()
747 void* pod = this->push<DrawPoints>(count * sizeof(SkPoint), mode, count, paint); in drawPoints()
1072 void RecordingCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
1073 const SkPoint texCoords[4], SkBlendMode bmode, in onDrawPatch()
[all …]
DSkiaCanvas.cpp461 std::unique_ptr<SkPoint[]> pts(new SkPoint[count]); in drawPoints()
599 memcpy(builder.positions(), vertices, ptCount * sizeof(SkPoint)); in drawBitmapMesh()
603 SkPoint* texs = builder.texCoords(); in drawBitmapMesh()
613 SkPoint* texsPtr = texs; in drawBitmapMesh()
775 SkPoint pos; in drawLayoutOnPath()
DSkiaCanvas.h189 looper->apply(skp, [&](SkPoint offset, const SkPaint& modifiedPaint) {
/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()
DCanvasOpTests.cpp450 SkPoint pts[3] = {{64, 32}, {0, 224}, {128, 224}}; in TEST()
/frameworks/base/libs/hwui/tests/common/
DCallCountingCanvas.h98 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
99 const SkPoint texCoords[4], SkBlendMode mode, in onDrawPatch()
105 void onDrawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint pts[], in onDrawPoints()
/frameworks/base/libs/hwui/pipeline/skia/
DDumpOpsCanvas.h104 void onDrawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&) override { in onDrawPoints() argument