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 { |
| 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_ |
OLD | NEW |