Title: [197678] trunk/Source/WebCore
Revision
197678
Author
[email protected]
Date
2016-03-07 04:07:34 -0800 (Mon, 07 Mar 2016)

Log Message

[TextureMapper] [BitmapTexturePool] Use appropriate list size when freeing textures
https://bugs.webkit.org/show_bug.cgi?id=155105

Patch by Miguel Gomez <[email protected]> on 2016-03-07
Reviewed by Žan Doberšek.

Use appropriate list size when releasing the textures used as attachment.
This is a fix for the patch to https://bugs.webkit.org/show_bug.cgi?id=154965.

No new tests because no new functionality was added.

* platform/graphics/texmap/BitmapTexturePool.cpp:
(WebCore::BitmapTexturePool::releaseUnusedTexturesTimerFired):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (197677 => 197678)


--- trunk/Source/WebCore/ChangeLog	2016-03-07 11:36:19 UTC (rev 197677)
+++ trunk/Source/WebCore/ChangeLog	2016-03-07 12:07:34 UTC (rev 197678)
@@ -1,3 +1,18 @@
+2016-03-07  Miguel Gomez  <[email protected]>
+
+        [TextureMapper] [BitmapTexturePool] Use appropriate list size when freeing textures
+        https://bugs.webkit.org/show_bug.cgi?id=155105
+
+        Reviewed by Žan Doberšek.
+
+        Use appropriate list size when releasing the textures used as attachment.
+        This is a fix for the patch to https://bugs.webkit.org/show_bug.cgi?id=154965.
+
+        No new tests because no new functionality was added.
+
+        * platform/graphics/texmap/BitmapTexturePool.cpp:
+        (WebCore::BitmapTexturePool::releaseUnusedTexturesTimerFired):
+
 2016-03-06  Benjamin Poulain  <[email protected]>
 
         [JSC] Improve codegen of Compare and Test

Modified: trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp (197677 => 197678)


--- trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp	2016-03-07 11:36:19 UTC (rev 197677)
+++ trunk/Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp	2016-03-07 12:07:34 UTC (rev 197678)
@@ -92,7 +92,7 @@
 
         for (size_t i = 0; i < m_attachmentTextures.size(); ++i) {
             if (m_attachmentTextures[i].m_lastUsedTime < minUsedTime) {
-                m_attachmentTextures.remove(i, m_textures.size() - i);
+                m_attachmentTextures.remove(i, m_attachmentTextures.size() - i);
                 break;
             }
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to