/external/skia/tools/viewer/ |
D | ImGuiLayer.h | 37 fPos = ImGui::GetCursorScreenPos(); 47 { fPos.x , fPos.y }, 48 { fPos.x + fSize.x, fPos.y }, 49 { fPos.x , fPos.y + fSize.y }, 50 { fPos.x + fSize.x, fPos.y + fSize.y }, 57 ImGui::SetCursorScreenPos(ImVec2(fPos.x, fPos.y + fSize.y)); in ~DragCanvas() 63 fDrawList->AddRectFilled(fPos, ImVec2(fPos.x + fSize.x, fPos.y + fSize.y), color); in fillColor() 78 center.set(SkTPin(io.MousePos.x, fPos.x, fPos.x + fSize.x), 79 SkTPin(io.MousePos.y, fPos.y, fPos.y + fSize.y)); 99 ImVec2 fPos; member
|
/external/skqp/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 24 , 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/utils/win/ |
D | SkDWriteFontFileStream.cpp | 24 , 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/skqp/gm/ |
D | animatedimageblurs.cpp | 78 , fPos { 0.0f, 0.0f } in Node() 87 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 88 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init() 103 fPos.fX += deltaTime * fSpeed * fDir.fX; in update() 104 fPos.fY += deltaTime * fSpeed * fDir.fY; in update() 105 if (fPos.fX >= kWidth || fPos.fX < 0.0f) { in update() 106 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update() 109 if (fPos.fY >= kHeight || fPos.fY < 0.0f) { in update() 110 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update() 118 const SkPoint& pos() const { return fPos; } in pos() [all …]
|
D | gradients_no_texture.cpp | 15 const SkScalar* fPos; member 30 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 37 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 44 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 56 data.fColors, data.fPos, data.fCount, tm); in Make2Radial() 67 data.fColors, data.fPos, in Make2Conical() 130 SkScalar* fPos; member 133 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos() 136 delete[] fPos; in ~ColorPos() 143 fPos = new SkScalar[count]; in construct() [all …]
|
D | gradients_2pt_conical.cpp | 16 const SkScalar* fPos; member 48 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside() 58 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideStrip() 69 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip() 81 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside() 94 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip() 105 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter() 116 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenterReversed() 129 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad() 142 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip() [all …]
|
/external/skia/gm/ |
D | animatedimageblurs.cpp | 78 , fPos { 0.0f, 0.0f } in Node() 87 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 88 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init() 103 fPos.fX += deltaTime * fSpeed * fDir.fX; in update() 104 fPos.fY += deltaTime * fSpeed * fDir.fY; in update() 105 if (fPos.fX >= kWidth || fPos.fX < 0.0f) { in update() 106 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update() 109 if (fPos.fY >= kHeight || fPos.fY < 0.0f) { in update() 110 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update() 118 const SkPoint& pos() const { return fPos; } in pos() [all …]
|
D | gradients_no_texture.cpp | 15 const SkScalar* fPos; member 30 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 37 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 44 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 56 data.fColors, data.fPos, data.fCount, tm); in Make2Radial() 67 data.fColors, data.fPos, in Make2Conical() 130 SkScalar* fPos; member 133 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos() 136 delete[] fPos; in ~ColorPos() 143 fPos = new SkScalar[count]; in construct() [all …]
|
D | gradients_2pt_conical.cpp | 16 const SkScalar* fPos; member 48 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside() 58 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideStrip() 69 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip() 81 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside() 94 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip() 105 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter() 116 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenterReversed() 129 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad() 142 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip() [all …]
|
/external/skqp/src/core/ |
D | SkBuffer.cpp | 16 const void* pos = fPos; in skip() 17 fPos += size; in skip() 33 intptr_t pos = reinterpret_cast<intptr_t>(fPos); in skipToAlign4() 36 fPos += n; in skipToAlign4() 47 void* result = fPos; in skip() 53 SkASSERT(fData == nullptr || fStop == nullptr || fPos + size <= fStop); in writeNoSizeCheck() 55 sk_careful_memcpy(fPos, buffer, size); in writeNoSizeCheck() 57 fPos += size; in writeNoSizeCheck() 66 char* p = fPos; in padToAlign4() 72 fPos += n; in padToAlign4()
|
D | SkBuffer.h | 27 SkRBuffer() : fData(nullptr), fPos(nullptr), fStop(nullptr) {} in SkRBuffer() 34 fPos = (const char*)data; in SkRBuffer() 41 size_t pos() const { return fPos - fData; } in pos() 50 bool eof() const { return fPos >= fStop; } in eof() 52 size_t available() const { return fStop - fPos; } in available() 74 const char* fPos; variable 89 SkWBuffer() : fData(nullptr), fPos(nullptr), fStop(nullptr) {} in SkWBuffer() 95 fPos = (char*)data; in reset() 102 fPos = (char*)data; in reset() 106 size_t pos() const { return fPos - fData; } in pos() [all …]
|
/external/skia/src/core/ |
D | SkBuffer.cpp | 16 const void* pos = fPos; in skip() 17 fPos += size; in skip() 33 intptr_t pos = reinterpret_cast<intptr_t>(fPos); in skipToAlign4() 36 fPos += n; in skipToAlign4() 47 void* result = fPos; in skip() 53 SkASSERT(fData == nullptr || fStop == nullptr || fPos + size <= fStop); in writeNoSizeCheck() 55 sk_careful_memcpy(fPos, buffer, size); in writeNoSizeCheck() 57 fPos += size; in writeNoSizeCheck() 66 char* p = fPos; in padToAlign4() 72 fPos += n; in padToAlign4()
|
D | SkBuffer.h | 27 SkRBuffer() : fData(nullptr), fPos(nullptr), fStop(nullptr) {} in SkRBuffer() 34 fPos = (const char*)data; in SkRBuffer() 41 size_t pos() const { return fPos - fData; } in pos() 50 bool eof() const { return fPos >= fStop; } in eof() 52 size_t available() const { return fStop - fPos; } in available() 74 const char* fPos; variable 89 SkWBuffer() : fData(nullptr), fPos(nullptr), fStop(nullptr) {} in SkWBuffer() 95 fPos = (char*)data; in reset() 102 fPos = (char*)data; in reset() 106 size_t pos() const { return fPos - fData; } in pos() [all …]
|
/external/icu/icu4c/source/io/ |
D | ustdio.cpp | 340 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 …]
|
D | uscanf_p.cpp | 450 len = (int32_t)(input->str.fLimit - input->str.fPos); in u_scanf_double_handler() 467 num = unum_parseDouble(format, input->str.fPos, len, &parsePos, &status); in u_scanf_double_handler() 483 input->str.fPos += parsePos; in u_scanf_double_handler() 521 len = (int32_t)(input->str.fLimit - input->str.fPos); in u_scanf_scientific_handler() 569 num = unum_parseDouble(format, input->str.fPos, len, &parsePos, &status); in u_scanf_scientific_handler() 585 input->str.fPos += parsePos; in u_scanf_scientific_handler() 627 len = (int32_t)(input->str.fLimit - input->str.fPos); in u_scanf_scidbl_handler() 646 scientificResult = unum_parseDouble(scientificFormat, input->str.fPos, len, in u_scanf_scidbl_handler() 649 genericResult = unum_parseDouble(genericFormat, input->str.fPos, len, in u_scanf_scidbl_handler() 665 input->str.fPos += parsePos; in u_scanf_scidbl_handler() [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | xmlparser.cpp | 336 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/ |
D | GrShadowRRectOp.cpp | 276 SkPoint fPos; member 299 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 305 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 311 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 317 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 323 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 329 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 335 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 341 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 355 (*verts)->fPos = center + SkPoint::Make(-s * r, -c * r); in fillInCircleVerts() [all …]
|
D | GrAAHairLinePathRenderer.cpp | 472 SkPoint fPos; member 477 SkPoint fPos; member 580 a0.fPos = a; in bloat_quad() 581 a0.fPos += abN; in bloat_quad() 582 a1.fPos = a; in bloat_quad() 583 a1.fPos -= abN; in bloat_quad() 588 c0.fPos = c; in bloat_quad() 589 c0.fPos += cbN; in bloat_quad() 590 c1.fPos = c; in bloat_quad() 591 c1.fPos -= cbN; in bloat_quad() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 275 SkPoint fPos; member 298 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 304 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 310 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 316 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 322 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 328 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 334 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 340 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 354 (*verts)->fPos = center + SkPoint::Make(-s * r, -c * r); in fillInCircleVerts() [all …]
|
D | GrAAHairLinePathRenderer.cpp | 473 SkPoint fPos; member 478 SkPoint fPos; member 581 a0.fPos = a; in bloat_quad() 582 a0.fPos += abN; in bloat_quad() 583 a1.fPos = a; in bloat_quad() 584 a1.fPos -= abN; in bloat_quad() 589 c0.fPos = c; in bloat_quad() 590 c0.fPos += cbN; in bloat_quad() 591 c1.fPos = c; in bloat_quad() 592 c1.fPos -= cbN; in bloat_quad() [all …]
|
/external/pdfium/xfa/fwl/ |
D | cfwl_listbox.cpp | 526 float fPos = in CalcSize() local 528 m_pVertScrollBar->SetPos(fPos); in CalcSize() 529 m_pVertScrollBar->SetTrackPos(fPos); in CalcSize() 558 float fPos = in CalcSize() local 560 m_pHorzScrollBar->SetPos(fPos); in CalcSize() 561 m_pHorzScrollBar->SetTrackPos(fPos); in CalcSize() 837 float fPos) { in OnScroll() argument 844 fPos = fs.width; in OnScroll() 848 fPos = fs.height; in OnScroll() 852 fPos -= fStep; in OnScroll() [all …]
|
/external/skia/src/gpu/ccpr/ |
D | GrCCFiller.cpp | 186 float ax = vertices[i].fPos.fX - vertices[i + 1].fPos.fX; in tessellateFan() 187 float ay = vertices[i].fPos.fY - vertices[i + 1].fPos.fY; in tessellateFan() 188 float bx = vertices[i].fPos.fX - vertices[i + 2].fPos.fX; in tessellateFan() 189 float by = vertices[i].fPos.fY - vertices[i + 2].fPos.fY; in tessellateFan() 192 std::swap(vertices[i + 1].fPos, vertices[i + 2].fPos); in tessellateFan() 275 triPointInstanceData[indices->fTriangles++].set(vertices[i].fPos, vertices[i + 1].fPos, in emit_tessellated_fan() 276 vertices[i + 2].fPos, devToAtlasOffset); in emit_tessellated_fan() 279 vertices[i].fPos, vertices[i+1].fPos, vertices[i + 2].fPos, devToAtlasOffset, in emit_tessellated_fan()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCFiller.cpp | 186 float ax = vertices[i].fPos.fX - vertices[i + 1].fPos.fX; in tessellateFan() 187 float ay = vertices[i].fPos.fY - vertices[i + 1].fPos.fY; in tessellateFan() 188 float bx = vertices[i].fPos.fX - vertices[i + 2].fPos.fX; in tessellateFan() 189 float by = vertices[i].fPos.fY - vertices[i + 2].fPos.fY; in tessellateFan() 192 std::swap(vertices[i + 1].fPos, vertices[i + 2].fPos); in tessellateFan() 275 triPointInstanceData[indices->fTriangles++].set(vertices[i].fPos, vertices[i + 1].fPos, in emit_tessellated_fan() 276 vertices[i + 2].fPos, devToAtlasOffset); in emit_tessellated_fan() 279 vertices[i].fPos, vertices[i+1].fPos, vertices[i + 2].fPos, devToAtlasOffset, in emit_tessellated_fan()
|
/external/skia/tests/ |
D | GradientTest.cpp | 45 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 256 rec.fPos = gTests[t].fPos; in TestGradientOptimization() 265 expected.fPos = gTests[t].fExpectedPos; in TestGradientOptimization() [all …]
|
/external/skqp/tests/ |
D | GradientTest.cpp | 45 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 256 rec.fPos = gTests[t].fPos; in TestGradientOptimization() 265 expected.fPos = gTests[t].fExpectedPos; in TestGradientOptimization() [all …]
|