Chromium Code Reviews| Index: ui/gfx/image/image_skia.h |
| diff --git a/ui/gfx/image/image_skia.h b/ui/gfx/image/image_skia.h |
| index 9ebeb5f750b2968d10d4155e3f1945e394d4608e..7c072562df0d75fe568a0d4007b7c7b34bba2db3 100644 |
| --- a/ui/gfx/image/image_skia.h |
| +++ b/ui/gfx/image/image_skia.h |
| @@ -12,9 +12,12 @@ |
| #include "base/memory/ref_counted.h" |
| #include "ui/base/ui_export.h" |
| #include "ui/gfx/image/image_skia_rep.h" |
| +#include "ui/gfx/shadow_value.h" |
| namespace gfx { |
| +class Size; |
| + |
| namespace internal { |
| class ImageSkiaStorage; |
| } // namespace internal |
| @@ -100,6 +103,13 @@ class UI_EXPORT ImageSkia { |
| // Operates on each stored image rep. |
| bool extractSubset(ImageSkia* dst, const SkIRect& subset) const; |
| + // Returns a resized image by running skia::ImageOperations::Resize on |
| + // all representations. |
| + ImageSkia Resize(const gfx::Size& size) const; |
| + |
| + // Returns an image with drop shadows added for all representations. |
| + ImageSkia CreateDropShadow(const gfx::ShadowValues& shadows) const; |
|
oshima
2012/07/03 03:47:26
Can you use new interface gfx::ImageSkiaSource (ht
xiyuan
2012/07/03 22:16:00
Done.
|
| + |
| // Returns pointer to an SkBitmap contained by this object. |
| // TODO(pkotwicz): This is temporary till conversion to gfx::ImageSkia is |
| // done. |