diff options
author | Mike Reed <> | 2009-03-24 22:38:28 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 22:38:28 -0700 |
commit | ec1dd9995d33d4d707adc024a3d0e4bef6e48cee (patch) | |
tree | 056526d13b762b590549dfb861fec74d1104a7d6 /WebCore/platform/graphics/skia | |
parent | 22c08561df8d32fc8c44f0beac60967002e4862f (diff) | |
download | external_webkit-ec1dd9995d33d4d707adc024a3d0e4bef6e48cee.zip external_webkit-ec1dd9995d33d4d707adc024a3d0e4bef6e48cee.tar.gz external_webkit-ec1dd9995d33d4d707adc024a3d0e4bef6e48cee.tar.bz2 |
Automated import from //branches/master/...@142337,142337
Diffstat (limited to 'WebCore/platform/graphics/skia')
-rw-r--r-- | WebCore/platform/graphics/skia/NativeImageSkia.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/skia/NativeImageSkia.cpp b/WebCore/platform/graphics/skia/NativeImageSkia.cpp index e59d1e2..477be05 100644 --- a/WebCore/platform/graphics/skia/NativeImageSkia.cpp +++ b/WebCore/platform/graphics/skia/NativeImageSkia.cpp @@ -30,7 +30,9 @@ #include "config.h" +#if PLATFORM(SKIA) #include "skia/ext/image_operations.h" +#endif #include "NativeImageSkia.h" #include "SkiaUtils.h" @@ -63,9 +65,10 @@ bool NativeImageSkia::hasResizedBitmap(int w, int h) const SkBitmap NativeImageSkia::resizedBitmap(int w, int h) const { +#if PLATFORM(SKIA) if (m_resizedImage.width() != w || m_resizedImage.height() != h) m_resizedImage = skia::ImageOperations::Resize(*this, skia::ImageOperations::RESIZE_LANCZOS3, w, h); - +#endif return m_resizedImage; } |