aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Ruiqi Mao <ruiqimao@google.com>2018-07-17 18:38:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-17 23:24:41 +0000
commit59113645075d5a1c3b17cc06aacb30504ca6467a (patch)
tree7d3fdbfb36a8ba5de0adf3fb7cd1208c61910580 /src/core
parentcc3f3d8c3811e823e3517b3570b644f16221aff5 (diff)
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>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkThreadedBMPDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkThreadedBMPDevice.cpp b/src/core/SkThreadedBMPDevice.cpp
index 0fed293239..1dea5e6d2d 100644
--- a/src/core/SkThreadedBMPDevice.cpp
+++ b/src/core/SkThreadedBMPDevice.cpp
@@ -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 ++) {