summaryrefslogtreecommitdiffstats
path: root/webkit/glue/image_decoder.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 20:33:50 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 20:33:50 +0000
commit02875566f67fb76d9d9b56f06aef85b397d2de68 (patch)
tree6c1c12688b8a7fc9fc1fe490fd99e37069225812 /webkit/glue/image_decoder.cc
parent867f8912ee9ca452d4cda177d7ac5b489af14104 (diff)
downloadchromium_src-02875566f67fb76d9d9b56f06aef85b397d2de68.zip
chromium_src-02875566f67fb76d9d9b56f06aef85b397d2de68.tar.gz
chromium_src-02875566f67fb76d9d9b56f06aef85b397d2de68.tar.bz2
Use Skia on Linux also
Review URL: http://codereview.chromium.org/6410 Patch from icefox. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/image_decoder.cc')
-rw-r--r--webkit/glue/image_decoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/image_decoder.cc b/webkit/glue/image_decoder.cc
index b535fa1..f63b808 100644
--- a/webkit/glue/image_decoder.cc
+++ b/webkit/glue/image_decoder.cc
@@ -6,7 +6,7 @@
#include "webkit/glue/image_decoder.h"
#pragma warning(push, 0)
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
#include "ImageSourceSkia.h"
#elif defined(OS_MACOSX)
#include "ImageSource.h"
@@ -40,7 +40,7 @@ SkBitmap ImageDecoder::Decode(const unsigned char* data, size_t size) {
// but in the future we will need to replumb to get CGImageRefs (or whatever
// the native type is) everywhere, directly.
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
WebCore::ImageSourceSkia source;
#elif defined(OS_MACOSX)
WebCore::ImageSource source;
@@ -62,7 +62,7 @@ SkBitmap ImageDecoder::Decode(const unsigned char* data, size_t size) {
if (!frame0)
return SkBitmap();
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
return *reinterpret_cast<SkBitmap*>(frame0);
#elif defined(OS_MACOSX)
// BitmapImage releases automatically, but we're bypassing it so we'll need