summaryrefslogtreecommitdiffstats
path: root/skia/ext/image_operations.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 15:01:10 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 15:01:10 +0000
commit53c8fdf0f2abd695a66237d901a8d74eb45bb6d0 (patch)
treec3d96f89afce15dc055b0c2b3b9f32aadc2d9e8a /skia/ext/image_operations.h
parent6addd9e9debd24130c31cdfab55c84bca9bfdc72 (diff)
downloadchromium_src-53c8fdf0f2abd695a66237d901a8d74eb45bb6d0.zip
chromium_src-53c8fdf0f2abd695a66237d901a8d74eb45bb6d0.tar.gz
chromium_src-53c8fdf0f2abd695a66237d901a8d74eb45bb6d0.tar.bz2
Remove base dependency from image_operations and associated unittests. I also renamed the namespace from "gfx" to "skia".
This also adds back the image_operations_unittest to a project (this had gotten lost in my move). Review URL: http://codereview.chromium.org/13143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/image_operations.h')
-rw-r--r--skia/ext/image_operations.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/skia/ext/image_operations.h b/skia/ext/image_operations.h
index 73c6b53..22d5320 100644
--- a/skia/ext/image_operations.h
+++ b/skia/ext/image_operations.h
@@ -5,12 +5,10 @@
#ifndef SKIA_EXT_IMAGE_OPERATIONS_H_
#define SKIA_EXT_IMAGE_OPERATIONS_H_
-#include "base/basictypes.h"
-#include "base/gfx/rect.h"
-
class SkBitmap;
+struct SkIRect;
-namespace gfx {
+namespace skia {
class ImageOperations {
public:
@@ -37,14 +35,14 @@ class ImageOperations {
// The destination subset must be smaller than the destination image.
static SkBitmap Resize(const SkBitmap& source,
ResizeMethod method,
- const Size& dest_size,
- const Rect& dest_subset);
+ int dest_width, int dest_height,
+ const SkIRect& dest_subset);
// Alternate version for resizing and returning the entire bitmap rather than
// a subset.
static SkBitmap Resize(const SkBitmap& source,
ResizeMethod method,
- const Size& dest_size);
+ int dest_width, int dest_height);
// Create a bitmap that is a blend of two others. The alpha argument
@@ -57,7 +55,6 @@ class ImageOperations {
ImageOperations(); // Class for scoping only.
};
-} // namespace gfx
-
-#endif // SKIA_EXT_IMAGE_OPERATIONS_H__
+} // namespace skia
+#endif // SKIA_EXT_IMAGE_OPERATIONS_H_