Home
last modified time | relevance | path

Searched refs:fOffset (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/external/skqp/src/utils/
DSkFrontBufferedStream.cpp36 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 …]
/external/skia/client_utils/android/
DFrontBufferedStream.cpp43 size_t fOffset; member in __anon027e42c60111::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 …]
/external/skqp/src/core/
DSkStream.cpp159 , 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 …]
DSkMask.h150 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/skia/src/gpu/dawn/
DGrDawnRingBuffer.h22 : 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
DGrDawnRingBuffer.cpp25 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()
/external/skqp/src/sksl/
DSkSLLexer.cpp1061 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()
DSkSLIRGenerator.cpp179 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/skqp/src/gpu/
DGrXferProcessor.h58 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/core/
DSkMask.h152 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 …]
DSkStream.cpp279 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 …]
/external/skqp/src/pdf/
DSkJpegInfo.cpp20 , 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 __anon4bd005a70111::JpegSegment
66 if (fOffset + 2 > fSize) { in readBigendianUint16()
69 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16()
70 fOffset += 2; in readBigendianUint16()
/external/skia/src/pdf/
DSkJpegInfo.cpp20 , 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 __anoncb5f76700111::JpegSegment
66 if (fOffset + 2 > fSize) { in readBigendianUint16()
69 *value = JpegSegment::GetBigendianUint16(&fData[fOffset]); in readBigendianUint16()
70 fOffset += 2; in readBigendianUint16()
/external/skia/src/sksl/ir/
DSkSLConstructorScalarCast.cpp19 return FloatLiteral::Make(expr.fOffset, (SKSL_FLOAT)value, &constructorType); in cast_scalar_literal()
22 return IntLiteral::Make(expr.fOffset, value, &constructorType); in cast_scalar_literal()
25 return BoolLiteral::Make(expr.fOffset, value != 0, &constructorType); in cast_scalar_literal()
31 return FloatLiteral::Make(expr.fOffset, value, &constructorType); in cast_scalar_literal()
34 return IntLiteral::Make(expr.fOffset, (SKSL_INT)value, &constructorType); in cast_scalar_literal()
37 return BoolLiteral::Make(expr.fOffset, value != 0.0f, &constructorType); in cast_scalar_literal()
43 return FloatLiteral::Make(expr.fOffset, value ? 1.0f : 0.0f, &constructorType); in cast_scalar_literal()
46 return IntLiteral::Make(expr.fOffset, value ? 1 : 0, &constructorType); in cast_scalar_literal()
49 return BoolLiteral::Make(expr.fOffset, value, &constructorType); in cast_scalar_literal()
DSkSLPrefixExpression.cpp30 return FloatLiteral::Make(operand->fOffset, in negate_operand()
36 return IntLiteral::Make(operand->fOffset, in negate_operand()
55 context, ctor.fOffset, ctor.type(), in negate_operand()
65 context, ctor.fOffset, ctor.type(), in negate_operand()
74 return ConstructorSplat::Make(context, ctor.fOffset, ctor.type(), in negate_operand()
84 context, ctor.fOffset, ctor.type(), in negate_operand()
111 return BoolLiteral::Make(operand->fOffset, !b.value(), &operand->type()); in logical_not_operand()
138 context.fErrors.error(base->fOffset, in Convert()
146 context.fErrors.error(base->fOffset, in Convert()
155 context.fErrors.error(base->fOffset, in Convert()
[all …]
/external/skia/src/gpu/
DGrXferProcessor.h68 DstProxyView() { fOffset.set(0, 0); } in GR_MAKE_BITFIELD_CLASS_OPS()
76 fOffset = other.fOffset; in GR_MAKE_BITFIELD_CLASS_OPS()
83 fOffset == that.fOffset && in GR_MAKE_BITFIELD_CLASS_OPS()
88 const SkIPoint& offset() const { return fOffset; } in GR_MAKE_BITFIELD_CLASS_OPS()
90 void setOffset(const SkIPoint& offset) { fOffset = offset; } in GR_MAKE_BITFIELD_CLASS_OPS()
91 void setOffset(int ox, int oy) { fOffset.set(ox, oy); } in GR_MAKE_BITFIELD_CLASS_OPS()
99 fOffset = {0, 0}; in GR_MAKE_BITFIELD_CLASS_OPS()
109 SkIPoint fOffset; in GR_MAKE_BITFIELD_CLASS_OPS() local
/external/skia/src/sksl/
DSkSLLexer.h108 Token() : fKind(Kind::TK_NONE), fOffset(-1), fLength(-1) {} in Token()
111 : fKind(kind), fOffset(offset), fLength(length) {} in Token()
114 int fOffset; member
123 fOffset = 0; in start()
128 int32_t getCheckpoint() const { return fOffset; } in getCheckpoint()
130 void rewindToCheckpoint(int32_t checkpoint) { fOffset = checkpoint; } in rewindToCheckpoint()
135 int32_t fOffset; variable
DSkSLIRGenerator.cpp121 this->errorReporter().error(stmt.fOffset, in detectVarDeclarationWithoutScope()
177 return Block::Make(statement.fOffset, std::move(statements), in convertStatement()
197 return Block::Make(block.fOffset, std::move(statements), fSymbolTable); in convertBlock()
206 return Block::MakeUnscoped(s.fOffset, std::move(decls)); in convertVarDeclarationStatement()
227 this->errorReporter().error(size->fOffset, "type 'void' may not be used in an array"); in convertArraySize()
232 size->fOffset, "opaque type '" + type.name() + "' may not be used in an array"); in convertArraySize()
236 this->errorReporter().error(size->fOffset, "array size must be an integer"); in convertArraySize()
241 this->errorReporter().error(size->fOffset, "array size must be positive"); in convertArraySize()
245 this->errorReporter().error(size->fOffset, "array size is too large"); in convertArraySize()
378 this->errorReporter().error(var->fOffset, "duplicate definition of 'sk_RTAdjust'"); in convertVarDeclaration()
[all …]
DSkSLLexer.cpp781 int32_t startOffset = fOffset; in next()
787 if (fOffset >= fLength) { in next()
793 uint8_t c = (uint8_t)fText[fOffset]; in next()
802 ++fOffset; in next()
805 return Token(kind, startOffset, fOffset - startOffset); in next()
DSkSLParser.cpp276 return StringFragment(fText.begin() + token.fOffset, token.fLength); in text()
280 this->error(token.fOffset, msg); in error()
318 return this->createNode(start.fOffset, ASTNode::Kind::kExtension, this->text(name)); in directive()
349 size_t startOffset = codeStart.fOffset; in section()
369 text.fLength = next.fOffset - startOffset; in section()
376 return this->createNode(start.fOffset, ASTNode::Kind::kSection, in section()
398 ASTNode::ID result = this->createNode(name.fOffset, ASTNode::Kind::kEnum, this->text(name)); in enumDeclaration()
410 result, this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
414 this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
430 this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
[all …]
/external/skqp/src/gpu/ops/
DGrShadowRRectOp.cpp277 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/gpu/ops/
DGrShadowRRectOp.cpp264 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 …]
/external/skqp/src/effects/imagefilters/
DSkOffsetImageFilter.cpp44 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/skia/gm/
Ddashcubics.cpp134 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
/external/skqp/gm/
Ddashcubics.cpp124 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

12345678910>>...12