| Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| index fafd1fd4583499a82e02d02e5e60af3142733b8d..23e4a5182a3843191acbda42d9736111aab6af52 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -242,8 +242,8 @@
|
| if (!texture_info || !texture_info->fID)
|
| return false;
|
|
|
| - std::unique_ptr<WebGraphicsContext3DProvider> provider =
|
| - Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider();
|
| + std::unique_ptr<WebGraphicsContext3DProvider> provider = WTF::WrapUnique(
|
| + Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider());
|
| if (!provider || !provider->GetGrContext())
|
| return false;
|
| gpu::gles2::GLES2Interface* shared_gl = provider->ContextGL();
|
| @@ -305,8 +305,8 @@
|
| SourceDrawingBuffer source_buffer) {
|
| if (!drawing_buffer || !surface_->IsAccelerated())
|
| return false;
|
| - std::unique_ptr<WebGraphicsContext3DProvider> provider =
|
| - Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider();
|
| + std::unique_ptr<WebGraphicsContext3DProvider> provider = WTF::WrapUnique(
|
| + Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider());
|
| if (!provider)
|
| return false;
|
| gpu::gles2::GLES2Interface* gl = provider->ContextGL();
|
|
|