Index: tests/ImageTest.cpp |
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp |
index 27e2e793faa02f9b0f788258c521e97364db0945..da9268dded166a514e1d349b8b8209abe8fca1eb 100644 |
--- a/tests/ImageTest.cpp |
+++ b/tests/ImageTest.cpp |
@@ -164,7 +164,7 @@ static void test_encode(skiatest::Reporter* reporter, SkImage* image) { |
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); |
@@ -878,7 +878,7 @@ DEF_GPUTEST_FOR_NATIVE_CONTEXT(DeferredTextureImage, reporter, context, glContex |
for (auto budgeted : { SkBudgeted::kNo, SkBudgeted::kYes }) { |
SkAutoTUnref<SkImage> newImage( |
SkImage::NewFromDeferredTextureImageData(context, buffer, budgeted)); |
- REPORTER_ASSERT(reporter, SkToBool(newImage)); |
+ REPORTER_ASSERT(reporter, newImage != nullptr); |
if (newImage) { |
check_images_same(reporter, image, newImage); |
} |