Bug 66917 - [chromium] TextureManager overestimates the size of non-RGBA texture formats
Summary: [chromium] TextureManager overestimates the size of non-RGBA texture formats
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrienne Walker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 18:23 PDT by Adrienne Walker
Modified: 2011-09-01 16:03 PDT (History)
6 users (show)

See Also:


Attachments
Patch (4.18 KB, patch)
2011-08-31 16:11 PDT, Adrienne Walker
jamesr: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrienne Walker 2011-08-24 18:23:50 PDT
Currently, the TextureManager estimates everything as being 4bpp.  (See the FIXME in memoryUseBytes in TextureManager.cpp.) This should consider the format when calculating the size.
Comment 1 Adrienne Walker 2011-08-31 16:11:51 PDT
Created attachment 105851 [details]
Patch
Comment 2 WebKit Review Bot 2011-08-31 18:15:29 PDT
Comment on attachment 105851 [details]
Patch

Attachment 105851 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/9578161

New failing tests:
http/tests/loading/empty-urls.html
Comment 3 Vangelis Kokkevis 2011-08-31 22:28:20 PDT
Comment on attachment 105851 [details]
Patch

This looks good.  I'm curious though, what textures that the texture manager deals with are not 4bpp ?
Comment 4 Adrienne Walker 2011-09-01 09:35:12 PDT
(In reply to comment #3)
> (From update of attachment 105851 [details])
> This looks good.  I'm curious though, what textures that the texture manager deals with are not 4bpp ?

I recently changed VideoLayerChromium to reserve textures via the texture manager, and that can use luminance textures.
Comment 5 James Robinson 2011-09-01 09:47:22 PDT
Comment on attachment 105851 [details]
Patch

R=me
Comment 6 Adrienne Walker 2011-09-01 16:03:01 PDT
Committed r94356: <http://trac.webkit.org/changeset/94356>