Chromium Code Reviews| Index: components/test_runner/test_plugin.cc |
| diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc |
| index 2efbb3f8d991eb54dc349cb64b4583bf54d84aaa..7e0b2d637e1ff8a33db10dd0b36da6cf5987b1f4 100644 |
| --- a/components/test_runner/test_plugin.cc |
| +++ b/components/test_runner/test_plugin.cc |
| @@ -24,6 +24,7 @@ |
| #include "third_party/WebKit/public/platform/WebTaskRunner.h" |
| #include "third_party/WebKit/public/platform/WebThread.h" |
| #include "third_party/WebKit/public/platform/WebTraceLocation.h" |
| +#include "third_party/WebKit/public/platform/WebURL.h" |
| #include "third_party/WebKit/public/web/WebFrame.h" |
| #include "third_party/WebKit/public/web/WebInputEvent.h" |
| #include "third_party/WebKit/public/web/WebKit.h" |
| @@ -173,11 +174,12 @@ TestPlugin::~TestPlugin() { |
| } |
| bool TestPlugin::initialize(blink::WebPluginContainer* container) { |
| - blink::WebGraphicsContext3D::Attributes attrs; |
| + blink::Platform::ContextAttributes attrs; |
| + blink::WebURL url("chrome://TestPlugin::initialize"); |
|
piman
2016/04/01 00:44:09
nit: How about container->element().document().url
danakj
2016/04/01 00:45:23
I was hoping to never have a null URL anymore. The
|
| blink::Platform::GraphicsInfo gl_info; |
| context_provider_ = make_scoped_ptr( |
| blink::Platform::current()->createOffscreenGraphicsContext3DProvider( |
| - attrs, nullptr, &gl_info)); |
| + attrs, url, nullptr, &gl_info)); |
| context_ = context_provider_ ? context_provider_->context3d() : nullptr; |
| gl_ = context_provider_ ? context_provider_->contextGL() : nullptr; |