summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 01:46:58 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 01:46:58 +0000
commit29dea0ec593b0e2b9331fafa3d758564f75b00b8 (patch)
tree6c1c8ae070f5337a7ba0e0cb7bc4af402b79a5d1 /content/renderer/render_view_impl.cc
parent508eabd61e653e00f278e1bd36118ce16d9d4b80 (diff)
downloadchromium_src-29dea0ec593b0e2b9331fafa3d758564f75b00b8.zip
chromium_src-29dea0ec593b0e2b9331fafa3d758564f75b00b8.tar.gz
chromium_src-29dea0ec593b0e2b9331fafa3d758564f75b00b8.tar.bz2
Remove renderDirectlyToWebView parameter from WebViewClient::createGraphicsContext3D
Callers all removed in http://trac.webkit.org/changeset/110773/ BUG=none TEST=compiles Review URL: http://codereview.chromium.org/9705036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_impl.cc')
-rw-r--r--content/renderer/render_view_impl.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 09ce2cd..681d3e9 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1557,12 +1557,6 @@ WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace(
WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D(
const WebGraphicsContext3D::Attributes& attributes) {
- return createGraphicsContext3D(attributes, true);
-}
-
-WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D(
- const WebGraphicsContext3D::Attributes& attributes,
- bool direct) {
if (!webview())
return NULL;
// The WebGraphicsContext3DInProcessImpl code path is used for
@@ -1570,21 +1564,15 @@ WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D(
// debugging and bringing up new ports.
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessWebGL)) {
return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView(
- attributes, direct);
+ attributes, true);
} else {
- int surface = direct ? surface_id() : 0;
-
GURL url;
if (webview()->mainFrame())
url = GURL(webview()->mainFrame()->document().url());
- base::WeakPtr<WebGraphicsContext3DSwapBuffersClient> swap_client;
- if (direct)
- swap_client = AsWeakPtr();
-
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context(
new WebGraphicsContext3DCommandBufferImpl(
- surface, url, RenderThreadImpl::current(), swap_client));
+ surface_id(), url, RenderThreadImpl::current(), AsWeakPtr()));
if (!context->Initialize(attributes))
return NULL;