Home
last modified time | relevance | path

Searched refs:isRect (Results 1 – 25 of 131) sorted by relevance

123456

/external/skqp/src/core/
DSkRasterClip.h34 bool isRect() const { return true; } in isRect() function
84 bool isRect() const { in isRect() function
147 return fIsBW ? fBW.isRect() : fAA.isRect(); in computeIsRect()
154 if (detectAARect && !fIsEmpty && !fIsBW && fAA.isRect()) {
DSkRegion.cpp172 } else if (this->isRect()) { in computeRegionComplexity()
257 if (this->isRect()) { in count_runtype_values()
363 if (this->isRect()) { in contains()
421 if (this->isRect()) { in contains()
446 if (this->isRect()) { in contains()
449 if (rgn.isRect()) { in contains()
468 } else if (this->isRect()) { in getRuns()
506 if (this->isRect()) { in intersects()
533 bool weAreARect = this->isRect(); in intersects()
534 bool theyAreARect = rgn.isRect(); in intersects()
[all …]
DSkRRectPriv.h32 return rr.isRect() || SkRRectPriv::IsCircle(rr) || SkRRectPriv::IsSimpleCircular(rr); in EqualRadii()
/external/skia/src/core/
DSkRegion.cpp171 } else if (this->isRect()) { in computeRegionComplexity()
256 if (this->isRect()) { in count_runtype_values()
362 if (this->isRect()) { in contains()
420 if (this->isRect()) { in contains()
445 if (this->isRect()) { in contains()
448 if (rgn.isRect()) { in contains()
467 } else if (this->isRect()) { in getRuns()
505 if (this->isRect()) { in intersects()
532 bool weAreARect = this->isRect(); in intersects()
533 bool theyAreARect = rgn.isRect(); in intersects()
[all …]
DSkRasterClip.h44 bool isRect() const { return fIsRect; } in isRect() function
103 bool isRect() const { in isRect() function
171 return fIsBW ? fBW.isRect() : fAA.isRect(); in computeIsRect()
178 if (detectAARect && !fIsEmpty && !fIsBW && fAA.isRect()) {
DSkRasterClip.cpp87 (rrect.isRect() && ctm.isScaleTranslate()) ? IsRect::kYes : IsRect:: kNo); in opRRect()
112 this->applyOpParams(op, ClipAA::kNo, rgn.isRect() ? IsRect::kYes : IsRect::kNo); in opRegion()
162 fIsRect = that.isRect(); in operator =()
298 if (this->isRect()) { in op()
DSkRRectPriv.h36 return rr.isRect() || SkRRectPriv::IsCircle(rr) || SkRRectPriv::IsSimpleCircular(rr); in EqualRadii()
/external/skia/docs/examples/
DRRect_isRect.cpp13 canvas->drawString(rrect.isRect() ? "rect" : "not rect", 64, 90, paint);
18 canvas->drawString(rrect.isRect() ? "rect" : "not rect", 64, 90, paint);
DRegion_isRect.cpp8 SkDebugf("%s: region is %s" "rect\n", label, region.isRect() ? "" : "not "); in draw()
DPath_addRoundRect.cpp13 paint.setColor(path.isRect(nullptr) ? SK_ColorRED : path.isOval(nullptr) ? in draw()
DPath_isRect.cpp11 path.isRect(&rect, &isClosed, &direction) ? in draw()
/external/skia/src/gpu/geometry/
DGrShape.h85 bool isRect() const { return this->type() == Type::kRect; } in isRect() function
112 SkASSERT((this->isRect() && start < 4) || (this->isRRect() && start < 8) || in setPathWindingParams()
133 SkRect& rect() { SkASSERT(this->isRect()); return fRect; } in rect()
134 const SkRect& rect() const { SkASSERT(this->isRect()); return fRect; } in rect()
DGrStyledShape.h147 bool isRect() const { in isRect() function
149 SkASSERT(!fShape.isRRect() || !fShape.rrect().isRect()); in isRect()
150 return fShape.isRect(); in isRect()
DGrShape.cpp87 if (fPath.isRect(&rect, &closed) && (closed || (flags & kSimpleFill_Flag))) { in simplifyPath()
153 if (rrect.isEmpty() || rrect.isRect()) { in simplifyRRect()
188 if (!this->isRect()) { in simplifyRect()
395 if (fRRect.isEmpty() || fRRect.isRect()) { in segmentMask()
/external/skia/include/core/
DSkRegion.h145 bool isRect() const { return fRunHead == kRectRunHeadPtr; } in isRect() function
151 bool isComplex() const { return !this->isEmpty() && !this->isRect(); } in isComplex()
378 if (this->isRect() && kIntersect_Op == op) { in op()
/external/skqp/include/core/
DSkRegion.h141 bool isRect() const { return fRunHead == kRectRunHeadPtr; } in isRect() function
147 bool isComplex() const { return !this->isEmpty() && !this->isRect(); } in isComplex()
381 if (this->isRect() && kIntersect_Op == op) { in op()
/external/skqp/src/utils/
DSkDashPath.cpp186 bool isRect = !isLine && srcPath.isRect(nullptr); in cull_path() local
187 if (!isLine && !isRect) { in cull_path()
192 if (isRect) { in cull_path()
317 if (src.isRect(nullptr) && src.isLastContourClosed() && is_even(initialDashIndex)) { in InternalFilter()
/external/skia/src/gpu/
DGrClipStack.cpp216 if (e.fShape.isRect()) { in analytic_clip_fp()
551 if (forceAA && !(fShape.isRect() && fLocalToDevice.preservesAxisAlignment())) { in simplify()
560 if (fShape.isRect()) { in simplify()
617 if (fShape.isRect() && other.fShape.isRect()) { in combine()
643 } else if ((fShape.isRect() || fShape.isRRect()) && in combine()
644 (other.fShape.isRect() || other.fShape.isRRect())) { in combine()
648 SkRRect a = fShape.isRect() ? SkRRect::MakeRect(fShape.rect()) : fShape.rrect(); in combine()
649 SkRRect b = other.fShape.isRect() ? SkRRect::MakeRect(other.fShape.rect()) in combine()
655 if (joined.isRect()) { in combine()
/external/skia/tests/
DPathOpsBuilderTest.cpp34 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST()
45 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST()
61 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST()
DPathTest.cpp616 REPORTER_ASSERT(reporter, path.isRect(nullptr)); in test_addrect()
621 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
626 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
631 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
636 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
881 REPORTER_ASSERT(reporter, temp.isRect(&result)); in test_arb_zero_rad_round_rect_is_rect()
2024 REPORTER_ASSERT(reporter, path.isRect(nullptr, &isClosed, nullptr)); in test_isRect_open_close()
2128 REPORTER_ASSERT(reporter, tests[testIndex].fIsRect == path.isRect(nullptr)); in test_isRect()
2138 REPORTER_ASSERT(reporter, path.isRect(&computed, &isClosed, &direction)); in test_isRect()
2149 REPORTER_ASSERT(reporter, !path.isRect(&computed, &isClosed, &direction)); in test_isRect()
[all …]
/external/skqp/tests/
DPathOpsBuilderTest.cpp34 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST()
45 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST()
61 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir)); in DEF_TEST()
DPathTest.cpp616 REPORTER_ASSERT(reporter, path.isRect(nullptr)); in test_addrect()
621 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
626 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
631 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
636 REPORTER_ASSERT(reporter, !path.isRect(nullptr)); in test_addrect()
881 REPORTER_ASSERT(reporter, temp.isRect(&result)); in test_arb_zero_rad_round_rect_is_rect()
2042 REPORTER_ASSERT(reporter, path.isRect(nullptr, &isClosed, nullptr)); in test_isRect_open_close()
2146 REPORTER_ASSERT(reporter, tests[testIndex].fIsRect == path.isRect(nullptr)); in test_isRect()
2156 REPORTER_ASSERT(reporter, path.isRect(&computed, &isClosed, &direction)); in test_isRect()
2167 REPORTER_ASSERT(reporter, !path.isRect(&computed, &isClosed, &direction)); in test_isRect()
[all …]
/external/skqp/tools/lua/
Dscrape.lua68 "isRect", tostring(t.path:isRect()), tostr(t.path:getBounds()))
Dpaths.lua60 if path:isRect() then
/external/skia/modules/sksg/src/
DSkSGRect.cpp55 if (fRRect.isRect()) { in onContains()

123456