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

Unified Diff: ui/gfx/skbitmap_operations.h

Issue 10453035: Clean up SkBitmapOperations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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
« no previous file with comments | « ui/gfx/shadow_value_unittest.cc ('k') | ui/gfx/skbitmap_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « ui/gfx/shadow_value_unittest.cc ('k') | ui/gfx/skbitmap_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698