diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-02 18:37:51 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-02 18:37:51 +0000 |
commit | 23f77116cafe9a88819b60c7606453ae0db8f35d (patch) | |
tree | aacf7537fca0c887449f46980b992bf26f107d38 /skia | |
parent | ef42e30fbfcd6db1c2a5ed77818db2329b5bd1a8 (diff) | |
download | chromium_src-23f77116cafe9a88819b60c7606453ae0db8f35d.zip chromium_src-23f77116cafe9a88819b60c7606453ae0db8f35d.tar.gz chromium_src-23f77116cafe9a88819b60c7606453ae0db8f35d.tar.bz2 |
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
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/image_operations_unittest.cc | 2 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_skia.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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 */); |