Bug 22404 - wx port has poor image performance
Summary: wx port has poor image performance
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit wx (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 07:20 PST by Kevin Watters
Modified: 2008-11-21 19:09 PST (History)
0 users

See Also:


Attachments
Use DrawBitmap instead of Blit and avoid costly image rescaling (3.93 KB, patch)
2008-11-21 07:23 PST, Kevin Watters
kevino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Watters 2008-11-21 07:20:52 PST
Currently if when drawing an image the destination rectangle doesn't match the size of the image, we rescale it manually. But wxGraphicsContext supports image resizing "automatically" and more efficiently by just passing the correct coordinates. We should use the capabilities of the API.
Comment 1 Kevin Watters 2008-11-21 07:23:05 PST
Created attachment 25354 [details]
Use DrawBitmap instead of Blit and avoid costly image rescaling

Makes the wxGraphicsContext image drawing path more efficient by using DrawBitmap and wxGraphicsContext's ability to render rescaled images for us.
Comment 2 Kevin Ollivier 2008-11-21 19:09:04 PST
Landed in r38685, thanks!