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

Unified Diff: webkit/support/webkit_support.cc

Issue 10662027: Remove deprecated version of webkit_support::CreateGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index a7a888905ea8e1b9c200ace17cac369796cf0fd1..66da94e278515a8974c1f5f6b9dddc3020596d06 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -443,24 +443,14 @@ GraphicsContext3DImplementation GetGraphicsContext3DImplementation() {
WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
const WebKit::WebGraphicsContext3D::Attributes& attributes,
WebKit::WebView* web_view) {
- return CreateGraphicsContext3D(attributes, web_view, true);
-}
-
-WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
- const WebKit::WebGraphicsContext3D::Attributes& attributes,
- WebKit::WebView* web_view,
- bool direct) {
switch (webkit_support::GetGraphicsContext3DImplementation()) {
case webkit_support::IN_PROCESS:
return WebGraphicsContext3DInProcessImpl::CreateForWebView(
- attributes, direct);
+ attributes, true /* direct */);
case webkit_support::IN_PROCESS_COMMAND_BUFFER: {
- WebKit::WebGraphicsContext3D* view_context = 0;
- if (!direct)
- view_context = web_view->graphicsContext3D();
scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context(
new WebGraphicsContext3DInProcessCommandBufferImpl());
- if (!context->Initialize(attributes, view_context))
+ if (!context->Initialize(attributes, NULL))
return NULL;
return context.release();
}
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698