summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 20:19:14 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 20:19:14 +0000
commit465b34b73d11d017dfc546821c8dcb8e4dbe4b56 (patch)
tree465760a07b08c237db9026fb968374cad3be6e92 /webkit
parent76960a40e09420ac2e302f4b307c4dd0d8a61ce8 (diff)
downloadchromium_src-465b34b73d11d017dfc546821c8dcb8e4dbe4b56.zip
chromium_src-465b34b73d11d017dfc546821c8dcb8e4dbe4b56.tar.gz
chromium_src-465b34b73d11d017dfc546821c8dcb8e4dbe4b56.tar.bz2
Move Image operations and convolver to the skia namespace and clean up a few (but not all) base types.
Review URL: http://codereview.chromium.org/13726 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/port/platform/graphics/skia/ImageSkia.cpp14
-rw-r--r--webkit/port/platform/graphics/skia/NativeImageSkia.cpp4
2 files changed, 9 insertions, 9 deletions
diff --git a/webkit/port/platform/graphics/skia/ImageSkia.cpp b/webkit/port/platform/graphics/skia/ImageSkia.cpp
index 4936502..4d3ee12 100644
--- a/webkit/port/platform/graphics/skia/ImageSkia.cpp
+++ b/webkit/port/platform/graphics/skia/ImageSkia.cpp
@@ -217,9 +217,9 @@ void drawResampledBitmap(SkCanvas& canvas,
destBitmapSubsetSkI.height());
// Resample the needed part of the image.
- SkBitmap resampled = gfx::ImageOperations::Resize(subset,
- gfx::ImageOperations::RESIZE_LANCZOS3,
- gfx::Size(destRectRounded.width(), destRectRounded.height()),
+ SkBitmap resampled = skia::ImageOperations::Resize(subset,
+ skia::ImageOperations::RESIZE_LANCZOS3,
+ destRectRounded.width(), destRectRounded.height(),
destBitmapSubset);
// Compute where the new bitmap should be drawn. Since our new bitmap
@@ -350,10 +350,10 @@ void Image::drawPattern(GraphicsContext* context,
if (resampling == RESAMPLE_AWESOME) {
// Do nice resampling.
- SkBitmap resampled = gfx::ImageOperations::Resize(src_subset,
- gfx::ImageOperations::RESIZE_LANCZOS3,
- gfx::Size(static_cast<int>(dest_bitmap_width),
- static_cast<int>(dest_bitmap_height)));
+ SkBitmap resampled = skia::ImageOperations::Resize(src_subset,
+ skia::ImageOperations::RESIZE_LANCZOS3,
+ static_cast<int>(dest_bitmap_width),
+ static_cast<int>(dest_bitmap_height));
shader = SkShader::CreateBitmapShader(
resampled, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);
diff --git a/webkit/port/platform/graphics/skia/NativeImageSkia.cpp b/webkit/port/platform/graphics/skia/NativeImageSkia.cpp
index 72bbcc4..fa4ce86 100644
--- a/webkit/port/platform/graphics/skia/NativeImageSkia.cpp
+++ b/webkit/port/platform/graphics/skia/NativeImageSkia.cpp
@@ -61,8 +61,8 @@ bool NativeImageSkia::hasResizedBitmap(int w, int h) const {
SkBitmap NativeImageSkia::resizedBitmap(int w, int h) const {
if (m_resizedImage.width() != w || m_resizedImage.height() != h) {
- m_resizedImage = gfx::ImageOperations::Resize(*this,
- gfx::ImageOperations::RESIZE_LANCZOS3, gfx::Size(w, h));
+ m_resizedImage = skia::ImageOperations::Resize(*this,
+ skia::ImageOperations::RESIZE_LANCZOS3, w, h);
}
return m_resizedImage;
}