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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp

Issue 2850593002: Revert of [blink] Unique pointers in Platform.h (Closed)
Patch Set: Created 3 years, 8 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/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();

Powered by Google App Engine
This is Rietveld 408576698