commit | 47f2cbd7676d37c28d30f9f34476820adb32d1a3 | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Tue Jan 12 15:42:28 2016 -0500 |
committer | Brian Salomon <bsalomon@google.com> | Tue Jan 12 15:42:28 2016 -0500 |
tree | f7f1f10135f1d33e212070e871a0048be8c7e21b | |
parent | 2ff162ea923f753facd606c472e6451c906d8a67 [diff] |
Fix BitmapCopy_Texture test on iOS BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1573273002 NOTREECHECKS=true NOTRY=true NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1580163002 .
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp index e47a631..58341dc 100644 --- a/tests/BitmapCopyTest.cpp +++ b/tests/BitmapCopyTest.cpp
@@ -684,6 +684,10 @@ SkAutoTUnref<GrTexture> texture( ctx->textureProvider()->createTexture(desc, false, srcData, 0)); + if (!texture) { + continue; + } + SkBitmap srcBmp; GrWrapTextureInBitmap(texture, 2, 2, false, &srcBmp); if (srcBmp.isNull()) {