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

Unified Diff: ui/gfx/image/image_skia_operations.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: rebase Created 8 years, 5 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/app_list/icon_cache.cc ('k') | ui/gfx/image/image_skia_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_operations.h
diff --git a/ui/gfx/image/image_skia_operations.h b/ui/gfx/image/image_skia_operations.h
index 039d1c41daadc673ecf81ffa0abe3e4822c1c015..1e6a52a66694c6a1735f65f4f9968db518222461 100644
--- a/ui/gfx/image/image_skia_operations.h
+++ b/ui/gfx/image/image_skia_operations.h
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_GFX_IMAGESKIA_OPERATIONS_H_
-#define UI_GFX_IMAGESKIA_OPERATIONS_H_
+#ifndef UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
+#define UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
#include "base/gtest_prod_util.h"
#include "ui/base/ui_export.h"
+#include "ui/gfx/shadow_value.h"
namespace gfx {
class ImageSkia;
+class Size;
class UI_EXPORT ImageSkiaOperations {
public:
@@ -33,10 +35,18 @@ class UI_EXPORT ImageSkiaOperations {
int src_x, int src_y,
int dst_w, int dst_h);
+ // Creates an image by resizing |source| to given |target_dip_size|.
+ static ImageSkia CreateResizedImage(const ImageSkia& source,
+ const Size& target_dip_size);
+
+ // Creates an image with drop shadow defined in |shadows| for |source|.
+ static ImageSkia CreateImageWithDropShadow(const ImageSkia& source,
+ const ShadowValues& shadows);
+
private:
ImageSkiaOperations(); // Class for scoping only.
};
}
-#endif // UI_GFX_IMAGESKIA_OPERATIONS_H_
+#endif // UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
« no previous file with comments | « ui/app_list/icon_cache.cc ('k') | ui/gfx/image/image_skia_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698