Chromium Code Reviews| Index: ui/gfx/skbitmap_operations.h |
| diff --git a/ui/gfx/skbitmap_operations.h b/ui/gfx/skbitmap_operations.h |
| index fc0a9da4a24fd7efb4bbb20d018bb2cd54aa7ec0..c9c5c8bd66bd7d85e8816ac66db793881811fe4a 100644 |
| --- a/ui/gfx/skbitmap_operations.h |
| +++ b/ui/gfx/skbitmap_operations.h |
| @@ -6,12 +6,15 @@ |
| #define UI_GFX_SKBITMAP_OPERATIONS_H_ |
| #pragma once |
| +#include <vector> |
| + |
| #include "base/gtest_prod_util.h" |
| #include "ui/base/ui_export.h" |
| #include "ui/gfx/color_utils.h" |
| namespace gfx { |
| class Point; |
| +class ShadowValue; |
| class Size; |
| } |
| @@ -98,11 +101,6 @@ 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); |
| @@ -113,11 +111,10 @@ class UI_EXPORT SkBitmapOperations { |
| // 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. |
|
Alexei Svitkine (slow)
2012/05/25 18:16:06
Please update the comment (it references things li
xiyuan
2012/05/25 19:34:01
Done. Totally blind. Thanks for pointing out. :p
|
| - static SkBitmap CreateDropShadow(const SkBitmap& bitmap, |
| - int shadow_count, |
| - const SkColor* shadow_color, |
| - const gfx::Point* shadow_offset, |
| - const SkScalar* shadow_radius); |
| + static SkBitmap CreateDropShadow( |
| + const SkBitmap& bitmap, |
| + const std::vector<gfx::ShadowValue>& shadows); |
| + |
| private: |
| SkBitmapOperations(); // Class for scoping only. |