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 da3a88f1517147889c460c4d2f956d2d25b24eb3..2b13bd1747c820da67f00fc40da2db7a71ec8fb9 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(); |