WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 165039
169473
REGRESSION(
r213618
): Large async image decoding should only be requested at the time the BitmapImage is drawn
https://bugs.webkit.org/show_bug.cgi?id=169473
Summary
REGRESSION(r213618): Large async image decoding should only be requested at t...
Said Abou-Hallawa
Reported
2017-03-10 09:31:56 PST
In <
http://trac.webkit.org/changeset/213618
>, the large async image decoding was requested for all the images in the tileCoverageRect of the tileGrid. This turned out to be inefficient approach because tileCoverageRect represents the rectangle from the page that should be cached in tiles. This rectangle includes dirty and clean rectangles. But when requesting the async image decoding, we enumerate all the images in tileCoverageRect regardless whether they are in dirty rects, i.e. they are going to be drawn. Or they are in clean rects, i.e. they are not going to be drawn. This causes more CPU to be wasted needlessly. And more importantly a memory regression due to aggressive async decoding for images which are not going to be drawn. These images were drawn on tiles and those tiles were kept clean so their frames were destroyed by the MemoryCache to keep the memory under control. But requesting the async decoding for those images, bring their frames back to memory. The fix is to request the async image decoding only at the time that a BitmapImage is drawn. This is the time that we are sure, a BitmapImage needs to be drawn. It also fixes the scaling and transformation that we need to apply to sizeForDrawing since all of them have to be applied to the GraphicsContext.
Attachments
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2017-03-10 09:33:21 PST
<
rdar://problem/30948700
>
Said Abou-Hallawa
Comment 2
2017-03-10 10:18:53 PST
<
http://trac.webkit.org/changeset/213618
> was rolled out. No need for this bug anymore. *** This bug has been marked as a duplicate of
bug 165039
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug