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; |