Bug 40910

Summary: [Qt] Avoid unnecessary image conversion in RGBA32Buffer::zeroFill()
Product: WebKit Reporter: Balazs Kelemen <kbalazs>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: CLOSED FIXED    
Severity: Normal CC: benjamin, commit-queue, hausmann
Priority: P2 Keywords: Performance, Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
proposed patch none

Description Balazs Kelemen 2010-06-21 05:14:46 PDT
It is totally useless to converting the QImage for the QPixmap and then fill the pixmap with zero. Instead of this we can create an empty pixmap with the appropriate dimensions and fill that.
Comment 1 Balazs Kelemen 2010-06-21 05:18:49 PDT
Created attachment 59242 [details]
proposed patch
Comment 2 Benjamin Poulain 2010-06-21 05:49:54 PDT
You are right, I did an unfortunate copy-paste there.
Comment 3 WebKit Commit Bot 2010-06-21 07:08:48 PDT
Comment on attachment 59242 [details]
proposed patch

Clearing flags on attachment: 59242

Committed r61540: <http://trac.webkit.org/changeset/61540>
Comment 4 WebKit Commit Bot 2010-06-21 07:08:53 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Simon Hausmann 2010-06-21 07:21:51 PDT
Revision r61540 cherry-picked into qtwebkit-2.0 with commit 45d1c9149ef8940081fa8dd35854d2b95ebaf3cd