[chromium] Increase the size of the Ganesh texture cache to prevent performance probl...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 23:42:04 +0000 (23:42 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 23:42:04 +0000 (23:42 +0000)
The cache was previously 50 MB; it is now 96 MB.

Bug 76666 - Ganesh's Texture Cache is too small
https://bugs.webkit.org/show_bug.cgi?id=76666

Patch by Jeff Timanus <twiz@chromium.org> on 2012-01-27
Reviewed by Stephen White.

* src/GraphicsContext3DChromium.cpp:
(WebCore::GraphicsContext3DPrivate::grContext):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106164 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

index 83fdae4..85e3fd1 100644 (file)
@@ -1,3 +1,16 @@
+2012-01-27  Jeff Timanus  <twiz@chromium.org>
+
+        [chromium] Increase the size of the Ganesh texture cache to prevent performance problems on advanced Canvas2D pages.
+        The cache was previously 50 MB; it is now 96 MB.
+
+        Bug 76666 - Ganesh's Texture Cache is too small
+        https://bugs.webkit.org/show_bug.cgi?id=76666
+
+        Reviewed by Stephen White.
+
+        * src/GraphicsContext3DChromium.cpp:
+        (WebCore::GraphicsContext3DPrivate::grContext):
+
 2012-01-27  Adrienne Walker  <enne@google.com>
 
         [chromium] Don't ever skip drawing the non-composited content layer
index beeb94b..56a89e7 100644 (file)
@@ -210,7 +210,7 @@ GrContext* GraphicsContext3DPrivate::grContext()
     // Limit the number of textures we hold in the bitmap->texture cache.
     static const int maxTextureCacheCount = 512;
     // Limit the bytes allocated toward textures in the bitmap->texture cache.
-    static const size_t maxTextureCacheBytes = 50 * 1024 * 1024;
+    static const size_t maxTextureCacheBytes = 96 * 1024 * 1024;
 
     if (!m_grContext) {
         SkAutoTUnref<GrGLInterface> interface(m_impl->createGrGLInterface());