/third_party/flutter/skia/src/utils/ |
D | SkFrontBufferedStream.cpp | 36 size_t fOffset; member in FrontBufferedStream 77 , fOffset(0) in FrontBufferedStream() 83 if (fOffset < fBufferedSoFar) { in isAtEnd() 94 if (fOffset <= fBufferSize) { in rewind() 95 fOffset = 0; in rewind() 102 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer() 106 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer() 108 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer() 113 fOffset += bytesToCopy; in readFromBuffer() 114 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer() [all …]
|
/third_party/skia/client_utils/android/ |
D | FrontBufferedStream.cpp | 43 size_t fOffset; member in __anonc0e9a16f0111::FrontBufferedStream 97 , fOffset(0) in FrontBufferedStream() 110 if (fOffset < fBufferedSoFar) { in isAtEnd() 121 if (fOffset <= fBufferSize) { in rewind() 122 fOffset = 0; in rewind() 129 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer() 133 const size_t bytesToCopy = std::min(size, fBufferedSoFar - fOffset); in readFromBuffer() 135 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer() 140 fOffset += bytesToCopy; in readFromBuffer() 141 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkStream.cpp | 159 , fOffset(SkTMin(offset, fSize)) in SkFILEStream() 185 fOffset = 0; in close() 189 if (size > fSize - fOffset) { in read() 190 size = fSize - fOffset; in read() 194 bytesRead = sk_qread(fFILE.get(), buffer, size, fOffset); in read() 199 fOffset += bytesRead; in read() 204 if (fOffset == fSize) { in isAtEnd() 207 return fOffset >= sk_fgetsize(fFILE.get()); in isAtEnd() 211 fOffset = fOriginalOffset; in rewind() 220 SkASSERT(fOffset >= fOriginalOffset); in getPosition() [all …]
|
D | SkMask.h | 152 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {} 153 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {} 155 if (0 < fOffset ) { 156 --fOffset; 159 fOffset = 7; 164 if (fOffset < 7) { 165 ++fOffset; 168 fOffset = 0; 176 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; } 178 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset); [all …]
|
/third_party/skia/src/gpu/ |
D | GrDstProxyView.h | 30 fOffset = other.fOffset; 37 fOffset == that.fOffset && 42 const SkIPoint& offset() const { return fOffset; } in offset() 44 void setOffset(const SkIPoint& offset) { fOffset = offset; } in setOffset() 45 void setOffset(int ox, int oy) { fOffset.set(ox, oy); } in setOffset() 53 fOffset = {0, 0}; in setProxyView() 63 SkIPoint fOffset = {0, 0}; variable
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnRingBuffer.h | 22 : fBuffer(buffer), fOffset(offset) {} in Slice() 24 : fBuffer(nullptr), fOffset(0) {} in Slice() 26 : fBuffer(other.fBuffer), fOffset(other.fOffset) {} in Slice() 29 fOffset = other.fOffset; 33 int fOffset; member 41 int fOffset = 0; variable
|
D | GrDawnRingBuffer.cpp | 25 if (!fBuffer || fOffset + size > kDefaultSize) { in allocate() 30 fOffset = 0; in allocate() 33 size_t offset = fOffset; in allocate() 34 fOffset += size; in allocate() 35 fOffset = GrDawnRoundRowBytes(fOffset); in allocate()
|
/third_party/skia/src/core/ |
D | SkStream.cpp | 279 fOffset = 0; in SkMemoryStream() 284 fOffset = 0; in SkMemoryStream() 289 fOffset = 0; in SkMemoryStream() 296 fOffset = 0; in SkMemoryStream() 313 fOffset = 0; in setMemoryOwned() 318 fOffset = 0; in setMemory() 327 fOffset = 0; in setData() 332 fOffset += -(int)fOffset & 0x03; in skipToAlign4() 338 if (size > dataSize - fOffset) { in read() 339 size = dataSize - fOffset; in read() [all …]
|
D | SkMask.h | 152 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {} 153 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {} 155 if (0 < fOffset ) { 156 --fOffset; 159 fOffset = 7; 164 if (fOffset < 7) { 165 ++fOffset; 168 fOffset = 0; 176 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; } 178 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset); [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrXferProcessor.h | 58 DstProxy() { fOffset.set(0, 0); } in DstProxy() 67 fOffset = offset; in DstProxy() 69 fOffset.set(0, 0); in DstProxy() 75 fOffset = other.fOffset; 80 return fProxy == that.fProxy && fOffset == that.fOffset; 84 const SkIPoint& offset() const { return fOffset; } in offset() 86 void setOffset(const SkIPoint& offset) { fOffset = offset; } in setOffset() 87 void setOffset(int ox, int oy) { fOffset.set(ox, oy); } in setOffset() 94 fOffset = {0, 0}; in setProxy() 100 SkIPoint fOffset; variable
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLIRGenerator.cpp | 220 return std::unique_ptr<Block>(new Block(statement.fOffset, in convertStatement() 241 return std::unique_ptr<Block>(new Block(block.fOffset, std::move(statements), fSymbolTable)); in convertBlock() 267 fErrors.error(decls.fOffset, "'in' variables may not have matrix type"); in convertVarDeclarations() 271 fErrors.error(decls.fOffset, "'when' is only permitted within fragment processors"); in convertVarDeclarations() 275 fErrors.error(decls.fOffset, "'key' is only permitted within fragment processors"); in convertVarDeclarations() 278 fErrors.error(decls.fOffset, "'key' is not permitted on 'uniform' variables"); in convertVarDeclarations() 286 fErrors.error(varDecl.fOffset, in convertVarDeclarations() 305 fErrors.error(size->fOffset, "array size must be positive"); in convertVarDeclarations() 327 auto var = std::unique_ptr<Variable>(new Variable(varDecl.fOffset, modifiers, in convertVarDeclarations() 363 return std::unique_ptr<VarDeclarations>(new VarDeclarations(decls.fOffset, in convertVarDeclarations() [all …]
|
D | SkSLParser.cpp | 237 return StringFragment(fText + token.fOffset, token.fLength); in text() 241 this->error(token.fOffset, msg); in error() 272 RETURN_NODE(start.fOffset, ASTNode::Kind::kExtension, this->text(name)); in directive() 303 size_t startOffset = codeStart.fOffset; in section() 323 text.fLength = next.fOffset - startOffset; in section() 330 RETURN_NODE(start.fOffset, ASTNode::Kind::kSection, in section() 353 CREATE_NODE(result, name.fOffset, ASTNode::Kind::kEnum, this->text(name)); in enumDeclaration() 364 CREATE_CHILD(child, result, id.fOffset, ASTNode::Kind::kEnumCase, this->text(id)); in enumDeclaration() 367 CREATE_CHILD(child, result, id.fOffset, ASTNode::Kind::kEnumCase, this->text(id)); in enumDeclaration() 381 CREATE_CHILD(child, result, id.fOffset, ASTNode::Kind::kEnumCase, this->text(id)); in enumDeclaration() [all …]
|
D | SkSLLexer.cpp | 1010 int32_t startOffset = fOffset; in next() 1016 if (fOffset >= fLength) { in next() 1022 uint8_t c = (uint8_t)fText[fOffset]; in next() 1031 ++fOffset; in next() 1034 return Token(kind, startOffset, fOffset - startOffset); in next()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 275 SkPoint fOffset; member 298 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); in fillInCircleVerts() 304 (*verts)->fOffset = SkPoint::Make(octOffset, -1); in fillInCircleVerts() 310 (*verts)->fOffset = SkPoint::Make(1, -octOffset); in fillInCircleVerts() 316 (*verts)->fOffset = SkPoint::Make(1, octOffset); in fillInCircleVerts() 322 (*verts)->fOffset = SkPoint::Make(octOffset, 1); in fillInCircleVerts() 328 (*verts)->fOffset = SkPoint::Make(-octOffset, 1); in fillInCircleVerts() 334 (*verts)->fOffset = SkPoint::Make(-1, octOffset); in fillInCircleVerts() 340 (*verts)->fOffset = SkPoint::Make(-1, -octOffset); in fillInCircleVerts() 354 (*verts)->fOffset = SkPoint::Make(-s * innerRadius, -c * innerRadius); in fillInCircleVerts() [all …]
|
/third_party/skia/src/sksl/ |
D | SkSLLexer.h | 112 : fKind(kind), fOffset(offset), fLength(length), fLine(line) {} in Token() 115 int32_t fOffset = -1; member 124 fOffset = 0; in start() 131 int32_t fOffset; member 135 Checkpoint getCheckpoint() const { return {fOffset, fLine}; } in getCheckpoint() 138 fOffset = checkpoint.fOffset; in rewindToCheckpoint() 144 int32_t fOffset; variable
|
/third_party/skia/src/pdf/ |
D | SkJpegInfo.cpp | 20 , fOffset(0) in JpegSegment() 35 if (fOffset + fLength > fSize) { in read() 38 fBuffer = &fData[fOffset]; in read() 39 fOffset += fLength; in read() 60 size_t fOffset; member in __anon284698590111::JpegSegment 66 if (fOffset + 2 > fSize) { in readBigendianUint16() 69 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16() 70 fOffset += 2; in readBigendianUint16()
|
/third_party/flutter/skia/src/pdf/ |
D | SkJpegInfo.cpp | 20 , fOffset(0) in JpegSegment() 35 if (fOffset + fLength > fSize) { in read() 38 fBuffer = &fData[fOffset]; in read() 39 fOffset += fLength; in read() 60 size_t fOffset; member in __anon957d43ce0111::JpegSegment 66 if (fOffset + 2 > fSize) { in readBigendianUint16() 69 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16() 70 fOffset += 2; in readBigendianUint16()
|
/third_party/skia/src/gpu/ops/ |
D | ShadowRRectOp.cpp | 264 SkPoint fOffset; member 287 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); in fillInCircleVerts() 293 (*verts)->fOffset = SkPoint::Make(octOffset, -1); in fillInCircleVerts() 299 (*verts)->fOffset = SkPoint::Make(1, -octOffset); in fillInCircleVerts() 305 (*verts)->fOffset = SkPoint::Make(1, octOffset); in fillInCircleVerts() 311 (*verts)->fOffset = SkPoint::Make(octOffset, 1); in fillInCircleVerts() 317 (*verts)->fOffset = SkPoint::Make(-octOffset, 1); in fillInCircleVerts() 323 (*verts)->fOffset = SkPoint::Make(-1, octOffset); in fillInCircleVerts() 329 (*verts)->fOffset = SkPoint::Make(-1, -octOffset); in fillInCircleVerts() 343 (*verts)->fOffset = SkPoint::Make(-s * innerRadius, -c * innerRadius); in fillInCircleVerts() [all …]
|
/third_party/skia/include/private/ |
D | SkSLLayout.h | 41 , fOffset(offset) in Layout() 51 , fOffset(-1) in Layout() 76 if (fOffset >= 0) { in description() 77 result += separator() + "offset = " + to_string(fOffset); in description() 115 fOffset == other.fOffset && 129 int fOffset; member
|
/third_party/skia/gm/ |
D | dashcubics.cpp | 134 auto start = offset[0] + fOffset, in onDraw() 135 stop = offset[1] + fOffset; in onDraw() 139 if (fOffset) { in onDraw() 167 fOffset = TimeUtils::NanosToMSec(nanos) / 2000.0f; in onAnimate() 168 fOffset -= floorf(fOffset); in onAnimate() 174 SkScalar fOffset = 0; member in TrimGM
|
/third_party/flutter/skia/gm/ |
D | dashcubics.cpp | 132 auto start = offset[0] + fOffset, in onDraw() 133 stop = offset[1] + fOffset; in onDraw() 137 if (fOffset) { in onDraw() 165 fOffset = TimeUtils::NanosToMSec(nanos) / 2000.0f; in onAnimate() 166 fOffset -= floorf(fOffset); in onAnimate() 172 SkScalar fOffset = 0; member in TrimGM
|
/third_party/flutter/skia/src/effects/imagefilters/ |
D | SkOffsetImageFilter.cpp | 27 fOffset.set(dx, dy); in SkOffsetImageFilterImpl() 42 SkVector fOffset; 77 buffer.writePoint(fOffset); in flatten() 93 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage() 133 bounds.offset(fOffset.fX, fOffset.fY); in computeFastBounds() 139 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkOffsetImageFilter.cpp | 26 fOffset.set(dx, dy); in SkOffsetImageFilter() 41 SkVector fOffset; 73 buffer.writePoint(fOffset); in flatten() 91 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage() 131 bounds.offset(fOffset.fX, fOffset.fY); in computeFastBounds() 137 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds()
|
/third_party/flutter/skia/modules/skparagraph/src/ |
D | TextShadow.cpp | 10 : fColor(color), fOffset(offset), fBlurRadius(blurRadius) {} in TextShadow() 14 if (fOffset != other.fOffset) return false; in operator ==() 23 if (!fOffset.isZero()) return true; in hasShadow()
|
/third_party/skia/modules/skparagraph/src/ |
D | TextShadow.cpp | 10 : fColor(color), fOffset(offset), fBlurSigma(blurSigma) {} in TextShadow() 14 if (fOffset != other.fOffset) return false; in operator ==() 23 if (!fOffset.isZero()) return true; in hasShadow()
|