/third_party/skia/tools/viewer/ |
D | ImGuiLayer.h | 38 fPos = ImGui::GetCursorScreenPos(); 48 { fPos.x , fPos.y }, 49 { fPos.x + fSize.x, fPos.y }, 50 { fPos.x , fPos.y + fSize.y }, 51 { fPos.x + fSize.x, fPos.y + fSize.y }, 58 ImGui::SetCursorScreenPos(ImVec2(fPos.x, fPos.y + fSize.y)); in ~DragCanvas() 64 fDrawList->AddRectFilled(fPos, ImVec2(fPos.x + fSize.x, fPos.y + fSize.y), color); in fillColor() 79 center.set(SkTPin(io.MousePos.x, fPos.x, fPos.x + fSize.x), 80 SkTPin(io.MousePos.y, fPos.y, fPos.y + fSize.y)); 100 ImVec2 fPos; member
|
/third_party/flutter/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
|
/third_party/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 …]
|
/third_party/flutter/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 …]
|
/third_party/flutter/skia/gm/ |
D | animatedimageblurs.cpp | 86 , fPos { 0.0f, 0.0f } in Node() 95 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 96 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init() 110 fPos.fX += deltaTime * fSpeed * fDir.fX; in update() 111 fPos.fY += deltaTime * fSpeed * fDir.fY; in update() 112 if (fPos.fX >= kWidth || fPos.fX < 0.0f) { in update() 113 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update() 116 if (fPos.fY >= kHeight || fPos.fY < 0.0f) { in update() 117 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update() 125 const SkPoint& pos() const { return fPos; } in pos() [all …]
|
D | gradients_no_texture.cpp | 30 const SkScalar* fPos; member 45 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 52 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 59 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 71 data.fColors, data.fPos, data.fCount, tm); in Make2Radial() 82 data.fColors, data.fPos, in Make2Conical() 145 SkScalar* fPos; member 148 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos() 151 delete[] fPos; in ~ColorPos() 158 fPos = new SkScalar[count]; in construct() [all …]
|
/third_party/skia/gm/ |
D | animatedimageblurs.cpp | 87 , fPos { 0.0f, 0.0f } in Node() 96 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 97 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init() 111 fPos.fX += deltaTime * fSpeed * fDir.fX; in update() 112 fPos.fY += deltaTime * fSpeed * fDir.fY; in update() 113 if (fPos.fX >= kWidth || fPos.fX < 0.0f) { in update() 114 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update() 117 if (fPos.fY >= kHeight || fPos.fY < 0.0f) { in update() 118 fPos.fY = SkTPin<SkScalar>(fPos.fY, 0.0f, kHeight); in update() 126 const SkPoint& pos() const { return fPos; } in pos() [all …]
|
D | gradients_no_texture.cpp | 30 const SkScalar* fPos; member 45 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 52 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 59 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 71 data.fColors, data.fPos, data.fCount, tm); in Make2Radial() 82 data.fColors, data.fPos, in Make2Conical() 145 SkScalar* fPos; member 148 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos() 151 delete[] fPos; in ~ColorPos() 158 fPos = new SkScalar[count]; in construct() [all …]
|
/third_party/flutter/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 …]
|
/third_party/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 …]
|
/third_party/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 …]
|
/third_party/flutter/skia/third_party/externals/icu/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 …]
|
/third_party/skia/third_party/externals/icu/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 …]
|
/third_party/node/deps/icu-small/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 …]
|
/third_party/flutter/skia/third_party/externals/icu/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 …]
|
/third_party/skia/third_party/externals/icu/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 …]
|
/third_party/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 …]
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 273 SkPoint fPos; member 296 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 302 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 308 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 314 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 320 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 326 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 332 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 338 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 352 (*verts)->fPos = center + SkPoint::Make(-s * r, -c * r); in fillInCircleVerts() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | ShadowRRectOp.cpp | 262 SkPoint fPos; member 285 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 291 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 297 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 303 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 309 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 315 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 321 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 327 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 341 (*verts)->fPos = center + SkPoint::Make(-s * r, -c * r); in fillInCircleVerts() [all …]
|
/third_party/flutter/skia/experimental/ffmpeg/ |
D | SkVideoEncoder.cpp | 20 size_t fPos = 0; member in SkRandomAccessWStream 25 size_t pos() const { return fPos; } in pos() 31 SkASSERT(fPos <= len); in write() 33 size_t overwrite = std::min(len - fPos, bytes); in write() 35 …SkDebugf("overwrite %zu bytes at %zu offset with %zu remaining\n", overwrite, fPos, bytes - overwr… in write() 36 memcpy(&fStorage[fPos], src, overwrite); in write() 37 fPos += overwrite; in write() 44 fPos += bytes; in write() 46 SkASSERT(fPos <= fStorage.size()); in write() 51 fPos = pos; in seek()
|