Bug 89761

Summary: [Chromium/Skia] Increase the GrContext texture cache count cap to 2K
Product: WebKit Reporter: Brian Salomon <bsalomon>
Component: CanvasAssignee: Brian Salomon <bsalomon>
Status: RESOLVED FIXED    
Severity: Normal CC: bsalomon, senorblanco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Brian Salomon 2012-06-22 08:48:27 PDT
Increase the GrContext texture cache count cap to 2K
Comment 1 Brian Salomon 2012-06-22 08:52:12 PDT
Created attachment 149035 [details]
Patch
Comment 2 Brian Salomon 2012-06-22 08:56:07 PDT
I had removed the count cap from Skia but it proved to be problematic. Randomly changing gradients produce many tiny textures. Managing lots of textures causes perf problems on some drivers. We have plans to change how gradient color tables work (http://code.google.com/p/skia/issues/detail?id=670) but if tons of small textures is a problem then it probably makes sense to keep the cap anyway.
Comment 3 Stephen White 2012-06-22 10:25:25 PDT
Comment on attachment 149035 [details]
Patch

OK.  r=me
Comment 4 Brian Salomon 2012-06-22 10:50:49 PDT
Oops.. I forgot to set c? after uploading.
Comment 5 WebKit Review Bot 2012-06-22 11:32:22 PDT
Comment on attachment 149035 [details]
Patch

Clearing flags on attachment: 149035

Committed r121044: <http://trac.webkit.org/changeset/121044>
Comment 6 WebKit Review Bot 2012-06-22 11:32:53 PDT
All reviewed patches have been landed.  Closing bug.