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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge. 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/core/html/canvas/CanvasAsyncBlobCreator.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
index f07dfc7c3c14773391244ab7240b32aa8c77e7fc..a2c6d22a71143f59b1eacb0ce48989b2f75a6636 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
@@ -7,9 +7,9 @@
#include "core/fileapi/BlobCallback.h"
#include "platform/geometry/IntSize.h"
#include "platform/heap/Handle.h"
-#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -64,10 +64,10 @@ protected:
private:
friend class CanvasAsyncBlobCreatorTest;
- OwnPtr<PNGImageEncoderState> m_pngEncoderState;
- OwnPtr<JPEGImageEncoderState> m_jpegEncoderState;
+ std::unique_ptr<PNGImageEncoderState> m_pngEncoderState;
+ std::unique_ptr<JPEGImageEncoderState> m_jpegEncoderState;
Member<DOMUint8ClampedArray> m_data;
- OwnPtr<Vector<unsigned char>> m_encodedImage;
+ std::unique_ptr<Vector<unsigned char>> m_encodedImage;
int m_numRowsCompleted;
const IntSize m_size;

Powered by Google App Engine
This is Rietveld 408576698