fType = kSimple_Type;
if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) {
fType = kOval_Type;
- // TODO: try asserting they are already W/2 & H/2 already
- xRad = SkScalarHalf(fRect.width());
- yRad = SkScalarHalf(fRect.height());
+ // TODO: assert that all the x&y radii are already W/2 & H/2
}
SkDEBUGCODE(this->validate();)
RgnOper oper(SkMin32(a_top, b_top), dst, op);
- bool firstInterval = true;
int prevBot = SkRegion::kRunTypeSentinel; // so we fail the first test
while (a_bot < SkRegion::kRunTypeSentinel ||
oper.addSpan(top, gSentinel, gSentinel);
}
oper.addSpan(bot, run0, run1);
- firstInterval = false;
if (quickExit && !oper.isEmpty()) {
return QUICK_EXIT_TRUE_COUNT;
}
SkAAClipBlitterWrapper wrap;
- const SkIRect* clipR = NULL;
const SkRegion* clip = NULL;
{
return;
}
if (!rclip.quickContains(ibounds)) {
- clipR = &rclip.getBounds();
if (rclip.isBW()) {
clip = &rclip.bwRgn();
} else {
results->fNumPoints = 0;
SkScalar len2 = length;
- bool partialFirst = false;
if (clampedInitialDashLength > 0 || 0 == fInitialDashIndex) {
SkASSERT(len2 >= clampedInitialDashLength);
if (0 == fInitialDashIndex) {
if (clampedInitialDashLength > 0) {
- partialFirst = true;
if (clampedInitialDashLength >= fIntervals[0]) {
++results->fNumPoints; // partial first dash
}
// with the existing clip.
for (ElementList::Iter iter(elements.headIter()); NULL != iter.get(); iter.next()) {
const Element* element = iter.get();
- SkPath::FillType fill;
bool fillInverted = false;
// enabled at bottom of loop
drawState->disableState(GrGpu::kModifyStencilClip_StateBit);
SkTCopyOnFirstWrite<SkPath> clipPath;
if (Element::kRect_Type == element->getType()) {
stencilSupport = GrPathRenderer::kNoRestriction_StencilSupport;
- fill = SkPath::kEvenOdd_FillType;
fillInverted = false;
} else {
GrAssert(Element::kPath_Type == element->getType());
clipPath.init(element->getPath());
- fill = clipPath->getFillType();
fillInverted = clipPath->isInverseFillType();
if (fillInverted) {
clipPath.writable()->toggleInverseFillType();
- fill = clipPath->getFillType();
}
pr = this->getContext()->getPathRenderer(*clipPath,
stroke,
SkFontDescriptor descriptor(stream);
const char* familyName = descriptor.getFamilyName();
- const char* typefaceName = descriptor.getFontFileName();
const SkTypeface::Style style = descriptor.getStyle();
const uint32_t customFontDataLength = stream->readPackedUInt();
}
static void test_tables(skiatest::Reporter* reporter, SkTypeface* face) {
- SkFontID fontID = face->uniqueID();
if (false) { // avoid bit rot, suppress warning
+ SkFontID fontID = face->uniqueID();
REPORTER_ASSERT(reporter, fontID);
}