BitmapImage assumes the cached size is always width * height * 4. For platforms that implement deferred image decoding or have platform image backed by a texture would use no system memory. For these cases it is best to query the platform image decoder to determine the frame size such that these frames are not managed by WebKit's memory cached.
Created attachment 158914 [details]
Created attachment 158917 [details]
Comment on attachment 158917 [details]
Attachment 158917 [details] did not pass win-ews (win):
Created attachment 158966 [details]
(In reply to comment #4)
> Created an attachment (id=158966) [details]
> 294 return m_size.width() * m_size.height() * 4;
You can use IntSize::area(). How about m_size.area() * sizeof(PixelData)?
Created attachment 159497 [details]
Comment on attachment 159497 [details]
Clearing flags on attachment: 159497
Committed r126892: <http://trac.webkit.org/changeset/126892>
All reviewed patches have been landed. Closing bug.