Home
last modified time | relevance | path

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

123

/external/skia/src/utils/win/
DSkDWriteFontFileStream.cpp24 , fPos(0) in SkDWriteFontFileStream()
41 if (fPos + size > fileSize) { in read()
42 size_t skipped = fileSize - fPos; in read()
43 fPos = fileSize; in read()
46 fPos += size; in read()
53 hr = fFontFileStream->ReadFileFragment(&start, fPos, size, &fragmentLock); in read()
57 fPos += size; in read()
63 if (fPos + size <= fileSize) { in read()
68 size_t read = fileSize - fPos; in read()
69 hr = fFontFileStream->ReadFileFragment(&start, fPos, read, &fragmentLock); in read()
[all …]
/external/skia/src/core/
DSkBuffer.cpp17 memcpy(buffer, fPos, size); in read()
19 fPos += size; in read()
28 intptr_t pos = reinterpret_cast<intptr_t>(fPos); in skipToAlign4()
31 fPos += n; in skipToAlign4()
42 void* result = fPos; in skip()
48 SkASSERT(fData == 0 || fStop == 0 || fPos + size <= fStop); in writeNoSizeCheck()
50 memcpy(fPos, buffer, size); in writeNoSizeCheck()
51 fPos += size; in writeNoSizeCheck()
60 char* p = fPos; in padToAlign4()
66 fPos += n; in padToAlign4()
DSkBuffer.h24 SkRBuffer() : fData(0), fPos(0), fStop(0) {} in SkRBuffer()
31 fPos = (const char*)data; in SkRBuffer()
38 size_t pos() const { return fPos - fData; } in pos()
47 bool eof() const { return fPos >= fStop; } in eof()
49 size_t available() const { return fStop - fPos; } in available()
65 const char* fPos; variable
80 SkWBuffer() : fData(0), fPos(0), fStop(0) {} in SkWBuffer()
86 fPos = (char*)data; in reset()
93 fPos = (char*)data; in reset()
97 size_t pos() const { return fPos - fData; } in pos()
[all …]
DSkDeque.cpp240 SkDeque::Iter::Iter() : fCurBlock(nullptr), fPos(nullptr), fElemSize(0) {} in Iter()
249 char* pos = fPos; in next()
260 fPos = next; in next()
268 char* pos = fPos; in prev()
279 fPos = prev; in prev()
298 fPos = fCurBlock ? fCurBlock->fBegin : nullptr; in reset()
305 fPos = fCurBlock ? fCurBlock->fEnd - fElemSize : nullptr; in reset()
/external/skia/gm/
Danimatedimageblurs.cpp79 , fPos { 0.0f, 0.0f } in Node()
88 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init()
89 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init()
104 fPos.fX += deltaTime * fSpeed * fDir.fX; in update()
105 fPos.fY += deltaTime * fSpeed * fDir.fY; in update()
106 if (fPos.fX >= kWidth || fPos.fX < 0.0f) { in update()
107 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update()
110 if (fPos.fY >= kHeight || fPos.fY < 0.0f) { in update()
111 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update()
119 const SkPoint& pos() const { return fPos; } in pos()
[all …]
Dgradients_no_texture.cpp16 const SkScalar* fPos; member
31 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
38 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial()
45 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
57 data.fColors, data.fPos, data.fCount, tm); in Make2Radial()
68 data.fColors, data.fPos, in Make2Conical()
131 SkScalar* fPos; member
134 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos()
137 delete[] fPos; in ~ColorPos()
144 fPos = new SkScalar[count]; in construct()
[all …]
Dgradients_2pt_conical.cpp17 const SkScalar* fPos; member
49 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside()
60 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip()
72 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside()
85 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip()
98 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter()
111 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad()
124 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip()
136 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadCenter()
149 data.fColors, data.fPos, in Make2ConicalZeroRadOutside()
[all …]
DgradientDirtyLaundry.cpp16 const SkScalar* fPos; member
39 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
44 return SkGradientShader::MakeRadial(pt, pt.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial()
49 return SkGradientShader::MakeSweep(pt.fX, pt.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
/external/icu/icu4c/source/io/
Dustdio.c340 int32_t charsLeft = (int32_t)(f->str.fLimit - f->str.fPos); in u_file_write_flush()
345 u_strncpy(f->str.fPos, mySource, written); in u_file_write_flush()
346 f->str.fPos += written; in u_file_write_flush()
425 dataSize = (int32_t)(str->fLimit - str->fPos); in ufile_fill_uchar_buffer()
433 u_memmove(f->fUCBuffer, str->fPos, dataSize); /* not accessing beyond memory */ in ufile_fill_uchar_buffer()
482 str->fPos = str->fBuffer; in ufile_fill_uchar_buffer()
506 if (str->fPos >= str->fLimit) { in u_fgets()
514 dataSize = (int32_t)(str->fLimit - str->fPos); in u_fgets()
525 alias = str->fPos; in u_fgets()
569 str->fPos = alias; in u_fgets()
[all …]
Duscanf_p.c438 len = (int32_t)(input->str.fLimit - input->str.fPos); in u_scanf_double_handler()
455 num = unum_parseDouble(format, input->str.fPos, len, &parsePos, &status); in u_scanf_double_handler()
471 input->str.fPos += parsePos; in u_scanf_double_handler()
506 len = (int32_t)(input->str.fLimit - input->str.fPos); in u_scanf_scientific_handler()
554 num = unum_parseDouble(format, input->str.fPos, len, &parsePos, &status); in u_scanf_scientific_handler()
570 input->str.fPos += parsePos; in u_scanf_scientific_handler()
609 len = (int32_t)(input->str.fLimit - input->str.fPos); in u_scanf_scidbl_handler()
628 scientificResult = unum_parseDouble(scientificFormat, input->str.fPos, len, in u_scanf_scidbl_handler()
631 genericResult = unum_parseDouble(genericFormat, input->str.fPos, len, in u_scanf_scidbl_handler()
647 input->str.fPos += parsePos; in u_scanf_scidbl_handler()
[all …]
Dufile.c96 result->str.fPos = result->fUCBuffer; in finit_owner()
215 result->str.fPos = stringBuf; in u_fstropen()
237 endOfBuffer = (UBool)(f->str.fPos >= f->str.fLimit); in u_feof()
252 else if (file->str.fPos < file->str.fLimit) { in u_fflush()
253 *(file->str.fPos++) = 0; in u_fflush()
266 file->str.fPos = file->fUCBuffer; in u_frewind()
269 file->str.fPos = file->str.fBuffer; in u_frewind()
339 if ((file->str.fPos == file->str.fBuffer) && (file->str.fLimit == file->str.fBuffer)) { in u_fsetcodepage()
/external/skia/src/shaders/gradients/
DSkLinearGradient.cpp55 return SkGradientShader::MakeLinear(pts, desc.fColors, std::move(desc.fColorSpace), desc.fPos, in CreateProc()
119 rec[0].fPos = 0; in LinearGradientContext()
122 rec[i].fPos = SkTPin(shader.fOrigPos[i], rec[i - 1].fPos, 1.0f); in LinearGradientContext()
123 float diff = rec[i].fPos - rec[i - 1].fPos; in LinearGradientContext()
135 rec[i].fPos = i * invScale; in LinearGradientContext()
139 rec[count - 1].fPos = 1; // overwrite the last value just to be sure we end at 1.0 in LinearGradientContext()
158 SkASSERT(rec[i - 1].fPos <= rec[i].fPos); in LinearGradientContext()
170 SkASSERT(rec[i - 1].fPos <= rec[i].fPos); in LinearGradientContext()
484 SkASSERT(rec[0].fPos >= 0 && rec[0].fPos <= 1); in find_forward()
485 SkASSERT(rec[1].fPos >= 0 && rec[1].fPos <= 1); in find_forward()
[all …]
DSkGradientShader.cpp40 if (fPos) { in flatten()
61 if (fPos) { in flatten()
62 buffer.writeScalarArray(fPos, fCount); in flatten()
81 fPos = (SkScalar*)(fColors + fCount); in unflatten()
84 fPos = fPosStorage; in unflatten()
100 fPos = nullptr; in unflatten()
142 if (desc.fPos) { in SkGradientShaderBase()
143 dummyFirst = desc.fPos[0] != 0; in SkGradientShaderBase()
144 dummyLast = desc.fPos[desc.fCount - 1] != SK_Scalar1; in SkGradientShaderBase()
150 if (desc.fPos) { in SkGradientShaderBase()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Dxmlparser.cpp336 fPos = 0; // TODO use just a local pos variable and pass it into functions in parse()
355 if (mXMLDecl.lookingAt(fPos, status)) { in parse()
356 fPos = mXMLDecl.end(status); in parse()
363 if (mXMLDoctype.lookingAt(fPos, status)) { in parse()
364 fPos = mXMLDoctype.end(status); in parse()
371 if (mXMLElemEmpty.lookingAt(fPos, status)) { in parse()
374 fPos = mXMLElemEmpty.end(status); in parse()
376 if (mXMLElemStart.lookingAt(fPos, status) == FALSE) { in parse()
392 if (mXMLElemStart.lookingAt(fPos, status)) { in parse()
417 if (mXMLComment.lookingAt(fPos, status)) { in parse()
[all …]
/external/skia/src/gpu/ops/
DGrShadowRRectOp.cpp275 SkPoint fPos; member
300 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
307 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
314 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
321 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
328 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
335 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
342 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
349 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
364 (*verts)->fPos = center + SkPoint::Make(-s * r, -c * r); in fillInCircleVerts()
[all …]
DGrAAHairLinePathRenderer.cpp472 SkPoint fPos; member
477 SkPoint fPos; member
569 a0.fPos = a; in bloat_quad()
570 a0.fPos += abN; in bloat_quad()
571 a1.fPos = a; in bloat_quad()
572 a1.fPos -= abN; in bloat_quad()
574 c0.fPos = c; in bloat_quad()
575 c0.fPos += cbN; in bloat_quad()
576 c1.fPos = c; in bloat_quad()
577 c1.fPos -= cbN; in bloat_quad()
[all …]
DGrAAConvexPathRenderer.cpp336 SkPoint fPos; member
385 verts[*v + 0].fPos = sega.endPt(); in create_vertices()
386 verts[*v + 1].fPos = verts[*v + 0].fPos + sega.endNorm(); in create_vertices()
387 verts[*v + 2].fPos = verts[*v + 0].fPos + segb.fMid; in create_vertices()
388 verts[*v + 3].fPos = verts[*v + 0].fPos + segb.fNorms[0]; in create_vertices()
413 verts[*v + 0].fPos = fanPt; in create_vertices()
414 verts[*v + 1].fPos = sega.endPt(); in create_vertices()
415 verts[*v + 2].fPos = segb.fPts[0]; in create_vertices()
417 verts[*v + 3].fPos = verts[*v + 1].fPos + segb.fNorms[0]; in create_vertices()
418 verts[*v + 4].fPos = verts[*v + 2].fPos + segb.fNorms[0]; in create_vertices()
[all …]
DGrOvalOpFactory.cpp31 SkPoint fPos; member
39 SkPoint fPos; member
823 SkPoint fPos; in onPrepareDraws() member
878 v0->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in onPrepareDraws()
884 v1->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in onPrepareDraws()
890 v2->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in onPrepareDraws()
896 v3->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in onPrepareDraws()
902 v4->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in onPrepareDraws()
908 v5->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in onPrepareDraws()
914 v6->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in onPrepareDraws()
[all …]
/external/pdfium/xfa/fwl/
Dcfwl_listbox.cpp530 FX_FLOAT fPos = in CalcSize() local
532 m_pVertScrollBar->SetPos(fPos); in CalcSize()
533 m_pVertScrollBar->SetTrackPos(fPos); in CalcSize()
562 FX_FLOAT fPos = in CalcSize() local
564 m_pHorzScrollBar->SetPos(fPos); in CalcSize()
565 m_pHorzScrollBar->SetTrackPos(fPos); in CalcSize()
841 FX_FLOAT fPos) { in OnScroll() argument
848 fPos = fs.width; in OnScroll()
852 fPos = fs.height; in OnScroll()
856 fPos -= fStep; in OnScroll()
[all …]
Dcfwl_edit.cpp845 FX_FLOAT fPos = std::min(std::max(m_fScrollOffsetX, 0.0f), fRange); in UpdateScroll() local
846 m_pHorzScrollBar->SetPos(fPos); in UpdateScroll()
847 m_pHorzScrollBar->SetTrackPos(fPos); in UpdateScroll()
872 FX_FLOAT fPos = std::min(std::max(m_fScrollOffsetY, 0.0f), fRange); in UpdateScroll() local
873 m_pVertScrollBar->SetPos(fPos); in UpdateScroll()
874 m_pVertScrollBar->SetTrackPos(fPos); in UpdateScroll()
1487 FX_FLOAT fPos) { in OnScroll() argument
1494 fPos = fs.width; in OnScroll()
1498 fPos = fs.height; in OnScroll()
1502 fPos -= fStep; in OnScroll()
[all …]
Dcfwl_scrollbar.h53 void SetPos(FX_FLOAT fPos) { m_fPos = fPos; } in SetPos() argument
90 bool OnScroll(CFWL_EventScroll::Code dwCode, FX_FLOAT fPos);
96 bool DoScroll(CFWL_EventScroll::Code dwCode, FX_FLOAT fPos);
/external/skia/tests/
DGradientTest.cpp45 const SkScalar* fPos; member
65 !memcmp(info->fColorOffsets, fPos, fColorCount * sizeof(SkScalar))); in gradCheck()
89 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
100 buildRec.fColors, buildRec.fPos, in radial_gradproc()
112 buildRec.fColors, buildRec.fPos, in sweep_gradproc()
127 buildRec.fPos, in conical_gradproc()
173 rec.fPos = gPos; in TestGradientShaders()
221 const SkScalar* fPos; in TestGradientOptimization() member
252 rec.fPos = gTests[t].fPos; in TestGradientOptimization()
261 expected.fPos = gTests[t].fExpectedPos; in TestGradientOptimization()
[all …]
/external/skia/bench/
DTextBench.cpp51 SkPoint* fPos; member in TextBench
59 , fPos(nullptr) { in TextBench()
67 delete[] fPos; in ~TextBench()
81 fPos = new SkPoint[len]; in onDelayedSetup()
84 fPos[i].set(x, SkIntToScalar(50)); in onDelayedSetup()
139 canvas->drawPosText(fText.c_str(), fText.size(), fPos, paint); in onDraw()
DGradientBench.cpp19 const SkScalar* fPos; member
52 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
61 data.fPos, data.fCount, tm); in MakeRadial()
70 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
83 data.fColors, data.fPos, data.fCount, tm); in MakeConical()
96 data.fColors, data.fPos, data.fCount, tm); in MakeConicalZeroRad()
109 data.fColors, data.fPos, in MakeConicalOutside()
123 data.fColors, data.fPos, in MakeConicalOutsideZeroRad()
/external/skia/samplecode/
DSampleGradients.cpp45 const SkScalar* fPos; member
66 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
74 data.fPos, data.fCount, tm); in MakeRadial()
81 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
93 data.fColors, data.fPos, data.fCount, tm); in Make2Conical()
104 data.fColors, data.fPos, data.fCount, tm); in Make2ConicalConcentric()

123