Home
last modified time | relevance | path

Searched refs:isRect (Results 1 - 25 of 67) sorted by relevance

123

/third_party/skia/src/core/
H A 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()
1161 bool isRect = this->isRect(); writeToMemory() local
[all...]
H A DSkRasterClip.h45 bool isRect() const { in isRect() function in SkRasterClip
105 return fIsBW ? fBW.isRect() : fAA.isRect(); in computeIsRect()
112 if (detectAARect && !fIsEmpty && !fIsBW && fAA.isRect()) { in updateCacheAndReturnNonEmpty()
H A DSkDevice.cpp536 aa, /*fillsBounds=*/rrect.isRect()); in onClipRRect()
550 /*isAA=*/false, /*fillsBounds=*/globalRgn.isRect()); in onClipRegion()
581 const bool isRect = fillsBounds && SkMatrixPriv::IsScaleTranslateAsM33(transform); in op() local
591 fIsRect &= isRect; in op()
592 } else if (isRect) { in op()
H A DSkRRectPriv.h36 return rr.isRect() || SkRRectPriv::IsCircle(rr) || SkRRectPriv::IsSimpleCircular(rr); in EqualRadii()
H A DSkRasterClip.cpp40 fIsRect = that.isRect(); in operator =()
185 if (this->isRect() && op == SkClipOp::kIntersect) { in op()
H A DSkScanPriv.h86 if (!path.isRect(&rect)) { in TryBlitFatAntiRect()
H A DSkScan.cpp24 if (clip->isRect()) { in FillIRect()
H A DSkAAClip.h32 bool isRect() const;
H A DSkDraw_text.cpp54 bool useRegion = fRC->isBW() && !fRC->isRect(); in paintMasks()
/third_party/skia/docs/examples/
H A DRRect_isRect.cpp13 canvas->drawString(rrect.isRect() ? "rect" : "not rect", 64, 90, paint); in REG_FIDDLE()
18 canvas->drawString(rrect.isRect() ? "rect" : "not rect", 64, 90, paint); in REG_FIDDLE()
H A DRegion_isRect.cpp8 SkDebugf("%s: region is %s" "rect\n", label, region.isRect() ? "" : "not "); in REG_FIDDLE()
H A DPath_addRoundRect.cpp13 paint.setColor(path.isRect(nullptr) ? SK_ColorRED : path.isOval(nullptr) ? in REG_FIDDLE()
H A DPath_isRect.cpp11 path.isRect(&rect, &isClosed, &direction) ? in REG_FIDDLE()
/third_party/skia/src/gpu/geometry/
H A DGrShape.h81 // any potential simplification (e.g. if isRRect() is true and rrect().isRect() is true,
82 // isRect() will still be false, until simplify() is called).
85 bool isRect() const { return this->type() == Type::kRect; } in isRect() function in GrShape
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()
149 // performs no simplification, so calling setRRect() with a round rect that has isRect() return
H A DGrStyledShape.h147 bool isRect() const { in isRect() function in GrStyledShape
149 SkASSERT(!fShape.isRRect() || !fShape.rrect().isRect()); in isRect()
150 return fShape.isRect(); in isRect()
H A DGrShape.cpp81 // isRect(). in simplifyPath()
85 // Attempt isRect() since we don't have to preserve any winding info in simplifyPath()
87 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()
H A DGrStyledShape.cpp188 SkASSERT((fShape.isRect() || fShape.isRRect()) || in writeUnstyledKey()
427 if (!fShape.isRRect() && !fShape.isRect()) { in asRRect()
438 if (fShape.isRect()) { in asRRect()
635 if (!fStyle.hasPathEffect() && fShape.isRect() && in simplifyStroke()
/third_party/skia/include/core/
H A DSkRegion.h145 bool isRect() const { return fRunHead == kRectRunHeadPtr; } in isRect() function in SkRegion
151 bool isComplex() const { return !this->isEmpty() && !this->isRect(); } in isComplex()
307 fRunHead == kRectRunHeadPtr && // this->isRect() in quickContains()
378 if (this->isRect() && kIntersect_Op == op) { in op()
/third_party/skia/experimental/graphite/src/geom/
H A DShape.h60 bool isRect() const { return fType == Type::kRect; } in isRect() function in skgpu::Shape
107 const Rect& rect() const { SkASSERT(this->isRect()); return fRect; } in rect()
112 // performs no simplification, so calling setRRect() with a round rect that has isRect() return
/third_party/skia/tests/
H A DAAClipTest.cpp115 } else if (a.isEmpty() != b.isEmpty() || a.isBW() != b.isBW() || a.isRect() != b.isRect()) { in operator ==()
347 REPORTER_ASSERT(reporter, !clip.isRect()); in test_really_a_rect()
357 REPORTER_ASSERT(reporter, clip.isRect()); in test_really_a_rect()
H A 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()
2028 // Simple isRect test is inline TestPath, below.
2128 REPORTER_ASSERT(reporter, tests[testIndex].fIsRect == path.isRect(nullptr)); in test_isRect()
2138 REPORTER_ASSERT(reporter, path.isRect( in test_isRect()
[all...]
H A 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()
/third_party/skia/src/gpu/ops/
H A DFillRRectOp.cpp218 if ((shape.isRect() || shape.isRRect()) && in clipToShape()
224 if (shape.isRect()) { in clipToShape()
250 if (shape.isRect()) { in clipToShape()
263 if (fHeadInstance->fRRect.isRect() && clipRRect.isRect()) { in clipToShape()
/third_party/skia/src/gpu/v1/
H A DClipStack.cpp217 if (e.fShape.isRect()) { in analytic_clip_fp()
543 if (forceAA && !(fShape.isRect() && fLocalToDevice.preservesAxisAlignment())) { in simplify()
552 if (fShape.isRect()) { in simplify()
609 if (fShape.isRect() && other.fShape.isRect()) { in combine()
635 } else if ((fShape.isRect() || fShape.isRRect()) && in combine()
636 (other.fShape.isRect() || other.fShape.isRRect())) { in combine()
640 SkRRect a = fShape.isRect() ? SkRRect::MakeRect(fShape.rect()) : fShape.rrect(); in combine()
641 SkRRect b = other.fShape.isRect() ? SkRRect::MakeRect(other.fShape.rect()) in combine()
647 if (joined.isRect()) { in combine()
[all...]
/third_party/skia/modules/sksg/src/
H A DSkSGRect.cpp55 if (fRRect.isRect()) { in onContains()

Completed in 21 milliseconds

123