/external/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 …]
|
D | SkShadowUtils.cpp | 86 SkVector fOffset; member 92 *translate = that.fOffset; in isCompatible() 105 *translate = fOffset; in makeVertices() 122 SkVector fOffset; member 139 *translate = that.fOffset; in isCompatible() 144 if (fOffset == that.fOffset) { in isCompatible() 170 *translate = fOffset; in makeVertices() 623 factory.fOffset.set(0, 0); in drawShadow() 625 factory.fOffset.fX = viewMatrix.getTranslateX(); in drawShadow() 626 factory.fOffset.fY = viewMatrix.getTranslateY(); in drawShadow() [all …]
|
/external/skqp/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 …]
|
D | SkShadowUtils.cpp | 85 SkVector fOffset; member 91 *translate = that.fOffset; in isCompatible() 104 *translate = fOffset; in makeVertices() 121 SkVector fOffset; member 138 *translate = that.fOffset; in isCompatible() 143 if (fOffset == that.fOffset) { in isCompatible() 169 *translate = fOffset; in makeVertices() 591 factory.fOffset.set(0, 0); in drawShadow() 593 factory.fOffset.fX = viewMatrix.getTranslateX(); in drawShadow() 594 factory.fOffset.fY = viewMatrix.getTranslateY(); in drawShadow() [all …]
|
/external/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 | 150 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {} 151 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {} 153 if (0 < fOffset ) { 154 --fOffset; 157 fOffset = 7; 162 if (fOffset < 7) { 163 ++fOffset; 166 fOffset = 0; 174 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; } 176 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset); [all …]
|
/external/skqp/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 | 150 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {} 151 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {} 153 if (0 < fOffset ) { 154 --fOffset; 157 fOffset = 7; 162 if (fOffset < 7) { 163 ++fOffset; 166 fOffset = 0; 174 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; } 176 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset); [all …]
|
/external/skqp/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() 104 SkIPoint fOffset; variable
|
/external/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() 104 SkIPoint fOffset; variable
|
/external/skqp/src/sksl/ |
D | SkSLLexer.cpp | 1061 int32_t startOffset = fOffset; in next() 1066 while (fOffset < fLength) { in next() 1067 if ((uint8_t)fText[fOffset] >= 127) { in next() 1068 ++fOffset; in next() 1071 int16_t newState = transitions[mappings[(int)fText[fOffset]]][state]; in next() 1076 ++fOffset; in next() 1079 return Token(kind, startOffset, fOffset - startOffset); in next()
|
D | SkSLIRGenerator.cpp | 179 return std::unique_ptr<Extension>(new Extension(extension.fOffset, extension.fName)); in convertExtension() 200 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() 263 fErrors.error(decl.fOffset, "'in' variables may not have matrix type"); in convertVarDeclarations() 269 fErrors.error(decl.fOffset, in convertVarDeclarations() 285 fErrors.error(size->fOffset, "array size must be positive"); in convertVarDeclarations() 301 auto var = std::unique_ptr<Variable>(new Variable(decl.fOffset, decl.fModifiers, in convertVarDeclarations() 336 return std::unique_ptr<VarDeclarations>(new VarDeclarations(decl.fOffset, in convertVarDeclarations() 390 return std::unique_ptr<Statement>(new Block(s.fOffset, std::move(empty), in convertIf() 394 return std::unique_ptr<Statement>(new IfStatement(s.fOffset, s.fIsStatic, std::move(test), in convertIf() [all …]
|
/external/skia/src/sksl/ |
D | SkSLLexer.cpp | 1009 int32_t startOffset = fOffset; in next() 1014 while (fOffset < fLength) { in next() 1015 if ((uint8_t)fText[fOffset] >= 127) { in next() 1016 ++fOffset; in next() 1019 int16_t newState = transitions[mappings[(int)fText[fOffset]]][state]; in next() 1024 ++fOffset; in next() 1027 return Token(kind, startOffset, fOffset - startOffset); in next()
|
D | SkSLIRGenerator.cpp | 182 return std::unique_ptr<Extension>(new Extension(extension.fOffset, extension.fName)); in convertExtension() 206 return std::unique_ptr<Block>(new Block(statement.fOffset, in convertStatement() 247 return std::unique_ptr<Block>(new Block(block.fOffset, std::move(statements), fSymbolTable)); in convertBlock() 269 fErrors.error(decl.fOffset, "'in' variables may not have matrix type"); in convertVarDeclarations() 275 fErrors.error(decl.fOffset, in convertVarDeclarations() 291 fErrors.error(size->fOffset, "array size must be positive"); in convertVarDeclarations() 307 auto var = std::unique_ptr<Variable>(new Variable(decl.fOffset, decl.fModifiers, in convertVarDeclarations() 342 return std::unique_ptr<VarDeclarations>(new VarDeclarations(decl.fOffset, in convertVarDeclarations() 396 return std::unique_ptr<Statement>(new Block(s.fOffset, std::move(empty), in convertIf() 400 return std::unique_ptr<Statement>(new IfStatement(s.fOffset, s.fIsStatic, std::move(test), in convertIf() [all …]
|
D | SkSLParser.cpp | 235 return StringFragment(fText + token.fOffset, token.fLength); in text() 239 this->error(token.fOffset, msg); in error() 280 return std::unique_ptr<ASTDeclaration>(new ASTExtension(start.fOffset, in directive() 335 return std::unique_ptr<ASTDeclaration>(new ASTSection(start.fOffset, in section() 397 return std::unique_ptr<ASTDeclaration>(new ASTEnum(name.fOffset, this->text(name), names, in enumDeclaration() 454 return std::unique_ptr<ASTDeclaration>(new ASTFunction(name.fOffset, in declaration() 501 this->error(decl->fOffset, "array size in struct field must be a constant"); in structDeclaration() 511 this->error(decl->fOffset, "initializers are not permitted on struct fields"); in structDeclaration() 518 fTypes.add(this->text(name), std::unique_ptr<Type>(new Type(name.fOffset, this->text(name), in structDeclaration() 520 return std::unique_ptr<ASTType>(new ASTType(name.fOffset, this->text(name), in structDeclaration() [all …]
|
/external/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 __anon7c7dc1d20111::JpegSegment 66 if (fOffset + 2 > fSize) { in readBigendianUint16() 69 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16() 70 fOffset += 2; in readBigendianUint16()
|
/external/skqp/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 __anonfcee51090111::JpegSegment 66 if (fOffset + 2 > fSize) { in readBigendianUint16() 69 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16() 70 fOffset += 2; in readBigendianUint16()
|
/external/skia/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 278 SkPoint fOffset; member 301 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); in fillInCircleVerts() 307 (*verts)->fOffset = SkPoint::Make(octOffset, -1); in fillInCircleVerts() 313 (*verts)->fOffset = SkPoint::Make(1, -octOffset); in fillInCircleVerts() 319 (*verts)->fOffset = SkPoint::Make(1, octOffset); in fillInCircleVerts() 325 (*verts)->fOffset = SkPoint::Make(octOffset, 1); in fillInCircleVerts() 331 (*verts)->fOffset = SkPoint::Make(-octOffset, 1); in fillInCircleVerts() 337 (*verts)->fOffset = SkPoint::Make(-1, octOffset); in fillInCircleVerts() 343 (*verts)->fOffset = SkPoint::Make(-1, -octOffset); in fillInCircleVerts() 357 (*verts)->fOffset = SkPoint::Make(-s * innerRadius, -c * innerRadius); in fillInCircleVerts() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 277 SkPoint fOffset; member 300 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); in fillInCircleVerts() 306 (*verts)->fOffset = SkPoint::Make(octOffset, -1); in fillInCircleVerts() 312 (*verts)->fOffset = SkPoint::Make(1, -octOffset); in fillInCircleVerts() 318 (*verts)->fOffset = SkPoint::Make(1, octOffset); in fillInCircleVerts() 324 (*verts)->fOffset = SkPoint::Make(octOffset, 1); in fillInCircleVerts() 330 (*verts)->fOffset = SkPoint::Make(-octOffset, 1); in fillInCircleVerts() 336 (*verts)->fOffset = SkPoint::Make(-1, octOffset); in fillInCircleVerts() 342 (*verts)->fOffset = SkPoint::Make(-1, -octOffset); in fillInCircleVerts() 356 (*verts)->fOffset = SkPoint::Make(-s * innerRadius, -c * innerRadius); in fillInCircleVerts() [all …]
|
/external/skia/src/effects/imagefilters/ |
D | SkOffsetImageFilter.cpp | 44 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage() 87 return SkOffsetImageFilter::Make(fOffset.fX, fOffset.fY, std::move(input), in onMakeColorSpace() 95 bounds.offset(fOffset.fX, fOffset.fY); in computeFastBounds() 101 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds() 118 buffer.writePoint(fOffset); in flatten() 125 fOffset.set(dx, dy); in SkOffsetImageFilter()
|
/external/skqp/src/effects/imagefilters/ |
D | SkOffsetImageFilter.cpp | 44 SkIPoint vec = map_offset_vector(ctx.ctm(), fOffset); in onFilterImage() 87 return SkOffsetImageFilter::Make(fOffset.fX, fOffset.fY, std::move(input), in onMakeColorSpace() 95 bounds.offset(fOffset.fX, fOffset.fY); in computeFastBounds() 101 SkIPoint vec = map_offset_vector(ctm, fOffset); in onFilterNodeBounds() 118 buffer.writePoint(fOffset); in flatten() 125 fOffset.set(dx, dy); in SkOffsetImageFilter()
|
/external/skqp/gm/ |
D | dashcubics.cpp | 124 auto start = offset[0] + fOffset, in onDraw() 125 stop = offset[1] + fOffset; in onDraw() 129 if (fOffset) { in onDraw() 157 fOffset = t.msec() / 2000.0f; in onAnimate() 158 fOffset -= floorf(fOffset); in onAnimate() 164 SkScalar fOffset = 0; member in TrimGM
|
/external/skia/gm/ |
D | dashcubics.cpp | 124 auto start = offset[0] + fOffset, in onDraw() 125 stop = offset[1] + fOffset; in onDraw() 129 if (fOffset) { in onDraw() 157 fOffset = t.msec() / 2000.0f; in onAnimate() 158 fOffset -= floorf(fOffset); in onAnimate() 164 SkScalar fOffset = 0; member in TrimGM
|
/external/skqp/src/effects/ |
D | SkLayerDrawLooper.cpp | 27 fOffset.set(0, 0); in LayerInfo() 155 postTranslate(canvas, fCurrRec->fInfo.fOffset.fX, in next() 156 fCurrRec->fInfo.fOffset.fY); in next() 158 canvas->translate(fCurrRec->fInfo.fOffset.fX, in next() 159 fCurrRec->fInfo.fOffset.fY); in next() 196 if (!rec->fInfo.fOffset.equals(0, 0)) { in asABlurShadow() 202 bsRec->fOffset = fRecs->fInfo.fOffset; in asABlurShadow() 253 buffer.writePoint(rec->fInfo.fOffset); in flatten() 271 buffer.readPoint(&info.fOffset); in CreateProc() 313 info.fOffset.set(dx, dy); in addLayer() [all …]
|
/external/skia/src/effects/ |
D | SkLayerDrawLooper.cpp | 27 fOffset.set(0, 0); in LayerInfo() 155 postTranslate(canvas, fCurrRec->fInfo.fOffset.fX, in next() 156 fCurrRec->fInfo.fOffset.fY); in next() 158 canvas->translate(fCurrRec->fInfo.fOffset.fX, in next() 159 fCurrRec->fInfo.fOffset.fY); in next() 196 if (!rec->fInfo.fOffset.equals(0, 0)) { in asABlurShadow() 202 bsRec->fOffset = fRecs->fInfo.fOffset; in asABlurShadow() 253 buffer.writePoint(rec->fInfo.fOffset); in flatten() 271 buffer.readPoint(&info.fOffset); in CreateProc() 313 info.fOffset.set(dx, dy); in addLayer() [all …]
|