diff options
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp b/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp index ea7f227..6acaed5 100644 --- a/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp +++ b/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp @@ -27,6 +27,10 @@ #include "config.h" #include "ImageDecoder.h" +#if PLATFORM(SGL) +#include "SkBitmapRef.h" +#endif + namespace WebCore { RGBA32Buffer::RGBA32Buffer() @@ -81,7 +85,11 @@ bool RGBA32Buffer::setSize(int newWidth, int newHeight) NativeImagePtr RGBA32Buffer::asNewNativeImage() const { +#if PLATFORM(SGL) + return new SkBitmapRef(m_bitmap); +#else return new NativeImageSkia(m_bitmap); +#endif } bool RGBA32Buffer::hasAlpha() const |