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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
Index: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
index 34679f5d9c2db47f591799510c71acd9cf0976bb..3ed6e66a33fef23d3d43d9e2917e01996542bc9b 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
@@ -75,8 +75,8 @@ mailing address.
#include "platform/image-decoders/gif/GIFImageReader.h"
#include "platform/Histogram.h"
+#include "wtf/PtrUtil.h"
#include "wtf/Threading.h"
-
#include <string.h>
using blink::GIFImageDecoder;
@@ -336,7 +336,7 @@ bool GIFFrameContext::decode(blink::FastSharedBufferReader* reader, blink::GIFIm
if (!isDataSizeDefined() || !isHeaderDefined())
return true;
- m_lzwContext = adoptPtr(new GIFLZWContext(client, this));
+ m_lzwContext = wrapUnique(new GIFLZWContext(client, this));
if (!m_lzwContext->prepareToDecode()) {
m_lzwContext.reset();
return false;
@@ -827,7 +827,7 @@ void GIFImageReader::setRemainingBytes(size_t remainingBytes)
void GIFImageReader::addFrameIfNecessary()
{
if (m_frames.isEmpty() || m_frames.last()->isComplete())
- m_frames.append(adoptPtr(new GIFFrameContext(m_frames.size())));
+ m_frames.append(wrapUnique(new GIFFrameContext(m_frames.size())));
}
// FIXME: Move this method to close to doLZW().

Powered by Google App Engine
This is Rietveld 408576698