Title: [92335] branches/chromium/835/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp
- Revision
- 92335
- Author
- e...@google.com
- Date
- 2011-08-03 16:57:41 -0700 (Wed, 03 Aug 2011)
Log Message
Merge 92331 - [chromium] Fix issue where switching composited tabs evicts root textures
https://bugs.webkit.org/show_bug.cgi?id=65562
Reviewed by James Robinson.
LayerTilerChromium::protectTileTextures was hard-coding texture sizes
and texture formats. Because this didn't always match textures' actual
sizes and formats, they weren't getting protected during eviction.
* platform/graphics/chromium/LayerTilerChromium.cpp:
(WebCore::LayerTilerChromium::protectTileTextures):
TBR=e...@google.com
Review URL: http://codereview.chromium.org/7508041
Modified Paths
Diff
Modified: branches/chromium/835/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp (92334 => 92335)
--- branches/chromium/835/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp 2011-08-03 23:53:54 UTC (rev 92334)
+++ branches/chromium/835/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp 2011-08-03 23:57:41 UTC (rev 92335)
@@ -254,10 +254,10 @@
for (int j = top; j <= bottom; ++j) {
for (int i = left; i <= right; ++i) {
Tile* tile = tileAt(i, j);
- if (!tile || !tile->texture()->isValid(m_tileSize, GraphicsContext3D::RGBA))
+ if (!tile || !tile->texture()->isValid(m_tileSize, m_textureFormat))
continue;
- tile->texture()->reserve(m_tileSize, GraphicsContext3D::RGBA);
+ tile->texture()->reserve(m_tileSize, m_textureFormat);
}
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes