Bug 25856 - [Qt] Notify Cache an image is painted and purging can be triggered.
Summary: [Qt] Notify Cache an image is painted and purging can be triggered.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Yongjun Zhang
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-05-18 11:10 PDT by Yongjun Zhang
Modified: 2009-05-20 01:22 PDT (History)
1 user (show)

See Also:


Attachments
add observer()->didDraw() to notify cache that this image is drawn. (1.36 KB, patch)
2009-05-18 11:16 PDT, Yongjun Zhang
hausmann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yongjun Zhang 2009-05-18 11:10:20 PDT
The memory cache needs to be notified if an image is painted; this helps Cache to trigger an purging operation when alive resources reaches its capacity.
Comment 1 Yongjun Zhang 2009-05-18 11:16:06 PDT
Created attachment 30450 [details]
add observer()->didDraw() to notify cache that this image is drawn.

This helps reducing heap consumption for sites with large number of images.
Comment 2 Simon Hausmann 2009-05-20 01:21:55 PDT
Comment on attachment 30450 [details]
add observer()->didDraw() to notify cache that this image is drawn.

Good catch :)
Comment 3 Simon Hausmann 2009-05-20 01:22:36 PDT
Landed in r43892