Changeset 63652 in webkit
- Timestamp:
- Jul 19, 2010 5:45:50 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r63649 r63652 1 2010-07-19 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Avoid QImage::pixel() in getImageData() 6 https://bugs.webkit.org/show_bug.cgi?id=42463 7 8 * platform/graphics/qt/ImageBufferQt.cpp: 9 (WebCore::getImageData): Use QImage::scanLine() instead 10 of fetching data pixel-by-pixel. 11 1 12 2010-07-19 Yury Semikhatsky <yurys@chromium.org> 2 13 -
trunk/WebCore/platform/graphics/qt/ImageBufferQt.cpp
r63606 r63652 187 187 unsigned char* destRows = data + desty * destBytesPerRow + destx * 4; 188 188 for (int y = 0; y < numRows; ++y) { 189 #if QT_VERSION >= 0x040700 190 const quint32* scanLine = reinterpret_cast<const quint32*>(image.constScanLine(y + originy)); 191 #else 192 quint32* scanLine = reinterpret_cast<quint32*>(image.scanLine(y + originy)); 193 #endif 189 194 for (int x = 0; x < numColumns; x++) { 190 QRgb value = image.pixel(x + originx, y + originy);195 QRgb value = scanLine[x + originx]; 191 196 int basex = x * 4; 192 197
Note: See TracChangeset
for help on using the changeset viewer.