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

Unified Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 9249048: Add overloaded WebKitPlatformSupportImpl::createGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
Index: webkit/glue/webkitplatformsupport_impl.cc
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
index 91280b10af4d6464b9d3b87902fae3a2a2e0db91..26064fb27e412d960a06f4a1f70f03236275a106 100644
--- a/webkit/glue/webkitplatformsupport_impl.cc
+++ b/webkit/glue/webkitplatformsupport_impl.cc
@@ -569,6 +569,24 @@ WebKit::WebThread* WebKitPlatformSupportImpl::currentThread() {
return thread;
}
+WebKit::WebGraphicsContext3D*
+WebKitPlatformSupportImpl::createGraphicsContext3D() {
+ return WebKitPlatformSupport::createGraphicsContext3D();
+}
+
+WebKit::WebGraphicsContext3D*
+WebKitPlatformSupportImpl::createGraphicsContext3D(
+ WebKit::WebGraphicsContext3D::Attributes attributes,
+ WebKit::WebView* web_view,
+ bool render_to_web_view) {
+ scoped_ptr<WebKit::WebGraphicsContext3D> context(createGraphicsContext3D());
+ if (!context.get() ||
+ !context->initialize(attributes, web_view, render_to_web_view)) {
+ return NULL;
+ }
+ return context.release();
+}
+
base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile(
const WebKit::WebString& vfs_file_name, int desired_flags) {
return base::kInvalidPlatformFileValue;
« webkit/glue/webkitplatformsupport_impl.h ('K') | « webkit/glue/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698