Index: tests/ImageTest.cpp |
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp |
index 3c2c31cca9f600a0a44fa1e73ece97a447502429..9dfbe3695ba51c8ef76f9be5da14f3e6e5e0c7a6 100644 |
--- a/tests/ImageTest.cpp |
+++ b/tests/ImageTest.cpp |
@@ -163,7 +163,7 @@ |
assert_equal(reporter, image, nullptr, decoded); |
// Now see if we can instantiate an image from a subset of the surface/origEncoded |
- |
+ |
decoded.reset(SkImage::NewFromEncoded(origEncoded, &ir)); |
REPORTER_ASSERT(reporter, decoded); |
assert_equal(reporter, image, &ir, decoded); |
@@ -877,7 +877,7 @@ |
for (auto budgeted : { SkBudgeted::kNo, SkBudgeted::kYes }) { |
SkAutoTUnref<SkImage> newImage( |
SkImage::NewFromDeferredTextureImageData(context, buffer, budgeted)); |
- REPORTER_ASSERT(reporter, newImage != nullptr); |
+ REPORTER_ASSERT(reporter, SkToBool(newImage)); |
if (newImage) { |
check_images_same(reporter, image, newImage); |
} |