Lines Matching defs:count
588 int count = 0;
595 count += 1 + rec->fDeferredSaveCount;
597 SkASSERT(count == fSaveCount);
623 if (fMCStack.count() > 1) {
633 void SkCanvas::restoreToCount(int count) {
635 if (count < 1) {
636 count = 1;
639 int n = this->getSaveCount() - count;
1459 // - Remember the save count that added the clip restriction and reset the rect to empty when
1799 void SkCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) {
1801 this->onDrawPoints(mode, count, pts, paint);
1896 const SkColor colors[], int count, SkBlendMode mode,
1901 if (count <= 0) {
1906 this->onDrawAtlas2(atlas, xform, tex, colors, count, mode, sampling, cull, paint);
1976 void SkCanvas::onDrawPoints(PointMode mode, size_t count, const SkPoint pts[],
1978 if ((long)count <= 0 || paint.nothingToDraw()) {
1985 if (count == 2) {
1988 bounds.setBounds(pts, SkToInt(count));
2000 this->topDevice()->drawPoints(mode, count, pts, layer->paint());
2335 void SkCanvas::drawGlyphs(int count, const SkGlyphID* glyphs, const SkPoint* positions,
2338 if (count <= 0) { return; }
2342 SkMakeSpan(positions, count),
2343 SkMakeSpan(glyphs, count),
2345 SkMakeSpan(clusters, count),
2356 void SkCanvas::drawGlyphs(int count, const SkGlyphID glyphs[], const SkPoint positions[],
2358 if (count <= 0) { return; }
2362 SkMakeSpan(positions, count),
2363 SkMakeSpan(glyphs, count),
2376 void SkCanvas::drawGlyphs(int count, const SkGlyphID glyphs[], const SkRSXform xforms[],
2378 if (count <= 0) { return; }
2381 fScratchGlyphRunBuilder->convertRSXForm(SkMakeSpan(xforms, count));
2386 SkMakeSpan(glyphs, count),
2499 const SkColor colors[], int count, SkBlendMode bmode,
2512 this->topDevice()->drawAtlas(xform, tex, colors, count, bmode, layer->paint());
2539 void SkCanvas::onDrawEdgeAAImageSet2(const ImageSetEntry imageSet[], int count,
2543 if (count <= 0) {
2552 // entry will be visible. So, we only calculate the draw bounds when it's trivial (count == 1),
2555 bool setBoundsValid = count == 1 || needsAutoLayer;
2562 for (int i = 1; i < count; ++i) {
2578 this->topDevice()->drawEdgeAAImageSet(imageSet, count, dstClips, preViewMatrices, sampling,