Title: [104636] trunk/Source/WebCore
- Revision
- 104636
- Author
- [email protected]
- Date
- 2012-01-10 15:19:03 -0800 (Tue, 10 Jan 2012)
Log Message
[chromium] Correctly recreate DrawingBuffer on lost device
https://bugs.webkit.org/show_bug.cgi?id=75912
Patch by John Bauman <[email protected]> on 2012-01-10
Reviewed by Kenneth Russell.
Create new drawing buffer on new context, not old lost context. Also,
make sure to bind new drawing buffer.
No new tests.
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::maybeRestoreContext):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (104635 => 104636)
--- trunk/Source/WebCore/ChangeLog 2012-01-10 23:17:33 UTC (rev 104635)
+++ trunk/Source/WebCore/ChangeLog 2012-01-10 23:19:03 UTC (rev 104636)
@@ -1,3 +1,18 @@
+2012-01-10 John Bauman <[email protected]>
+
+ [chromium] Correctly recreate DrawingBuffer on lost device
+ https://bugs.webkit.org/show_bug.cgi?id=75912
+
+ Reviewed by Kenneth Russell.
+
+ Create new drawing buffer on new context, not old lost context. Also,
+ make sure to bind new drawing buffer.
+
+ No new tests.
+
+ * html/canvas/WebGLRenderingContext.cpp:
+ (WebCore::WebGLRenderingContext::maybeRestoreContext):
+
2012-01-10 Stephen White <[email protected]>
[Chromium] Partial revert of r104566, since it breaks the shared
Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp (104635 => 104636)
--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp 2012-01-10 23:17:33 UTC (rev 104635)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp 2012-01-10 23:19:03 UTC (rev 104636)
@@ -5037,7 +5037,8 @@
// Construct a new drawing buffer with the new GraphicsContext3D.
if (m_drawingBuffer) {
m_drawingBuffer->discardResources();
- m_drawingBuffer = DrawingBuffer::create(m_context.get(), m_drawingBuffer->size(), !m_attributes.preserveDrawingBuffer);
+ m_drawingBuffer = DrawingBuffer::create(context.get(), m_drawingBuffer->size(), !m_attributes.preserveDrawingBuffer);
+ m_drawingBuffer->bind();
}
m_context = context;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes