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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 04ae3c0f4c4b88d04dc13ea5d87e69732cfcd376..a68cc16329cda8d5a92dfc76f98cb94e83edc0e4 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -46,7 +46,6 @@
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/gpu/Extensions3DUtil.h"
#include "public/platform/WebCanvas.h"
-#include <memory>
namespace blink {
@@ -295,7 +294,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?
- std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::create(intrinsicSize);
+ OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(intrinsicSize);
if (!imageBuffer) {
*status = InvalidSourceImageStatus;
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698