| Index: components/test_runner/test_plugin.cc
|
| diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc
|
| index e8793fd4ec9f9a616adc3a404a05f297d5db8748..4753782cdd638b4471b1729a22a6ac9507d94fcb 100644
|
| --- a/components/test_runner/test_plugin.cc
|
| +++ b/components/test_runner/test_plugin.cc
|
| @@ -185,7 +185,9 @@ bool TestPlugin::initialize(blink::WebPluginContainer* container) {
|
| blink::Platform::GraphicsInfo gl_info;
|
| context_provider_ = base::WrapUnique(
|
| blink::Platform::current()->createOffscreenGraphicsContext3DProvider(
|
| - attrs, url, nullptr, &gl_info, blink::Platform::BindToCurrentThread));
|
| + attrs, url, nullptr, &gl_info));
|
| + if (!context_provider_->bindToCurrentThread())
|
| + context_provider_ = nullptr;
|
| gl_ = context_provider_ ? context_provider_->contextGL() : nullptr;
|
|
|
| if (!InitScene())
|
|
|