Home
last modified time | relevance | path

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

12

/external/skia/samplecode/
DSampleCCPRGeometry.cpp66 SkPoint fPoints[4] = { member in CCPRGeometryView
232 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, fPoints, pointsPaint); in onDrawContent()
240 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, fPoints, pointsPaint); in onDrawContent()
241 canvas->drawPoints(SkCanvas::kPoints_PointMode, 1, fPoints + 3, pointsPaint); in onDrawContent()
256 fPath.moveTo(fPoints[0]); in updateGpuData()
260 fCubicType = GrPathUtils::getCubicKLM(fPoints, &fCubicKLM, t, s); in updateGpuData()
262 geometry.beginContour(fPoints[0]); in updateGpuData()
263 geometry.cubicTo(fPoints, kDebugBloat / 2, kDebugBloat / 2); in updateGpuData()
282 fPath.cubicTo(fPoints[1], fPoints[2], fPoints[3]); in updateGpuData()
284 SkPoint P3[3] = {fPoints[0], fPoints[1], fPoints[3]}; in updateGpuData()
[all …]
/external/skqp/samplecode/
DSampleCCPRGeometry.cpp64 SkPoint fPoints[4] = { member in CCPRGeometryView
229 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, fPoints, pointsPaint); in onDrawContent()
237 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, fPoints, pointsPaint); in onDrawContent()
238 canvas->drawPoints(SkCanvas::kPoints_PointMode, 1, fPoints + 3, pointsPaint); in onDrawContent()
253 fPath.moveTo(fPoints[0]); in updateGpuData()
257 fCubicType = GrPathUtils::getCubicKLM(fPoints, &fCubicKLM, t, s); in updateGpuData()
259 geometry.beginContour(fPoints[0]); in updateGpuData()
260 geometry.cubicTo(fPoints, kDebugBloat / 2, kDebugBloat / 2); in updateGpuData()
279 fPath.cubicTo(fPoints[1], fPoints[2], fPoints[3]); in updateGpuData()
281 SkPoint P3[3] = {fPoints[0], fPoints[1], fPoints[3]}; in updateGpuData()
[all …]
/external/skia/bench/
DGrCCFillGeometryBench.cpp19 fPoints[0].set(x0, y0); in GrCCGeometryBench()
20 fPoints[1].set(x1, y1); in GrCCGeometryBench()
21 fPoints[2].set(x2, y2); in GrCCGeometryBench()
22 fPoints[3].set(x3, y3); in GrCCGeometryBench()
23 fPoints[4].set(x0, y0); // Flat closing edge. in GrCCGeometryBench()
26 switch (SkClassifyCubic(fPoints)) { in GrCCGeometryBench()
51 fGeometry.beginContour(fPoints[0]); in onDraw()
53 fGeometry.cubicTo(fPoints); in onDraw()
54 fGeometry.lineTo(fPoints+3); in onDraw()
62 SkPoint fPoints[5]; member in GrCCGeometryBench
DCubicKLMBench.cpp17 fPoints[0].set(x0, y0); in CubicKLMBench()
18 fPoints[1].set(x1, y1); in CubicKLMBench()
19 fPoints[2].set(x2, y2); in CubicKLMBench()
20 fPoints[3].set(x3, y3); in CubicKLMBench()
23 switch (SkClassifyCubic(fPoints)) { in CubicKLMBench()
49 GrPathUtils::chopCubicAtLoopIntersection(fPoints, dst, &klm, &loopIdx); in onDraw()
54 SkPoint fPoints[4]; member in CubicKLMBench
/external/skqp/bench/
DGrCCFillGeometryBench.cpp19 fPoints[0].set(x0, y0); in GrCCGeometryBench()
20 fPoints[1].set(x1, y1); in GrCCGeometryBench()
21 fPoints[2].set(x2, y2); in GrCCGeometryBench()
22 fPoints[3].set(x3, y3); in GrCCGeometryBench()
23 fPoints[4].set(x0, y0); // Flat closing edge. in GrCCGeometryBench()
26 switch (SkClassifyCubic(fPoints)) { in GrCCGeometryBench()
51 fGeometry.beginContour(fPoints[0]); in onDraw()
53 fGeometry.cubicTo(fPoints); in onDraw()
54 fGeometry.lineTo(fPoints+3); in onDraw()
62 SkPoint fPoints[5]; member in GrCCGeometryBench
DCubicKLMBench.cpp17 fPoints[0].set(x0, y0); in CubicKLMBench()
18 fPoints[1].set(x1, y1); in CubicKLMBench()
19 fPoints[2].set(x2, y2); in CubicKLMBench()
20 fPoints[3].set(x3, y3); in CubicKLMBench()
23 switch (SkClassifyCubic(fPoints)) { in CubicKLMBench()
49 GrPathUtils::chopCubicAtLoopIntersection(fPoints, dst, &klm, &loopIdx); in onDraw()
54 SkPoint fPoints[4]; member in CubicKLMBench
/external/skqp/include/private/
DSkPathRef.h268 const SkPoint* points() const { return fPoints; } in points()
351 fPoints = nullptr; in SkPathRef()
419 sk_free(fPoints);
420 fPoints = nullptr;
486 fPoints = reinterpret_cast<SkPoint*>(sk_realloc_throw(fPoints, newSize));
488 void* newVerbsDst = SkTAddOffset<void>(fPoints, newSize - oldVerbSize);
489 void* oldVerbsSrc = SkTAddOffset<void>(fPoints, oldSize - oldVerbSize);
491 fVerbs = SkTAddOffset<uint8_t>(fPoints, newSize);
508 return reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(fPoints); in currSize()
533 return fPoints; in getPoints()
[all …]
/external/skia/include/private/
DSkPathRef.h268 const SkPoint* points() const { return fPoints; } in points()
351 fPoints = nullptr; in SkPathRef()
420 sk_free(fPoints);
421 fPoints = nullptr;
487 fPoints = reinterpret_cast<SkPoint*>(sk_realloc_throw(fPoints, newSize));
489 void* newVerbsDst = SkTAddOffset<void>(fPoints, newSize - oldVerbSize);
490 void* oldVerbsSrc = SkTAddOffset<void>(fPoints, oldSize - oldVerbSize);
492 fVerbs = SkTAddOffset<uint8_t>(fPoints, newSize);
509 return reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(fPoints); in currSize()
534 return fPoints; in getPoints()
[all …]
/external/skia/src/gpu/ccpr/
DGrCCStrokeGeometry.cpp97 fCurrContourFirstPtIdx = fPoints.count(); in moveTo()
99 fPoints.push_back(pt); in moveTo()
109 Sk2f tan = Sk2f::Load(&pt) - Sk2f::Load(&fPoints.back()); in lineTo()
121 fPoints.push_back(pt); in lineTo()
228 p1.store(&fPoints.push_back()); in quadraticTo()
229 p2.store(&fPoints.push_back()); in quadraticTo()
383 p1.store(&fPoints.push_back()); in cubicTo()
384 p2.store(&fPoints.push_back()); in cubicTo()
385 p3.store(&fPoints.push_back()); in cubicTo()
513 SkASSERT(fPoints.count() > fCurrContourFirstPtIdx); in closeContour()
[all …]
DGrCCFillGeometry.cpp29 fPoints.push_back(pt); in beginContour()
38 SkASSERT(P[0] == fPoints.back()); in lineTo()
45 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendLine()
49 p1.store(&fPoints.push_back()); in appendLine()
138 SkASSERT(P[0] == fPoints.back()); in quadraticTo()
199 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendMonotonicQuadratic()
201 p1.store(&fPoints.push_back()); in appendMonotonicQuadratic()
202 p2.store(&fPoints.push_back()); in appendMonotonicQuadratic()
466 SkASSERT(P[0] == fPoints.back()); in cubicTo()
619 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendCubics()
[all …]
DGrCCFillGeometry.h53 : fPoints(numSkPoints * 3) // Reserve for a 3x expansion in points and verbs.
57 const SkTArray<SkPoint, true>& points() const { SkASSERT(!fBuildingContour); return fPoints; } in points()
63 fPoints.reset(); in reset()
116 SkSTArray<128, SkPoint, true> fPoints; variable
DGrCCStrokeGeometry.h30 , fPoints(numSkPoints * 5/4) // Reserve for a 1.25x expansion in points and normals.
77 const SkTArray<SkPoint, true>& points() const { SkASSERT(!fInsideContour); return fPoints; } in points()
145 SkSTArray<128, SkPoint, true> fPoints; variable
/external/skqp/src/gpu/ccpr/
DGrCCStrokeGeometry.cpp97 fCurrContourFirstPtIdx = fPoints.count(); in moveTo()
99 fPoints.push_back(pt); in moveTo()
109 Sk2f tan = Sk2f::Load(&pt) - Sk2f::Load(&fPoints.back()); in lineTo()
121 fPoints.push_back(pt); in lineTo()
228 p1.store(&fPoints.push_back()); in quadraticTo()
229 p2.store(&fPoints.push_back()); in quadraticTo()
383 p1.store(&fPoints.push_back()); in cubicTo()
384 p2.store(&fPoints.push_back()); in cubicTo()
385 p3.store(&fPoints.push_back()); in cubicTo()
513 SkASSERT(fPoints.count() > fCurrContourFirstPtIdx); in closeContour()
[all …]
DGrCCFillGeometry.cpp29 fPoints.push_back(pt); in beginContour()
38 SkASSERT(P[0] == fPoints.back()); in lineTo()
45 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendLine()
49 p1.store(&fPoints.push_back()); in appendLine()
138 SkASSERT(P[0] == fPoints.back()); in quadraticTo()
199 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendMonotonicQuadratic()
201 p1.store(&fPoints.push_back()); in appendMonotonicQuadratic()
202 p2.store(&fPoints.push_back()); in appendMonotonicQuadratic()
466 SkASSERT(P[0] == fPoints.back()); in cubicTo()
619 SkASSERT(fPoints.back() == SkPoint::Make(p0[0], p0[1])); in appendCubics()
[all …]
DGrCCFillGeometry.h53 : fPoints(numSkPoints * 3) // Reserve for a 3x expansion in points and verbs.
57 const SkTArray<SkPoint, true>& points() const { SkASSERT(!fBuildingContour); return fPoints; } in points()
63 fPoints.reset(); in reset()
116 SkSTArray<128, SkPoint, true> fPoints; variable
DGrCCStrokeGeometry.h30 , fPoints(numSkPoints * 5/4) // Reserve for a 1.25x expansion in points and normals.
77 const SkTArray<SkPoint, true>& points() const { SkASSERT(!fInsideContour); return fPoints; } in points()
145 SkSTArray<128, SkPoint, true> fPoints; variable
/external/skqp/src/core/
DSkPathRef.cpp73 sk_careful_memcpy(newAlloc, fPathRef->fPoints, ptsSize); in shrinkToFit()
76 sk_free(fPathRef->fPoints); in shrinkToFit()
77 fPathRef->fPoints = static_cast<SkPoint*>(newAlloc); in shrinkToFit()
97 sk_free(fPoints); in ~SkPathRef()
99 SkDEBUGCODE(fPoints = nullptr;) in ~SkPathRef()
205 matrix.mapPoints((*dst)->fPoints, src.points(), src.fPointCnt); in CreateTransformedCopy()
363 !buffer->read(ref->fPoints, pointSize) || in CreateFromBuffer()
487 buffer->write(fPoints, fPointCnt * sizeof(SkPoint)); in writeToBuffer()
509 sk_careful_memcpy(this->fPoints, ref.fPoints, ref.fPointCnt * sizeof(SkPoint)); in copy()
596 SkPoint* ret = fPoints + fPointCnt; in growForRepeatedVerb()
[all …]
DSkEdgeClipper.cpp49 fCurrPoint = fPoints; in clipLine()
60 fCurrPoint = fPoints; in clipLine()
220 fCurrPoint = fPoints; in clipQuad()
235 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipQuad()
241 fCurrPoint = fPoints; in clipQuad()
416 fCurrPoint = fPoints; in clipCubic()
439 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipCubic()
446 fCurrPoint = fPoints; in clipCubic()
/external/skia/src/core/
DSkPathRef.cpp73 sk_careful_memcpy(newAlloc, fPathRef->fPoints, ptsSize); in shrinkToFit()
76 sk_free(fPathRef->fPoints); in shrinkToFit()
77 fPathRef->fPoints = static_cast<SkPoint*>(newAlloc); in shrinkToFit()
97 sk_free(fPoints); in ~SkPathRef()
99 SkDEBUGCODE(fPoints = nullptr;) in ~SkPathRef()
205 matrix.mapPoints((*dst)->fPoints, src.points(), src.fPointCnt); in CreateTransformedCopy()
368 !buffer->read(ref->fPoints, pointSize) || in CreateFromBuffer()
492 buffer->write(fPoints, fPointCnt * sizeof(SkPoint)); in writeToBuffer()
514 sk_careful_memcpy(this->fPoints, ref.fPoints, ref.fPointCnt * sizeof(SkPoint)); in copy()
601 SkPoint* ret = fPoints + fPointCnt; in growForRepeatedVerb()
[all …]
DSkEdgeClipper.cpp49 fCurrPoint = fPoints; in clipLine()
60 fCurrPoint = fPoints; in clipLine()
220 fCurrPoint = fPoints; in clipQuad()
235 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipQuad()
241 fCurrPoint = fPoints; in clipQuad()
416 fCurrPoint = fPoints; in clipCubic()
439 SkASSERT(fCurrPoint - fPoints <= kMaxPoints); in clipCubic()
446 fCurrPoint = fPoints; in clipCubic()
/external/dng_sdk/source/
Ddng_gain_map.cpp258 : fPoints (points) in dng_gain_map()
270 ComputeBufferSize (ttFloat, fPoints, fPlanes, pad16Bytes))); in dng_gain_map()
297 return 44 + fPoints.v * fPoints.h * fPlanes * 4; in PutStreamSize()
306 stream.Put_uint32 (fPoints.v); in PutStream()
307 stream.Put_uint32 (fPoints.h); in PutStream()
317 for (int32 rowIndex = 0; rowIndex < fPoints.v; rowIndex++) in PutStream()
320 for (int32 colIndex = 0; colIndex < fPoints.h; colIndex++) in PutStream()
/external/skqp/gm/
Dpolygons.cpp56 SkPoint* fPoints; in onOnceBeforeDraw() member
71 fPolygons.push_back().moveTo(pgs[pgIndex].fPoints[0].fX, in onOnceBeforeDraw()
72 pgs[pgIndex].fPoints[0].fY); in onOnceBeforeDraw()
74 fPolygons.back().lineTo(pgs[pgIndex].fPoints[ptIndex].fX, in onOnceBeforeDraw()
75 pgs[pgIndex].fPoints[ptIndex].fY); in onOnceBeforeDraw()
/external/skia/gm/
Dpolygons.cpp56 SkPoint* fPoints; in onOnceBeforeDraw() member
71 fPolygons.push_back().moveTo(pgs[pgIndex].fPoints[0].fX, in onOnceBeforeDraw()
72 pgs[pgIndex].fPoints[0].fY); in onOnceBeforeDraw()
74 fPolygons.back().lineTo(pgs[pgIndex].fPoints[ptIndex].fX, in onOnceBeforeDraw()
75 pgs[pgIndex].fPoints[ptIndex].fY); in onOnceBeforeDraw()
/external/skqp/include/core/
DSkPathEffect.h78 , fPoints(nullptr) in PointData()
85 delete [] fPoints; in ~PointData()
100 SkPoint* fPoints; // the center point of each generated point variable
/external/skia/include/core/
DSkPathEffect.h78 , fPoints(nullptr) in PointData()
85 delete [] fPoints; in ~PointData()
100 SkPoint* fPoints; // the center point of each generated point variable

12