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

Unified Diff: ui/gfx/image/image_skia.h

Issue 10699065: chromeos: Fix pixelated icons in app list and launcher (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/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.
« no previous file with comments | « ui/app_list/icon_cache.cc ('k') | ui/gfx/image/image_skia.cc » ('j') | ui/gfx/shadow_value.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698