| 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 99379a0a4a6627ac0dc0299563e24b3cbbd97516..878adbc06380f500d16bd7e498aae568c9a14bfa 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -242,8 +242,8 @@ bool ImageBuffer::CopyToPlatformTexture(SnapshotReason reason,
|
| if (!texture_info || !texture_info->fID)
|
| return false;
|
|
|
| - std::unique_ptr<WebGraphicsContext3DProvider> provider = WTF::WrapUnique(
|
| - Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider());
|
| + std::unique_ptr<WebGraphicsContext3DProvider> provider =
|
| + Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider();
|
| if (!provider || !provider->GetGrContext())
|
| return false;
|
| gpu::gles2::GLES2Interface* shared_gl = provider->ContextGL();
|
| @@ -305,8 +305,8 @@ bool ImageBuffer::CopyRenderingResultsFromDrawingBuffer(
|
| SourceDrawingBuffer source_buffer) {
|
| if (!drawing_buffer || !surface_->IsAccelerated())
|
| return false;
|
| - std::unique_ptr<WebGraphicsContext3DProvider> provider = WTF::WrapUnique(
|
| - Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider());
|
| + std::unique_ptr<WebGraphicsContext3DProvider> provider =
|
| + Platform::Current()->CreateSharedOffscreenGraphicsContext3DProvider();
|
| if (!provider)
|
| return false;
|
| gpu::gles2::GLES2Interface* gl = provider->ContextGL();
|
|
|