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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp

Issue 1983793002: Remove OwnPtr::release() calls in platform/ (part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add one more file. Created 4 years, 7 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 | third_party/WebKit/Source/platform/image-encoders/JPEGImageEncoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
index 6386c22cd54a52b78f615c2dcf755287c370a85f..4de383f72f2bde3bb713fc54b07ba97d30421b69 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
@@ -83,7 +83,7 @@ void readYUV(size_t maxDecodedBytes, unsigned* outputYWidth, unsigned* outputYHe
// Setting a dummy ImagePlanes object signals to the decoder that we want to do YUV decoding.
OwnPtr<ImagePlanes> dummyImagePlanes = adoptPtr(new ImagePlanes());
- decoder->setImagePlanes(dummyImagePlanes.release());
+ decoder->setImagePlanes(std::move(dummyImagePlanes));
bool sizeIsAvailable = decoder->isSizeAvailable();
ASSERT_TRUE(sizeIsAvailable);
@@ -115,7 +115,7 @@ void readYUV(size_t maxDecodedBytes, unsigned* outputYWidth, unsigned* outputYHe
planes[2] = ((char*) planes[1]) + rowBytes[1] * uSize.height();
OwnPtr<ImagePlanes> imagePlanes = adoptPtr(new ImagePlanes(planes, rowBytes));
- decoder->setImagePlanes(imagePlanes.release());
+ decoder->setImagePlanes(std::move(imagePlanes));
ASSERT_TRUE(decoder->decodeToYUV());
}
@@ -251,7 +251,7 @@ TEST(JPEGImageDecoderTest, yuv)
decoder->setData(data.get(), true);
OwnPtr<ImagePlanes> imagePlanes = adoptPtr(new ImagePlanes());
- decoder->setImagePlanes(imagePlanes.release());
+ decoder->setImagePlanes(std::move(imagePlanes));
ASSERT_TRUE(decoder->isSizeAvailable());
ASSERT_FALSE(decoder->canDecodeToYUV());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/image-encoders/JPEGImageEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698