Index: ui/gfx/skbitmap_operations.h |
diff --git a/ui/gfx/skbitmap_operations.h b/ui/gfx/skbitmap_operations.h |
index fc0a9da4a24fd7efb4bbb20d018bb2cd54aa7ec0..da05f666edf3f2870a29c34d2b256573f5ba8794 100644 |
--- a/ui/gfx/skbitmap_operations.h |
+++ b/ui/gfx/skbitmap_operations.h |
@@ -9,6 +9,7 @@ |
#include "base/gtest_prod_util.h" |
#include "ui/base/ui_export.h" |
#include "ui/gfx/color_utils.h" |
+#include "ui/gfx/shadow_value.h" |
namespace gfx { |
class Point; |
@@ -98,26 +99,17 @@ class UI_EXPORT SkBitmapOperations { |
// Transpose the pixels in |bitmap| by swapping x and y. |
static SkBitmap CreateTransposedBtmap(const SkBitmap& bitmap); |
- // Create a copy of |bitmap| with specified |size|. The image must use the |
- // kARGB_8888_Config config. |
- static SkBitmap CreateResizedBitmap(const SkBitmap& bitmap, |
- const gfx::Size& size); |
- |
// 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); |
- // Create a bitmap with drop shadow added to |bitmap|. |shadow_count| is the |
- // number of shadows to add. |shadow_offset| and |shadow_radius| are arrays |
- // with |shadow_count| elements to provide definition for each shadow. The |
- // created bitmap would be padded to have enough space for shadows and have |
- // original bitmap in the center. The image must use the kARGB_8888_Config |
- // config. |
+ // Create a bitmap with drop shadow added to |bitmap|. |shadows| defines |
+ // the shadows to add. The created bitmap would be padded to have enough space |
+ // for shadows and have original bitmap in the center. The image must use the |
+ // kARGB_8888_Config config. |
static SkBitmap CreateDropShadow(const SkBitmap& bitmap, |
- int shadow_count, |
- const SkColor* shadow_color, |
- const gfx::Point* shadow_offset, |
- const SkScalar* shadow_radius); |
+ const gfx::ShadowValues& shadows); |
+ |
private: |
SkBitmapOperations(); // Class for scoping only. |