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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.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/core/html/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index a68cc16329cda8d5a92dfc76f98cb94e83edc0e4..04ae3c0f4c4b88d04dc13ea5d87e69732cfcd376 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -46,6 +46,7 @@
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/gpu/Extensions3DUtil.h"
#include "public/platform/WebCanvas.h"
+#include <memory>
namespace blink {
@@ -294,7 +295,7 @@ PassRefPtr<Image> HTMLVideoElement::getSourceImageForCanvas(SourceImageStatus* s
IntSize intrinsicSize(videoWidth(), videoHeight());
// FIXME: Not sure if we dhould we be doing anything with the AccelerationHint argument here?
- OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(intrinsicSize);
+ std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::create(intrinsicSize);
if (!imageBuffer) {
*status = InvalidSourceImageStatus;
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698