Home | History | Annotate | Download | only in effects

Lines Matching refs:buffer

67 void SkRectShape::flatten(SkFlattenableWriteBuffer& buffer) {
68 this->INHERITED::flatten(buffer);
70 buffer.writeRect(fBounds);
71 *(SkSize*)buffer.reserve(sizeof(SkSize)) = fRadii;
74 SkRectShape::SkRectShape(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {
75 buffer.read(&fBounds, sizeof(fBounds));
76 buffer.read(&fRadii, sizeof(fRadii));
79 SkFlattenable* SkRectShape::CreateProc(SkFlattenableReadBuffer& buffer) {
80 return SkNEW_ARGS(SkRectShape, (buffer));
85 void SkPaintShape::flatten(SkFlattenableWriteBuffer& buffer) {
86 this->INHERITED::flatten(buffer);
88 fPaint.flatten(buffer);
91 SkPaintShape::SkPaintShape(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {
92 fPaint.unflatten(buffer);