RESOLVED FIXED86764
[chromium] Limiting render surface texture manager memory to 0 when contentsMemoryUseBytes is large.
https://bugs.webkit.org/show_bug.cgi?id=86764
Summary [chromium] Limiting render surface texture manager memory to 0 when contentsM...
Michal Mocny
Reported 2012-05-17 11:55:01 PDT
[chromium] Limiting render surface texture manager memory to 0 when contentsMemoryUseBytes is large.
Attachments
Patch (1.72 KB, patch)
2012-05-17 11:55 PDT, Michal Mocny
no flags
Michal Mocny
Comment 1 2012-05-17 11:55:25 PDT
Michal Mocny
Comment 2 2012-05-17 11:57:43 PDT
Patch fixes a bug where renderSurfaceTextureManager memory set to a large value due to unchecked unsigned subtraction. contentsMemoryUseBytes can be higher than TextureManager::highLimitBytes when memory limits are increased. There is an open issue to improve synchronization between render surface texture manager and contents surface texture manager.
Adrienne Walker
Comment 3 2012-05-17 12:03:12 PDT
Comment on attachment 142520 [details] Patch Eep. R=me. Can you explain a little bit more how we get into this situation? If the memory limit is increased, why does maxLimit not represent that?
Michal Mocny
Comment 4 2012-05-17 12:07:59 PDT
Sure, highLimitBytes is a static function that returns a hard coded limit based on viewport size. LRC doesn't actually have access to contents TextureManager so it cannot query to actually current max memory limit. Instead, it uses the conservative lower limit of assuming the default. However, contentsTextureAllocator tracks texture memory usage and is used by LRC to get the actual current usage, which can now be higher than the default maximum.
WebKit Review Bot
Comment 5 2012-05-17 13:03:23 PDT
Comment on attachment 142520 [details] Patch Clearing flags on attachment: 142520 Committed r117485: <http://trac.webkit.org/changeset/117485>
WebKit Review Bot
Comment 6 2012-05-17 13:03:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.