Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: skia/ext/image_operations.cc

Issue 2069009: chunk of straightforward ifdef/include changes for BSD port... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/base/x509_certificate_unittest.cc ('K') | « net/tools/hresolv/hresolv.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/image_operations.cc
===================================================================
--- skia/ext/image_operations.cc (revision 47443)
+++ skia/ext/image_operations.cc (working copy)
@@ -269,9 +269,9 @@
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
+ // Currently only works on Linux/BSD because this is the only platform where
Evan Martin 2010/05/19 11:50:11 s/this is ...platform/these are ...platforms/ (and
// SkFontHost::GetSubpixelOrder is defined.
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Understand the display.
const SkFontHost::LCDOrder order = SkFontHost::GetSubpixelOrder();
const SkFontHost::LCDOrientation orientation =
@@ -361,7 +361,7 @@
return result;
#else
return SkBitmap();
-#endif // OS_LINUX
+#endif // OS_POSIX && !OS_MACOSX
}
// static
« net/base/x509_certificate_unittest.cc ('K') | « net/tools/hresolv/hresolv.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698