OLD | NEW |
---|---|
(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 { | |
oshima
2012/07/03 23:00:06
I wonder if we can use the same format as
SkBitmap
xiyuan
2012/07/10 20:02:13
http://google-styleguide.googlecode.com/svn/trunk/
| |
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 | |
oshima
2012/07/03 23:00:06
Do you think these fill be useful in outside of as
pkotwicz
2012/07/04 00:19:50
I think views code which is outside ash can potent
xiyuan
2012/07/10 20:02:13
And app list is no longer part of ash. It lives as
| |
30 } // namespace image_skia_sources | |
31 } // namespace gfx | |
32 | |
33 #endif // UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_ | |
OLD | NEW |