Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Unified Diff: components/test_runner/test_plugin.cc

Issue 1844363003: Move WebGraphicsContext3D::Attributes to Platform::ContextAttributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rm-alphadepthetc
Patch Set: move-attributes: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | content/renderer/renderer_blink_platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2ac4634dcdc5f3e461cf87c4f47e2012eebce231 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,14 @@ TestPlugin::~TestPlugin() {
}
bool TestPlugin::initialize(blink::WebPluginContainer* container) {
- blink::WebGraphicsContext3D::Attributes attrs;
+ blink::Platform::ContextAttributes attrs;
+ DCHECK(!container->element().isNull());
+ DCHECK(!container->element().document().isNull());
+ blink::WebURL url = container->element().document().url();
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;
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | content/renderer/renderer_blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698