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

Side by Side Diff: ui/gfx/image/image_skia_sources.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: for comments in #2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_
6 #define UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_
7 #pragma once
8
9 #include "ui/base/ui_export.h"
10 #include "ui/gfx/shadow_value.h"
11
12 namespace gfx {
13
14 class ImageSkia;
15 class ImageSkiaSource;
16 class Size;
17
18 namespace image_skia_sources {
19
20 // Creates an ImageSkiaSource that resizes |source| to given |target_dip_size|.
21 // Callers of the function takes ownership of returned ImageSkiaSource.
22 UI_EXPORT ImageSkiaSource* CreateResizeSource(const ImageSkia& source,
23 const Size& target_dip_size);
24
25 // Creates an ImageSkiaSource that generates drop shadow for |source|.
26 // Callers of the function takes ownership of returned ImageSkiaSource.
27 UI_EXPORT ImageSkiaSource* CreateDropShadowSource(const ImageSkia& source,
28 const ShadowValues& shadows);
29
30 } // namespace image_skia_sources
31 } // namespace gfx
32
33 #endif // UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698