Skip to content
Permalink
Browse files
[chromium] WebViewImpl should not reshape the 3D context
https://bugs.webkit.org/show_bug.cgi?id=66704

Patch by Iain Merrick <husky@google.com> on 2011-08-22
Reviewed by James Robinson.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::createLayerTreeHostContext3D):
(WebKit::WebViewImpl::graphicsContext3D):

Canonical link: https://commits.webkit.org/82545@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@93566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Iain Merrick authored and webkit-commit-queue committed Aug 23, 2011
1 parent f7a61ff commit 4d54133d7117c77f24b4d647aea91d4a8d3ec552
Showing 2 changed files with 11 additions and 4 deletions.
@@ -1,3 +1,14 @@
2011-08-22 Iain Merrick <husky@google.com>

[chromium] WebViewImpl should not reshape the 3D context
https://bugs.webkit.org/show_bug.cgi?id=66704

Reviewed by James Robinson.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::createLayerTreeHostContext3D):
(WebKit::WebViewImpl::graphicsContext3D):

2011-08-22 Nat Duca <nduca@chromium.org>

Make GraphicsContext3D::isResourceSafe a function and, on Chromium, determine its value lazily
@@ -2643,8 +2643,6 @@ PassRefPtr<GraphicsContext3D> WebViewImpl::createLayerTreeHostContext3D()
RefPtr<GraphicsContext3D> context = m_temporaryOnscreenGraphicsContext3D.release();
if (!context) {
context = GraphicsContext3D::create(getCompositorContextAttributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyToHostWindow);
if (context)
context->reshape(max(1, m_size.width), max(1, m_size.height));
}
return context;
}
@@ -2707,8 +2705,6 @@ WebGraphicsContext3D* WebViewImpl::graphicsContext3D()
return webContext;
}
m_temporaryOnscreenGraphicsContext3D = GraphicsContext3D::create(getCompositorContextAttributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyToHostWindow);
if (m_temporaryOnscreenGraphicsContext3D)
m_temporaryOnscreenGraphicsContext3D->reshape(max(1, m_size.width), max(1, m_size.height));
return GraphicsContext3DInternal::extractWebGraphicsContext3D(m_temporaryOnscreenGraphicsContext3D.get());
}
#endif

0 comments on commit 4d54133

Please sign in to comment.