https://bugs.webkit.org/show_bug.cgi?id=78154
Patch by James Robinson <jamesr@chromium.org> on 2012-02-08
Reviewed by Kenneth Russell.
* platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
(WebCore::CCSingleThreadProxy::context):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107161
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-08 James Robinson <jamesr@chromium.org>
+
+ [chromium] Avoid creating a temporary GraphicsContext3D if someone requests the WebView's GraphicsContext3D before initialization is complete
+ https://bugs.webkit.org/show_bug.cgi?id=78154
+
+ Reviewed by Kenneth Russell.
+
+ * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
+ (WebCore::CCSingleThreadProxy::context):
+
2012-02-08 David Hyatt <hyatt@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=78157
GraphicsContext3D* CCSingleThreadProxy::context()
{
ASSERT(CCProxy::isMainThread());
+ if (m_contextBeforeInitialization)
+ return m_contextBeforeInitialization.get();
DebugScopedSetImplThread impl;
return m_layerTreeHostImpl->context();
}