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 f75a01a7367165734a8e9d9ebee7dc25dffdab35..12a534b2f80de5677ba463f55bcf4bf6abdb3fcc 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); |
@@ -7500,9 +7500,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); |