summaryrefslogtreecommitdiffstats
path: root/app/gfx/skbitmap_operations.h
diff options
context:
space:
mode:
authorchocobo@google.com <chocobo@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 21:25:25 +0000
committerchocobo@google.com <chocobo@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 21:25:25 +0000
commit30583e481cc3798c362be6ac87a6639222225623 (patch)
tree4051d75db872f7543eeeefc05f78ae2ccd8546dd /app/gfx/skbitmap_operations.h
parent9d660ad65365698dee842371cc28ac461561dec2 (diff)
downloadchromium_src-30583e481cc3798c362be6ac87a6639222225623.zip
chromium_src-30583e481cc3798c362be6ac87a6639222225623.tar.gz
chromium_src-30583e481cc3798c362be6ac87a6639222225623.tar.bz2
Add UI for turning on/off network devices.
BUG=26636 TEST=run skbitmap_operations_unittest Review URL: http://codereview.chromium.org/353028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31478 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/skbitmap_operations.h')
-rw-r--r--app/gfx/skbitmap_operations.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/gfx/skbitmap_operations.h b/app/gfx/skbitmap_operations.h
index d6bb5d3..57a2301 100644
--- a/app/gfx/skbitmap_operations.h
+++ b/app/gfx/skbitmap_operations.h
@@ -12,6 +12,17 @@ class SkBitmap;
class SkBitmapOperations {
public:
+ // Create a bitmap that is an inverted image of the passed in image.
+ // Each color becomes its inverse in the color wheel. So (255, 15, 0) becomes
+ // (0, 240, 255). The alpha value is not inverted.
+ static SkBitmap CreateInvertedBitmap(const SkBitmap& image);
+
+ // Create a bitmap that is a superimposition of the second bitmap on top of
+ // the first. The provided bitmaps must use have the kARGB_8888_Config config
+ // and be of equal dimensions.
+ static SkBitmap CreateSuperimposedBitmap(const SkBitmap& first,
+ const SkBitmap& second);
+
// Create a bitmap that is a blend of two others. The alpha argument
// specifies the opacity of the second bitmap. The provided bitmaps must
// use have the kARGB_8888_Config config and be of equal dimensions.