Changeset 122037 in webkit


Ignore:
Timestamp:
Jul 6, 2012 3:44:57 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Avoid deep copy of QImage in GraphicsContext3D::getImageData()
https://bugs.webkit.org/show_bug.cgi?id=90705

Patch by Lauro Neto <lauro.neto@openbossa.org> on 2012-07-06
Reviewed by Noam Rosenthal.

Use QImage.constBits() as argument to packPixels instead of bits() to avoid
deep copying it.

  • platform/graphics/qt/GraphicsContext3DQt.cpp:

(WebCore::GraphicsContext3D::getImageData):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122036 r122037  
     12012-07-06  Lauro Neto  <lauro.neto@openbossa.org>
     2
     3        [Qt] Avoid deep copy of QImage in GraphicsContext3D::getImageData()
     4        https://bugs.webkit.org/show_bug.cgi?id=90705
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Use QImage.constBits() as argument to packPixels instead of bits() to avoid
     9        deep copying it.
     10
     11        * platform/graphics/qt/GraphicsContext3DQt.cpp:
     12        (WebCore::GraphicsContext3D::getImageData):
     13
    1142012-07-06  Andy Estes  <aestes@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp

    r121710 r122037  
    530530    outputVector.resize(packedSize);
    531531
    532     return packPixels(qtImage.bits(), SourceFormatBGRA8, image->width(), image->height(), 0, format, type, alphaOp, outputVector.data());
     532    return packPixels(qtImage.constBits(), SourceFormatBGRA8, image->width(), image->height(), 0, format, type, alphaOp, outputVector.data());
    533533}
    534534
Note: See TracChangeset for help on using the changeset viewer.