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

Unified Diff: ui/gfx/skbitmap_operations.h

Issue 1585013002: MacViews: Use Cocoa folder icons in tree views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/skbitmap_operations.h
diff --git a/ui/gfx/skbitmap_operations.h b/ui/gfx/skbitmap_operations.h
index 0850188f0b857a5596ae85c4994968e5ab94fbca..3ac47449dd420f9451846606051365b815f36cac 100644
--- a/ui/gfx/skbitmap_operations.h
+++ b/ui/gfx/skbitmap_operations.h
@@ -100,6 +100,9 @@ class GFX_EXPORT SkBitmapOperations {
// Transpose the pixels in |bitmap| by swapping x and y.
static SkBitmap CreateTransposedBitmap(const SkBitmap& bitmap);
+ // Mirror the pixels in |bitmap|.
+ static SkBitmap CreateMirroredBitmap(const SkBitmap& bitmap);
+
// Create a bitmap by combining alpha channel of |bitmap| and color |c|.
// The image must use the kARGB_8888_Config config.
static SkBitmap CreateColorMask(const SkBitmap& bitmap, SkColor c);

Powered by Google App Engine
This is Rietveld 408576698