[Android] Fix ImageOperations.ResizeShouldAverageColors

Add matching OS_ANDROID guard in tests missing from
http://codereview.chromium.org/10806077/


Review URL: https://chromiumcodereview.appspot.com/10827051

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148665 0039d316-1c4b-4281-b951-d872f2087c98
parent eed268f9
......@@ -367,7 +367,7 @@ SkBitmap ImageOperations::ResizeSubpixel(const SkBitmap& source,
"dst_pixels", dest_width*dest_height);
// Currently only works on Linux/BSD because these are the only platforms
// where SkFontHost::GetSubpixelOrder is defined.
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
#if defined(OS_LINUX) && !defined(GTV)
// Understand the display.
const SkFontHost::LCDOrder order = SkFontHost::GetSubpixelOrder();
const SkFontHost::LCDOrientation orientation =
......
......@@ -507,7 +507,7 @@ TEST(ImageOperations, ResizeShouldAverageColors) {
{ skia::ImageOperations::RESIZE_HAMMING1, "HAMMING1", 0.0f },
{ skia::ImageOperations::RESIZE_LANCZOS2, "LANCZOS2", 0.0f },
{ skia::ImageOperations::RESIZE_LANCZOS3, "LANCZOS3", 0.0f },
#if defined(OS_POSIX) && !defined(GTV) && !defined(OS_MACOSX)
#if defined(OS_LINUX) && !defined(GTV)
// SUBPIXEL has slightly worse performance than the other filters:
// 6.324 Bottom left/right corners
// 5.099 Top left/right corners
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment