Skip to content
  • zmo@google.com's avatar
    2010-11-11 Zhenyao Mo <zmo@google.com> · ac07f23e
    zmo@google.com authored
            Reviewed by Kenneth Russell.
    
            Implement UNPACK_COLORSPACE_CONVERSION_WEBGL
            https://bugs.webkit.org/show_bug.cgi?id=47196
    
            * src/WebImageDecoder.cpp:
            (WebKit::WebImageDecoder::init): Add ignoreGammaAndColorProfile parameter.
    2010-11-11  Zhenyao Mo  <zmo@google.com>
    
            Reviewed by Kenneth Russell.
    
            Implement UNPACK_COLORSPACE_CONVERSION_WEBGL
            https://bugs.webkit.org/show_bug.cgi?id=47196
    
            * html/canvas/WebGLRenderingContext.cpp:
            (WebCore::WebGLRenderingContext::texImage2DImpl): Apply UNPACK_COLORSPACE_CONVERSION settings to image uploading.
            (WebCore::WebGLRenderingContext::texSubImage2DImpl): Ditto.
            * platform/graphics/GraphicsContext3D.cpp:
            (WebCore::GraphicsContext3D::extractImageData): Ditto.
            * platform/graphics/GraphicsContext3D.h:
            * platform/graphics/ImageSource.cpp:
            (WebCore::ImageSource::ImageSource): Add ignoreGammaColorProfile parameter.
            (WebCore::ImageSource::setData): Ditto.
            * platform/graphics/ImageSource.h:
            * platform/graphics/cg/GraphicsContext3DCG.cpp:
            (WebCore::GraphicsContext3D::getImageData): Ditto.
            * platform/graphics/cg/ImageSourceCG.cpp:
            (WebCore::ImageSource::ImageSource): Ditto.
            * platform/graphics/qt/GraphicsContext3DQt.cpp:
            (WebCore::GraphicsContext3D::getImageData): Ditto.
            * platform/graphics/qt/ImageDecoderQt.cpp:
            (WebCore::ImageDecoder::create): Ditto.
            (WebCore::ImageDecoderQt::ImageDecoderQt): Ditto.
            * platform/graphics/qt/ImageDecoderQt.h:
            * platform/graphics/skia/GraphicsContext3DSkia.cpp:
            (WebCore::GraphicsContext3D::getImageData): Ditto.
            * platform/image-decoders/ImageDecoder.cpp:
            (WebCore::ImageDecoder::create): Ditto.
            * platform/image-decoders/ImageDecoder.h:
            (WebCore::ImageDecoder::ImageDecoder): Ditto.
            * platform/image-decoders/bmp/BMPImageDecoder.cpp:
            (WebCore::BMPImageDecoder::BMPImageDecoder):
            * platform/image-decoders/bmp/BMPImageDecoder.h:
            * platform/image-decoders/gif/GIFImageDecoder.cpp:
            (WebCore::GIFImageDecoder::GIFImageDecoder): Ditto.
            * platform/image-decoders/gif/GIFImageDecoder.h:
            * platform/image-decoders/ico/ICOImageDecoder.cpp:
            (WebCore::ICOImageDecoder::ICOImageDecoder): Ditto.
            (WebCore::ICOImageDecoder::decodeAtIndex): Ditto.
            * platform/image-decoders/ico/ICOImageDecoder.h:
            * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
            (WebCore::JPEGImageDecoder::JPEGImageDecoder): Ditto.
            * platform/image-decoders/jpeg/JPEGImageDecoder.h:
            * platform/image-decoders/png/PNGImageDecoder.cpp:
            (WebCore::PNGImageDecoder::PNGImageDecoder): Ditto.
            (WebCore::PNGImageDecoder::headerAvailable): Ignore gamma settings if ignoreGammaAndColorProfile is true.
            * platform/image-decoders/png/PNGImageDecoder.h:
            * platform/image-decoders/webp/WEBPImageDecoder.cpp:
            (WebCore::WEBPImageDecoder::WEBPImageDecoder): Add ignoreGammaAndColorProfile parameter.
            * platform/image-decoders/webp/WEBPImageDecoder.h:
    2010-11-11  Zhenyao Mo  <zmo@google.com>
    
            Reviewed by Kenneth Russell.
    
            Implement UNPACK_COLORSPACE_CONVERSION_WEBGL
            https://bugs.webkit.org/show_bug.cgi?id=47196
    
            * fast/canvas/webgl/gl-teximage-expected.txt:
            * fast/canvas/webgl/gl-teximage.html: Testing that if UNPACK_COLORSPACE_CONVERSION is NONE, gamma settings are not applied to images.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ac07f23e