Lines Matching defs:bytes
36 "Expected %p to be aligned for at least %zu bytes.", dst, alignof(S));
358 DrawText(size_t bytes, SkScalar x, SkScalar y, const SkPaint& paint)
359 : bytes(bytes), x(x), y(y), paint(paint) {}
360 size_t bytes;
364 c->drawText(pod<void>(this), bytes, x,y, paint);
369 DrawPosText(size_t bytes, const SkPaint& paint, int n)
370 : bytes(bytes), paint(paint), n(n) {}
371 size_t bytes;
377 c->drawPosText(text, bytes, points, paint);
382 DrawPosTextH(size_t bytes, SkScalar y, const SkPaint& paint, int n)
383 : bytes(bytes), y(y), paint(paint), n(n) {}
384 size_t bytes;
391 c->drawPosTextH(text, bytes, xs, y, paint);
396 DrawTextOnPath(size_t bytes, const SkPath& path,
398 : bytes(bytes), path(path), paint(paint) {
401 size_t bytes;
406 bytes, path, &matrix, paint);
411 DrawTextRSXform(size_t bytes, const SkRect* cull, const SkPaint& paint)
412 : bytes(bytes), paint(paint) {
415 size_t bytes;
419 c->drawTextRSXform(pod<void>(this), bytes, pod<SkRSXform>(this, bytes),
596 size_t bytes = strlen(key)+1;
597 void* pod = this->push<DrawAnnotation>(bytes, rect, value);
598 copy_v(pod, key,bytes);
627 size_t bytes = (xs + ys) * sizeof(int) + fs * sizeof(SkCanvas::Lattice::Flags);
629 void* pod = this->push<DrawImageLattice>(bytes, std::move(image), xs, ys, fs, *lattice.fBounds,
636 void SkLiteDL::drawText(const void* text, size_t bytes,
638 void* pod = this->push<DrawText>(bytes, bytes, x, y, paint);
639 copy_v(pod, (const char*)text,bytes);
641 void SkLiteDL::drawPosText(const void* text, size_t bytes,
643 int n = paint.countText(text, bytes);
644 void* pod = this->push<DrawPosText>(n*sizeof(SkPoint)+bytes, bytes, paint, n);
645 copy_v(pod, pos,n, (const char*)text,bytes);
647 void SkLiteDL::drawPosTextH(const void* text, size_t bytes,
649 int n = paint.countText(text, bytes);
650 void* pod = this->push<DrawPosTextH>(n*sizeof(SkScalar)+bytes, bytes, y, paint, n);
651 copy_v(pod, xs,n, (const char*)text,bytes);
653 void SkLiteDL::drawTextOnPath(const void* text, size_t bytes,
655 void* pod = this->push<DrawTextOnPath>(bytes, bytes, path, matrix, paint);
656 copy_v(pod, (const char*)text,bytes);
658 void SkLiteDL::drawTextRSXform(const void* text, size_t bytes,
660 int n = paint.countText(text, bytes);
661 void* pod = this->push<DrawTextRSXform>(bytes+n*sizeof(SkRSXform), bytes, cull, paint);
662 copy_v(pod, (const char*)text,bytes, xforms,n);
683 size_t bytes = count*(sizeof(SkRSXform) + sizeof(SkRect));
685 bytes += count*sizeof(SkColor);
687 void* pod = this->push<DrawAtlas>(bytes,