| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index 517e57cbbb90e4399460b64cc984d936a17307bc..76aefbe1f68a818284d80f9a3209f2a91e344f05 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -592,10 +592,10 @@
|
| ContextProviderCreationInfo* creation_info,
|
| WaitableEvent* waitable_event) {
|
| ASSERT(IsMainThread());
|
| - creation_info->created_context_provider =
|
| + creation_info->created_context_provider = WTF::WrapUnique(
|
| Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
|
| creation_info->context_attributes, creation_info->url, 0,
|
| - creation_info->gl_info);
|
| + creation_info->gl_info));
|
| waitable_event->Signal();
|
| }
|
|
|
| @@ -659,9 +659,9 @@
|
| const auto& url = canvas ? canvas->GetDocument().TopDocument().Url()
|
| : ExecutionContext::From(script_state)->Url();
|
| if (IsMainThread()) {
|
| - context_provider =
|
| + context_provider = WTF::WrapUnique(
|
| Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
|
| - context_attributes, url, 0, &gl_info);
|
| + context_attributes, url, 0, &gl_info));
|
| } else {
|
| context_provider =
|
| CreateContextProviderOnWorkerThread(context_attributes, &gl_info, url);
|
| @@ -7499,9 +7499,9 @@
|
| const auto& url = host()->GetExecutionContextUrl();
|
|
|
| if (IsMainThread()) {
|
| - context_provider =
|
| + context_provider = WTF::WrapUnique(
|
| Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
|
| - attributes, url, 0, &gl_info);
|
| + attributes, url, 0, &gl_info));
|
| } else {
|
| context_provider =
|
| CreateContextProviderOnWorkerThread(attributes, &gl_info, url);
|
|
|