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

Unified Diff: tests/ImageTest.cpp

Issue 1809693002: Revert of Use std::unique_ptr. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « tests/ClearTest.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « tests/ClearTest.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698