Title: [91823] trunk/Source/WebCore
- Revision
- 91823
- Author
- [email protected]
- Date
- 2011-07-26 20:48:27 -0700 (Tue, 26 Jul 2011)
Log Message
[chromium] REGRESSION(90963): Content layers are not redrawn after losing the compositor context
https://bugs.webkit.org/show_bug.cgi?id=65224
Patch by James Robinson <[email protected]> on 2011-07-26
Reviewed by Kenneth Russell.
There's no automated way to test lost compositor contexts (yet), but to test manually open up the poster circle
page and kill the GPU process.
* platform/graphics/chromium/ContentLayerChromium.cpp:
(WebCore::ContentLayerChromium::cleanupResources):
* platform/graphics/chromium/ContentLayerChromium.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (91822 => 91823)
--- trunk/Source/WebCore/ChangeLog 2011-07-27 03:42:22 UTC (rev 91822)
+++ trunk/Source/WebCore/ChangeLog 2011-07-27 03:48:27 UTC (rev 91823)
@@ -1,3 +1,17 @@
+2011-07-26 James Robinson <[email protected]>
+
+ [chromium] REGRESSION(90963): Content layers are not redrawn after losing the compositor context
+ https://bugs.webkit.org/show_bug.cgi?id=65224
+
+ Reviewed by Kenneth Russell.
+
+ There's no automated way to test lost compositor contexts (yet), but to test manually open up the poster circle
+ page and kill the GPU process.
+
+ * platform/graphics/chromium/ContentLayerChromium.cpp:
+ (WebCore::ContentLayerChromium::cleanupResources):
+ * platform/graphics/chromium/ContentLayerChromium.h:
+
2011-07-26 Sheriff Bot <[email protected]>
Unreviewed, rolling out r91805.
Modified: trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp (91822 => 91823)
--- trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp 2011-07-27 03:42:22 UTC (rev 91822)
+++ trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp 2011-07-27 03:48:27 UTC (rev 91823)
@@ -85,6 +85,12 @@
cleanupResources();
}
+void ContentLayerChromium::cleanupResources()
+{
+ m_textureUpdater.clear();
+ TiledLayerChromium::cleanupResources();
+}
+
void ContentLayerChromium::paintContentsIfDirty()
{
ASSERT(drawsContent());
Modified: trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.h (91822 => 91823)
--- trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.h 2011-07-27 03:42:22 UTC (rev 91822)
+++ trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.h 2011-07-27 03:48:27 UTC (rev 91823)
@@ -57,6 +57,7 @@
virtual const char* layerTypeAsString() const { return "ContentLayer"; }
+ virtual void cleanupResources();
virtual bool drawsContent() const;
virtual void createTextureUpdaterIfNeeded();
virtual LayerTextureUpdater* textureUpdater() const { return m_textureUpdater.get(); }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes