Index: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp |
index ac88b3d3d8c066136131b2f7aa9719f45976c96e..aa45be3a01e44effe6753dd2faabf2521862b325 100644 |
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp |
@@ -14,6 +14,8 @@ |
#include "third_party/skia/include/core/SkImage.h" |
#include "third_party/skia/include/core/SkPaint.h" |
#include "third_party/skia/include/core/SkShader.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -74,7 +76,7 @@ PassRefPtr<SkImage> StaticBitmapImage::imageForCurrentFrame() |
// In the place when we consume an ImageBitmap that is gpu texture backed, |
// create a new SkImage from that texture. |
// TODO(xidachen): make this work on a worker thread. |
- OwnPtr<WebGraphicsContext3DProvider> provider = adoptPtr(Platform::current()->createSharedOffscreenGraphicsContext3DProvider()); |
+ std::unique_ptr<WebGraphicsContext3DProvider> provider = wrapUnique(Platform::current()->createSharedOffscreenGraphicsContext3DProvider()); |
if (!provider) |
return nullptr; |
GrContext* grContext = provider->grContext(); |