Lines Matching full:description
36 TessellationCache::Description::Description()
48 TessellationCache::Description::Description(Type type, const Matrix4& transform, const SkPaint& paint)
59 bool TessellationCache::Description::operator==(const TessellationCache::Description& rhs) const {
77 hash_t TessellationCache::Description::hash() const {
89 void TessellationCache::Description::setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const {
125 TessellationTask(Tessellator tessellator, const Description& description)
127 , description(description) {
133 Description description;
145 VertexBuffer* buffer = t->tessellator(t->description);
294 , mCache(LruCache<Description, Buffer*>::kUnlimitedCapacity)
310 LruCache<Description, Buffer*>::Iterator iter(mCache);
345 void TessellationCache::BufferRemovedListener::operator()(Description& description,
392 const Description& entry, Tessellator tessellator) {
408 static VertexBuffer* tessellatePath(const TessellationCache::Description& description,
412 description.setupMatrixAndPaint(&matrix, &paint);
422 static VertexBuffer* tessellateRoundRect(const TessellationCache::Description& description) {
423 SkRect rect = SkRect::MakeWH(description.shape.roundRect.width,
424 description.shape.roundRect.height);
425 float rx = description.shape.roundRect.rx;
426 float ry = description.shape.roundRect.ry;
427 if (description.style == SkPaint::kStrokeAndFill_Style) {
428 float outset = description.strokeWidth / 2;
435 return tessellatePath(description, path);
441 Description entry(Description::Type::RoundRect, transform, paint);