fixed ASAN dm errors
Bug: skia: Change-Id: Iade74ee6a4f063deb5af66d3b06affba28977011 Reviewed-on: https://skia-review.googlesource.com/141966 Reviewed-by: Ruiqi Mao <ruiqimao@google.com> Commit-Queue: Ruiqi Mao <ruiqimao@google.com>
This commit is contained in:
parent
cc3f3d8c38
commit
5911364507
@ -228,7 +228,7 @@ void SkThreadedBMPDevice::drawVertices(const SkVertices* vertices, const SkMatri
|
||||
SkRect drawBounds = SkRectPriv::MakeLargest(); // TODO tighter drawBounds
|
||||
|
||||
// Make a copy of the bone matrices.
|
||||
SkMatrix* clonedBones = this->cloneArray(bones, boneCount);
|
||||
SkMatrix* clonedBones = bones ? this->cloneArray(bones, boneCount) : nullptr;
|
||||
|
||||
// Make the bone matrices thread-safe.
|
||||
for (int i = 0; i < boneCount; i ++) {
|
||||
|
Loading…
Reference in New Issue
Block a user