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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.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/gpu/SharedGpuContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
index e0b6a38895a66564bb3fe8cecf3afca4bb7209c5..8b580b27785e154a6bf0efa8d46f1c05f5bac885 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
@@ -31,9 +31,9 @@ void SharedGpuContext::CreateContextProviderOnMainThread(
Platform::ContextAttributes context_attributes;
context_attributes.web_gl_version = 1; // GLES2
Platform::GraphicsInfo graphics_info;
- context_provider_ = WTF::WrapUnique(
+ context_provider_ =
Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
- context_attributes, WebURL(), nullptr, &graphics_info));
+ context_attributes, WebURL(), nullptr, &graphics_info);
if (waitable_event)
waitable_event->Signal();
}
@@ -50,9 +50,8 @@ void SharedGpuContext::CreateContextProviderIfNeeded() {
// This path should only be used in unit tests
context_provider_ = context_provider_factory_();
} else if (IsMainThread()) {
- context_provider_ =
- WTF::WrapUnique(blink::Platform::Current()
- ->CreateSharedOffscreenGraphicsContext3DProvider());
+ context_provider_ = blink::Platform::Current()
+ ->CreateSharedOffscreenGraphicsContext3DProvider();
} else {
// This synchronous round-trip to the main thread is the reason why
// SharedGpuContext encasulates the context provider: so we only have to do

Powered by Google App Engine
This is Rietveld 408576698