Title: [107161] trunk/Source/WebCore
- Revision
- 107161
- Author
- [email protected]
- Date
- 2012-02-08 17:56:03 -0800 (Wed, 08 Feb 2012)
Log Message
[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
Patch by James Robinson <[email protected]> on 2012-02-08
Reviewed by Kenneth Russell.
* platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
(WebCore::CCSingleThreadProxy::context):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (107160 => 107161)
--- trunk/Source/WebCore/ChangeLog 2012-02-09 01:50:05 UTC (rev 107160)
+++ trunk/Source/WebCore/ChangeLog 2012-02-09 01:56:03 UTC (rev 107161)
@@ -1,3 +1,13 @@
+2012-02-08 James Robinson <[email protected]>
+
+ [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 <[email protected]>
https://bugs.webkit.org/show_bug.cgi?id=78157
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.cpp (107160 => 107161)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.cpp 2012-02-09 01:50:05 UTC (rev 107160)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.cpp 2012-02-09 01:56:03 UTC (rev 107161)
@@ -95,6 +95,8 @@
GraphicsContext3D* CCSingleThreadProxy::context()
{
ASSERT(CCProxy::isMainThread());
+ if (m_contextBeforeInitialization)
+ return m_contextBeforeInitialization.get();
DebugScopedSetImplThread impl;
return m_layerTreeHostImpl->context();
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes