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

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, address comments in #3 and revert ImageLoadingTracker part 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 24a5b598ff8118bad514231105c84a60dbeaa06f..220fc0cf65ec95558cc5da2903bdc9fd5933bc6b 100644
--- a/ui/gfx/image/image_skia_operations.h
+++ b/ui/gfx/image/image_skia_operations.h
@@ -2,15 +2,17 @@
// 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_
#pragma once
#include "base/gtest_prod_util.h"
#include "ui/base/ui_export.h"
+#include "ui/gfx/shadow_value.h"
oshima 2012/07/11 18:08:41 can you use forward decl?
xiyuan 2012/07/11 21:40:40 This header is included for gfx::ShadowValues, whi
namespace gfx {
class ImageSkia;
+class Size;
class UI_EXPORT ImageSkiaOperations {
public:
@@ -34,10 +36,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 CreateDropShadowImage(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