Remove dependence on SK_LEGACY_PICTURE_DRAW_API.
Call SkPicture::playback() instead of ::draw(). Also, no need longer need the const_cast. Change-Id: I4742d2fd5c5b918db492ec2ef6a84ea7d6151cdd
This commit is contained in:
committed by
Leon Scroggins
parent
f275b18521
commit
d40e89258e
@@ -106,8 +106,7 @@ void Picture::draw(Canvas* canvas) {
|
||||
SkASSERT(NULL != mPicture.get());
|
||||
}
|
||||
if (NULL != mPicture.get()) {
|
||||
// TODO: remove this const_cast once pictures are immutable
|
||||
const_cast<SkPicture*>(mPicture.get())->draw(canvas->getSkCanvas());
|
||||
mPicture.get()->playback(canvas->getSkCanvas());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user