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

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

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) 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 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();

Powered by Google App Engine
This is Rietveld 408576698