Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: tests/BitmapCopyTest.cpp

Issue 1580163002: Fix BitmapCopy_Texture test on iOS (Closed) Base URL: https://skia.googlesource.com/skia.git@m48
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/BitmapCopyTest.cpp
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp
index e47a631816499784d88a996a6400410d83e58adf..58341dc979dc4b818633b293d79fc69069d8e1b9 100644
--- a/tests/BitmapCopyTest.cpp
+++ b/tests/BitmapCopyTest.cpp
@@ -684,6 +684,10 @@ DEF_GPUTEST(BitmapCopy_Texture, reporter, factory) {
SkAutoTUnref<GrTexture> texture(
ctx->textureProvider()->createTexture(desc, false, srcData, 0));
+ if (!texture) {
+ continue;
+ }
+
SkBitmap srcBmp;
GrWrapTextureInBitmap(texture, 2, 2, false, &srcBmp);
if (srcBmp.isNull()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698