summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-17 14:35:19 +0100
committerBen Murdoch <benm@google.com>2009-08-17 14:38:14 +0100
commit941e55a7dc3545117c4f6951b7146307dc5e52f6 (patch)
treec94ac28805e85be59ac64f4071dac326ea6c22d1 /WebCore
parent6461f0be0cee2f8080a648fabd883943614e672c (diff)
downloadexternal_webkit-941e55a7dc3545117c4f6951b7146307dc5e52f6.zip
external_webkit-941e55a7dc3545117c4f6951b7146307dc5e52f6.tar.gz
external_webkit-941e55a7dc3545117c4f6951b7146307dc5e52f6.tar.bz2
Fix compilation error inside ImageDecoderSkia.cpp
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp8
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