Changeset 86679 in webkit


Ignore:
Timestamp:
May 17, 2011 10:13:03 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-17 Grace Kloba <klobag@chromium.org>

Reviewed by Kenneth Russell.

GraphicsContext3DSkia needs to honor the platform Sk_x_SHIFT value instead of assuming BGRA color
https://bugs.webkit.org/show_bug.cgi?id=60965

  • platform/graphics/skia/GraphicsContext3DSkia.cpp: (WebCore::GraphicsContext3D::getImageData):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86674 r86679  
     12011-05-17  Grace Kloba  <klobag@chromium.org>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        GraphicsContext3DSkia needs to honor the platform Sk_x_SHIFT value instead of assuming BGRA color
     6        https://bugs.webkit.org/show_bug.cgi?id=60965
     7
     8        * platform/graphics/skia/GraphicsContext3DSkia.cpp:
     9        (WebCore::GraphicsContext3D::getImageData):
     10
    1112011-05-17  Alexander Pavlov  <apavlov@chromium.org>
    212
  • trunk/Source/WebCore/platform/graphics/skia/GraphicsContext3DSkia.cpp

    r84213 r86679  
    3535#include "ImageSource.h"
    3636#include "NativeImageSkia.h"
     37#include "SkColorPriv.h"
    3738#include <wtf/OwnPtr.h>
    3839#include <wtf/PassOwnPtr.h>
     
    8182    outputVector.resize(skiaImage->rowBytes() * skiaImage->height());
    8283    return packPixels(reinterpret_cast<const uint8_t*>(skiaImage->getPixels()),
    83                       SourceFormatBGRA8, skiaImage->width(), skiaImage->height(), 0,
     84                      SK_B32_SHIFT ? SourceFormatRGBA8 : SourceFormatBGRA8,
     85                      skiaImage->width(), skiaImage->height(), 0,
    8486                      format, type, neededAlphaOp, outputVector.data());
    8587}
Note: See TracChangeset for help on using the changeset viewer.