diff options
author | Brian Salomon <bsalomon@google.com> | 2016-01-11 15:15:46 -0500 |
---|---|---|
committer | Brian Salomon <bsalomon@google.com> | 2016-01-11 15:15:46 -0500 |
commit | 639475e375b7e62277ac5e5b96eadeaaa1afcddc (patch) | |
tree | db0ffb2520583b93297228acb8ee1bb43cc2594d /tests/BitmapCopyTest.cpp | |
parent | 950e626fb43004c010aa4d9d5ff5247e0d5f94fa (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
Review URL: https://codereview.chromium.org/1573273002 .
Diffstat (limited to 'tests/BitmapCopyTest.cpp')
-rw-r--r-- | tests/BitmapCopyTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp index 8b2cb3ce54..70998bd3f0 100644 --- a/tests/BitmapCopyTest.cpp +++ b/tests/BitmapCopyTest.cpp @@ -669,6 +669,10 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(BitmapCopy_Texture, reporter, ctx) { SkAutoTUnref<GrTexture> texture( ctx->textureProvider()->createTexture(desc, false, srcData, 0)); + if (!texture) { + continue; + } + SkBitmap srcBmp; GrWrapTextureInBitmap(texture, 2, 2, false, &srcBmp); if (srcBmp.isNull()) { |