Home
last modified time | relevance | path

Searched refs:fLine (Results 1 – 25 of 106) sorted by relevance

12345

/third_party/skia/src/pathops/
DSkDQuadLineIntersection.cpp99 , fLine(&l) in LineQuadraticIntersections()
107 SkDEBUGPARAMS(fLine(nullptr)) in LineQuadraticIntersections()
121 double t = fLine->nearPoint(quadMidPt, nullptr); in checkCoincident()
155 double adj = (*fLine)[1].fX - (*fLine)[0].fX; in intersectRay()
156 double opp = (*fLine)[1].fY - (*fLine)[0].fY; in intersectRay()
159 r[n] = (fQuad[n].fY - (*fLine)[0].fY) * adj - (fQuad[n].fX - (*fLine)[0].fX) * opp; in intersectRay()
280 double lineT = fLine->exactPoint(fQuad[qIndex]); in addExactEndPoints()
295 double lineT = fLine->nearPoint(fQuad[qIndex], nullptr); in addNearEndPoints()
311 (*fLine)[lIndex], (*fLine)[!lIndex]); in addLineNearEndPoints()
315 fIntersections->insert(quadT, lineT, (*fLine)[lIndex]); in addLineNearEndPoints()
[all …]
DSkDConicLineIntersection.cpp21 , fLine(&l) in LineConicIntersections()
29 SkDEBUGPARAMS(fLine(nullptr)) in LineConicIntersections()
43 double t = fLine->nearPoint(conicMidPt, nullptr); in checkCoincident()
111 SkDEBUGCODE(SkDPoint linePt = fLine->ptAtT(lineT)); in intersect()
126 double adj = (*fLine)[1].fX - (*fLine)[0].fX; in intersectRay()
127 double opp = (*fLine)[1].fY - (*fLine)[0].fY; in intersectRay()
130 r[n] = (fConic[n].fY - (*fLine)[0].fY) * adj - (fConic[n].fX - (*fLine)[0].fX) * opp; in intersectRay()
180 double lineT = fLine->exactPoint(fConic[cIndex]); in addExactEndPoints()
195 double lineT = fLine->nearPoint(fConic[cIndex], nullptr); in addNearEndPoints()
211 (*fLine)[lIndex], (*fLine)[!lIndex]); in addLineNearEndPoints()
[all …]
DSkDCubicLineIntersection.cpp87 , fLine(l) in LineCubicIntersections()
102 double t = fLine.nearPoint(cubicMidPt, nullptr); in checkCoincident()
122 double adj = fLine[1].fX - fLine[0].fX; in intersectRay()
123 double opp = fLine[1].fY - fLine[0].fY; in intersectRay()
127 c[n].fX = (fCubic[n].fY - fLine[0].fY) * adj - (fCubic[n].fX - fLine[0].fX) * opp; in intersectRay()
136 c[n].fY = (fCubic[n].fY - fLine[0].fY) * opp in intersectRay()
137 + (fCubic[n].fX - fLine[0].fX) * adj; in intersectRay()
273 double lineT = fLine.exactPoint(fCubic[cIndex]); in addExactEndPoints()
290 double lineT = fLine.nearPoint(fCubic[cIndex], nullptr); in addNearEndPoints()
306 fLine[lIndex], fLine[!lIndex]); in addLineNearEndPoints()
[all …]
/third_party/flutter/skia/src/pathops/
DSkDQuadLineIntersection.cpp99 , fLine(&l) in LineQuadraticIntersections()
107 SkDEBUGPARAMS(fLine(nullptr)) in LineQuadraticIntersections()
121 double t = fLine->nearPoint(quadMidPt, nullptr); in checkCoincident()
155 double adj = (*fLine)[1].fX - (*fLine)[0].fX; in intersectRay()
156 double opp = (*fLine)[1].fY - (*fLine)[0].fY; in intersectRay()
159 r[n] = (fQuad[n].fY - (*fLine)[0].fY) * adj - (fQuad[n].fX - (*fLine)[0].fX) * opp; in intersectRay()
280 double lineT = fLine->exactPoint(fQuad[qIndex]); in addExactEndPoints()
295 double lineT = fLine->nearPoint(fQuad[qIndex], nullptr); in addNearEndPoints()
311 (*fLine)[lIndex], (*fLine)[!lIndex]); in addLineNearEndPoints()
315 fIntersections->insert(quadT, lineT, (*fLine)[lIndex]); in addLineNearEndPoints()
[all …]
DSkDConicLineIntersection.cpp21 , fLine(&l) in LineConicIntersections()
29 SkDEBUGPARAMS(fLine(nullptr)) in LineConicIntersections()
43 double t = fLine->nearPoint(conicMidPt, nullptr); in checkCoincident()
111 SkDEBUGCODE(SkDPoint linePt = fLine->ptAtT(lineT)); in intersect()
126 double adj = (*fLine)[1].fX - (*fLine)[0].fX; in intersectRay()
127 double opp = (*fLine)[1].fY - (*fLine)[0].fY; in intersectRay()
130 r[n] = (fConic[n].fY - (*fLine)[0].fY) * adj - (fConic[n].fX - (*fLine)[0].fX) * opp; in intersectRay()
180 double lineT = fLine->exactPoint(fConic[cIndex]); in addExactEndPoints()
195 double lineT = fLine->nearPoint(fConic[cIndex], nullptr); in addNearEndPoints()
211 (*fLine)[lIndex], (*fLine)[!lIndex]); in addLineNearEndPoints()
[all …]
DSkDCubicLineIntersection.cpp87 , fLine(l) in LineCubicIntersections()
102 double t = fLine.nearPoint(cubicMidPt, nullptr); in checkCoincident()
122 double adj = fLine[1].fX - fLine[0].fX; in intersectRay()
123 double opp = fLine[1].fY - fLine[0].fY; in intersectRay()
127 c[n].fX = (fCubic[n].fY - fLine[0].fY) * adj - (fCubic[n].fX - fLine[0].fX) * opp; in intersectRay()
136 c[n].fY = (fCubic[n].fY - fLine[0].fY) * opp in intersectRay()
137 + (fCubic[n].fX - fLine[0].fX) * adj; in intersectRay()
273 double lineT = fLine.exactPoint(fCubic[cIndex]); in addExactEndPoints()
290 double lineT = fLine.nearPoint(fCubic[cIndex], nullptr); in addNearEndPoints()
306 fLine[lIndex], fLine[!lIndex]); in addLineNearEndPoints()
[all …]
/third_party/skia/src/sksl/
DSkSLLexer.h112 : fKind(kind), fOffset(offset), fLength(length), fLine(line) {} in Token()
117 int32_t fLine = -1; member
125 fLine = 1; in start()
132 int32_t fLine; member
135 Checkpoint getCheckpoint() const { return {fOffset, fLine}; } in getCheckpoint()
139 fLine = checkpoint.fLine; in rewindToCheckpoint()
145 int32_t fLine; variable
DSkSLLexer.cpp502 return Token(Token::Kind::TK_END_OF_FILE, startOffset, 0, fLine); in next()
508 return Token(Token::Kind::TK_END_OF_FILE, startOffset, 0, fLine); in next()
523 ++fLine; in next()
527 return Token(kind, startOffset, fOffset - startOffset, fLine); in next()
/third_party/skia/src/gpu/geometry/
DGrShape.cpp34 this->setLine(shape.fLine); in operator =()
210 fLine.fP1 = p1; in simplifyLine()
211 fLine.fP2 = p2; in simplifyLine()
214 SkASSERT(fLine.fP1 == p1 && fLine.fP2 == p2); in simplifyLine()
218 if (fLine.fP2.fY < fLine.fP1.fY || in simplifyLine()
219 (fLine.fP2.fY == fLine.fP1.fY && fLine.fP2.fX < fLine.fP1.fX)) { in simplifyLine()
221 swap(fLine.fP1, fLine.fP2); in simplifyLine()
255 this->simplifyLine(fLine.fP1, fLine.fP2, flags); in simplify()
380 SkRect b = SkRect::MakeLTRB(fLine.fP1.fX, fLine.fP1.fY, in bounds()
381 fLine.fP2.fX, fLine.fP2.fY); in bounds()
[all …]
/third_party/skia/tests/
DPathOpsCubicReduceOrderTest.cpp233 if (order == 2 && reducer.fLine[0] == reducer.fLine[1]) { in DEF_TEST()
238 if ( (reducer.fLine[0].fX != cubic[0].fX && reducer.fLine[0].fX != cubic[3].fX) in DEF_TEST()
239 || (reducer.fLine[0].fY != cubic[0].fY && reducer.fLine[0].fY != cubic[3].fY) in DEF_TEST()
240 || (reducer.fLine[1].fX != cubic[0].fX && reducer.fLine[1].fX != cubic[3].fX) in DEF_TEST()
241 || (reducer.fLine[1].fY != cubic[0].fY && reducer.fLine[1].fY != cubic[3].fY)) { in DEF_TEST()
250 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) in DEF_TEST()
251 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) in DEF_TEST()
252 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) in DEF_TEST()
253 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) in DEF_TEST()
254 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) in DEF_TEST()
[all …]
DSkSLDSLErrorLineNumbers.cpp28 , fLine(line) in ExpectErrorLineNumber()
43 REPORTER_ASSERT(fReporter, pos.line() == fLine, in handleError()
44 "Line number mismatch: expected %d, but received %d\n", fLine, pos.line()); in handleError()
51 int fLine; member in ExpectErrorLineNumber
/third_party/flutter/skia/tests/
DPathOpsCubicReduceOrderTest.cpp231 if (order == 2 && reducer.fLine[0] == reducer.fLine[1]) { in DEF_TEST()
236 if ( (reducer.fLine[0].fX != cubic[0].fX && reducer.fLine[0].fX != cubic[3].fX) in DEF_TEST()
237 || (reducer.fLine[0].fY != cubic[0].fY && reducer.fLine[0].fY != cubic[3].fY) in DEF_TEST()
238 || (reducer.fLine[1].fX != cubic[0].fX && reducer.fLine[1].fX != cubic[3].fX) in DEF_TEST()
239 || (reducer.fLine[1].fY != cubic[0].fY && reducer.fLine[1].fY != cubic[3].fY)) { in DEF_TEST()
248 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) in DEF_TEST()
249 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) in DEF_TEST()
250 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) in DEF_TEST()
251 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) in DEF_TEST()
252 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) in DEF_TEST()
[all …]
/third_party/skia/src/sksl/ir/
DSkSLFunctionDefinition.cpp105 if (a->fLine != b->fLine) { in Convert()
106 return a->fLine < b->fLine; in Convert()
157 fContext.fErrors->error(stmt.fLine, "variable '" + in Convert()
169 stmt.fLine, in Convert()
183 fContext.fErrors->error(returnStmt.fLine, in Convert()
189 fContext.fErrors->error(returnStmt.fLine, in Convert()
215 fContext.fErrors->error(stmt.fLine, in Convert()
224 fContext.fErrors->error(stmt.fLine, in Convert()
227 fContext.fErrors->error(stmt.fLine, in Convert()
261 context.fErrors->error(function.fLine, "function '" + function.name() + in Convert()
DSkSLPrefixExpression.cpp35 if (type.checkForOutOfRangeLiteral(context, negated, value->fLine)) { in simplify_negation()
38 return Literal::Make(originalExpr.fLine, negated, &type); in simplify_negation()
52 return ConstructorArray::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
63 return ConstructorDiagonalMatrix::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
75 return ConstructorSplat::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
85 return ConstructorCompound::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
130 return Literal::MakeBool(operand->fLine, !b.boolValue(), &operand->type()); in logical_not_operand()
155 context.fErrors->error(base->fLine, in Convert()
163 context.fErrors->error(base->fLine, in Convert()
172 context.fErrors->error(base->fLine, in Convert()
[all …]
DSkSLConstructorCompoundCast.cpp33 context, constCtor->fLine, destType, in cast_constant_composite()
34 ConstructorScalarCast::Make(context, constCtor->fLine, scalarType, in cast_constant_composite()
43 context, constCtor->fLine, destType, in cast_constant_composite()
44 ConstructorScalarCast::Make(context, constCtor->fLine, scalarType, in cast_constant_composite()
56 if (scalarType.checkForOutOfRangeLiteral(context, *slotVal, constCtor->fLine)) { in cast_constant_composite()
61 typecastArgs.push_back(Literal::Make(constCtor->fLine, *slotVal, &scalarType)); in cast_constant_composite()
64 return ConstructorCompound::Make(context, constCtor->fLine, destType, in cast_constant_composite()
DSkSLVarDeclarations.cpp102 ErrorCheck(context, var.fLine, var.modifiers(), baseType, var.storage()); in ErrorCheckAndCoerce()
105 context.fErrors->error(value->fLine, in ErrorCheckAndCoerce()
110 context.fErrors->error(value->fLine, in ErrorCheckAndCoerce()
115 context.fErrors->error(value->fLine, in ErrorCheckAndCoerce()
120 context.fErrors->error(value->fLine, in ErrorCheckAndCoerce()
131 context.fErrors->error(var.fLine, "'const' variables must be initialized"); in ErrorCheckAndCoerce()
135 context.fErrors->error(value->fLine, in ErrorCheckAndCoerce()
142 context.fErrors->error(var.fLine, "opaque type '" + var.type().name() + in ErrorCheckAndCoerce()
149 context.fErrors->error(value->fLine, in ErrorCheckAndCoerce()
186 context.fErrors->error(var->fLine, "duplicate definition of 'sk_RTAdjust'"); in Convert()
[all …]
DSkSLFieldAccess.cpp32 context, base->fLine, std::move(base), f); in Convert()
37 context, base->fLine, std::move(base), f.functions()); in Convert()
44 base->fLine, in Convert()
57 return Setting::Convert(context, base->fLine, field); in Convert()
60 context.fErrors->error(base->fLine, "type '" + baseType.displayName() + in Convert()
DSkSLExpression.cpp18 context.fErrors->error(fLine, "expected '(' to begin function call"); in isIncomplete()
22 context.fErrors->error(fLine, "expected '(' to begin method call"); in isIncomplete()
26 context.fErrors->error(fLine, "expected '(' to begin constructor invocation"); in isIncomplete()
DSkSLSwitchStatement.cpp30 return std::make_unique<SwitchStatement>(fLine, in clone()
96 target->push_back(Block::Make(block.fLine, std::move(blockStmts), in move_all_but_break()
164 return Block::Make(caseToCapture->fLine, std::move(caseStmts), std::move(symbolTable)); in BlockForCase()
186 caseLine = caseValues[i]->fLine; in Convert()
196 context.fErrors->error(caseValue->fLine, "case value must be a constant integer"); in Convert()
214 context.fErrors->error(sc->fLine, in Convert()
217 context.fErrors->error(sc->fLine, "duplicate default case"); in Convert()
287 context.fErrors->error(value->fLine, in Make()
DSkSLIndexExpression.cpp26 context.fErrors->error(base.fLine, "index " + to_string(index) + " out of range for '" + in index_out_of_range()
63 return TypeReference::Convert(context, base->fLine, in Convert()
69 context.fErrors->error(base->fLine, in Convert()
137 ctorArgs.push_back(Literal::Make(baseExpr->fLine, *slotVal, &scalarType)); in Make()
145 int line = ctorArgs.front()->fLine; in Make()
DSkSLDoStatement.cpp21 context.fErrors->error(stmt->fLine, "do-while loops are not supported"); in Convert()
40 return std::make_unique<DoStatement>(stmt->fLine, std::move(stmt), std::move(test)); in Make()
44 return std::make_unique<DoStatement>(fLine, this->statement()->clone(), in clone()
/third_party/flutter/skia/src/sksl/
DSkSLPosition.h22 : fLine(-1) in Position()
26 : fLine(line) in Position()
30 return to_string(fLine); in description()
33 int fLine; member
/third_party/skia/include/private/
DGrSingleOwner.h27 : fFile(file), fLine(line), fSO(so) { in AutoEnforce()
30 ~AutoEnforce() { fSO->exit(fFile, fLine); } in ~AutoEnforce()
33 int fLine; member
/third_party/icu/icu4c/source/test/perf/howExpensiveIs/
DhowExpensiveIs.cpp156 …veTest(const char *name, const char *file, int32_t line) : fName(name), fFile(file), fLine(line) {} in HowExpensiveTest()
193 int32_t fLine; member in HowExpensiveTest
202 fprintf(stderr, "%s:%d:\t%s\n", t.fFile, t.fLine, t.getName()); in runTestOn()
206 fprintf(stderr, "%s:%d: Running: %s\n", t.fFile, t.fLine, t.getName()); in runTestOn()
271 int fLine; member in NumTest
299 fLine(LINE), in NumTest()
312 fFile,fLine,getName(),trial,fExpect); in warmup()
399 int fLine; member in NumFmtTest
427 fLine(LINE), in NumFmtTest()
445 fFile,fLine,getName(),strBuf,fCStr, u_errorName(setupStatus)); in warmup()
[all …]
/third_party/skia/include/sksl/
DSkSLErrorReporter.h28 , fLine(line) {} in fFile()
43 return fLine; in line()
48 int32_t fLine = -1; variable

12345