summaryrefslogtreecommitdiffstats
path: root/skia/ext/image_operations.cc
diff options
context:
space:
mode:
authorpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 18:17:53 +0000
committerpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 18:17:53 +0000
commite39333ece7fa47290fec1a757af8fde5a6bb16ba (patch)
tree31e3eaa49235c4ec4173e51a1f8509ce90fc7da2 /skia/ext/image_operations.cc
parent7b8c01166d60c3d075953638c27a0f465e1d5de8 (diff)
downloadchromium_src-e39333ece7fa47290fec1a757af8fde5a6bb16ba.zip
chromium_src-e39333ece7fa47290fec1a757af8fde5a6bb16ba.tar.gz
chromium_src-e39333ece7fa47290fec1a757af8fde5a6bb16ba.tar.bz2
chunk of straightforward ifdef/include changes for BSD port
based on sprewell's patch Review URL: http://codereview.chromium.org/2069009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/image_operations.cc')
-rw-r--r--skia/ext/image_operations.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index f6ee4ca..10998d5 100644
--- a/skia/ext/image_operations.cc
+++ b/skia/ext/image_operations.cc
@@ -269,9 +269,9 @@ SkBitmap ImageOperations::Resize(const SkBitmap& source,
SkBitmap ImageOperations::ResizeSubpixel(const SkBitmap& source,
int dest_width, int dest_height,
const SkIRect& dest_subset) {
- // Currently only works on Linux because this is the only platform where
- // SkFontHost::GetSubpixelOrder is defined.
-#if defined(OS_LINUX)
+ // Currently only works on Linux/BSD because these are the only platforms
+ // where SkFontHost::GetSubpixelOrder is defined.
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Understand the display.
const SkFontHost::LCDOrder order = SkFontHost::GetSubpixelOrder();
const SkFontHost::LCDOrientation orientation =
@@ -361,7 +361,7 @@ SkBitmap ImageOperations::ResizeSubpixel(const SkBitmap& source,
return result;
#else
return SkBitmap();
-#endif // OS_LINUX
+#endif // OS_POSIX && !OS_MACOSX
}
// static