mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
View: use ServerLink::AttachShape
No protocol change intended. Change-Id: If2ca573a3b6763c62ab1ae0d8a11f783d6ecc233 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8473 Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
ec464820c0
commit
cfe81d33f1
@ -4076,10 +4076,7 @@ BView::StrokeShape(BShape* shape, ::pattern pattern)
|
||||
|
||||
fOwner->fLink->StartMessage(AS_STROKE_SHAPE);
|
||||
fOwner->fLink->Attach<BRect>(shape->Bounds());
|
||||
fOwner->fLink->Attach<int32>(sd->opCount);
|
||||
fOwner->fLink->Attach<int32>(sd->ptCount);
|
||||
fOwner->fLink->Attach(sd->opList, sd->opCount * sizeof(uint32));
|
||||
fOwner->fLink->Attach(sd->ptList, sd->ptCount * sizeof(BPoint));
|
||||
fOwner->fLink->AttachShape(*shape);
|
||||
|
||||
_FlushIfNotInTransaction();
|
||||
}
|
||||
@ -4100,10 +4097,7 @@ BView::FillShape(BShape* shape, ::pattern pattern)
|
||||
|
||||
fOwner->fLink->StartMessage(AS_FILL_SHAPE);
|
||||
fOwner->fLink->Attach<BRect>(shape->Bounds());
|
||||
fOwner->fLink->Attach<int32>(sd->opCount);
|
||||
fOwner->fLink->Attach<int32>(sd->ptCount);
|
||||
fOwner->fLink->Attach(sd->opList, sd->opCount * sizeof(int32));
|
||||
fOwner->fLink->Attach(sd->ptList, sd->ptCount * sizeof(BPoint));
|
||||
fOwner->fLink->AttachShape(*shape);
|
||||
|
||||
_FlushIfNotInTransaction();
|
||||
}
|
||||
@ -4123,10 +4117,7 @@ BView::FillShape(BShape* shape, const BGradient& gradient)
|
||||
|
||||
fOwner->fLink->StartMessage(AS_FILL_SHAPE_GRADIENT);
|
||||
fOwner->fLink->Attach<BRect>(shape->Bounds());
|
||||
fOwner->fLink->Attach<int32>(sd->opCount);
|
||||
fOwner->fLink->Attach<int32>(sd->ptCount);
|
||||
fOwner->fLink->Attach(sd->opList, sd->opCount * sizeof(int32));
|
||||
fOwner->fLink->Attach(sd->ptList, sd->ptCount * sizeof(BPoint));
|
||||
fOwner->fLink->AttachShape(*shape);
|
||||
fOwner->fLink->AttachGradient(gradient);
|
||||
|
||||
_FlushIfNotInTransaction();
|
||||
@ -5993,10 +5984,7 @@ BView::_ClipToShape(BShape* shape, bool inverse)
|
||||
if (_CheckOwnerLockAndSwitchCurrent()) {
|
||||
fOwner->fLink->StartMessage(AS_VIEW_CLIP_TO_SHAPE);
|
||||
fOwner->fLink->Attach<bool>(inverse);
|
||||
fOwner->fLink->Attach<int32>(sd->opCount);
|
||||
fOwner->fLink->Attach<int32>(sd->ptCount);
|
||||
fOwner->fLink->Attach(sd->opList, sd->opCount * sizeof(uint32));
|
||||
fOwner->fLink->Attach(sd->ptList, sd->ptCount * sizeof(BPoint));
|
||||
fOwner->fLink->AttachShape(*shape);
|
||||
_FlushIfNotInTransaction();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user