| 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
|
|
|