Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: ui/gfx/image/image_skia_operations.h

Issue 10827191: Convert extension action icons code to use ImageSkia instead of SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/image/image_skia_operations.h
diff --git a/ui/gfx/image/image_skia_operations.h b/ui/gfx/image/image_skia_operations.h
index 042c836432e62ad5351ed415765ed88c078534b3..867983348ba66db63c5312c091330837fde63a8b 100644
--- a/ui/gfx/image/image_skia_operations.h
+++ b/ui/gfx/image/image_skia_operations.h
@@ -24,6 +24,14 @@ class UI_EXPORT ImageSkiaOperations {
const ImageSkia& second,
double alpha);
+ // Creates an image that is the original image with opacity set to |alpha|.
+ static ImageSkia CreateTransparentImage(const ImageSkia& image, double alpha);
+
+ // Creates new image by painting first and second image respectively.
+ // The second image is centered in respect to the first image.
+ static ImageSkia CreateSuperimposedImage(const ImageSkia& first,
+ const ImageSkia& second);
+
// Create an image that is the original image masked out by the mask defined
// in the alpha image. The images must use the kARGB_8888_Config config and
// be of equal dimensions.

Powered by Google App Engine
This is Rietveld 408576698