From 23f77116cafe9a88819b60c7606453ae0db8f35d Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Thu, 2 Jun 2011 18:37:51 +0000 Subject: More POSIX support for Chromium, consisting mostly of broadening ifdefs. This patch cuts across modules, as there's only a handful necessary for each, with the most in chrome/test/. ALSA is enabled on FreeBSD and Solaris, as libasound has been ported to those two platforms, and I moved resolv.h in host_resolver_proc.cc, because it depends on headers from sys_addrinfo.h on FreeBSD. Patch by ruben (chromium@hybridsource.org) Review URL: http://codereview.chromium.org/6976055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87641 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/ext/image_operations_unittest.cc | 2 +- skia/ext/vector_platform_device_skia.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'skia') diff --git a/skia/ext/image_operations_unittest.cc b/skia/ext/image_operations_unittest.cc index e8c0e9f..ecb6e23 100644 --- a/skia/ext/image_operations_unittest.cc +++ b/skia/ext/image_operations_unittest.cc @@ -506,7 +506,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_LINUX) && !defined(GTV) +#if defined(OS_POSIX) && !defined(GTV) // SUBPIXEL has slightly worse performance than the other filters: // 6.324 Bottom left/right corners // 5.099 Top left/right corners diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc index 499d9ae..45a6fba 100644 --- a/skia/ext/vector_platform_device_skia.cc +++ b/skia/ext/vector_platform_device_skia.cc @@ -56,7 +56,7 @@ PlatformDevice::PlatformSurface VectorPlatformDeviceSkia::BeginPlatformPaint() { pdf_device_->height(), false, /* not opaque */ NULL); -#elif defined(OS_LINUX) +#elif defined(OS_POSIX) raster_surface_ = BitmapPlatformDevice::Create(pdf_device_->width(), pdf_device_->height(), false /* not opaque */); -- cgit v1.1