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

Side by Side Diff: skia/ext/skia_utils_ios.h

Issue 10928093: Adds an iOS implementation of gfx::Image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@skia
Patch Set: Nits. Created 8 years, 3 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
« no previous file with comments | « no previous file | skia/ext/skia_utils_ios.mm » ('j') | skia/skia.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 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 SKIA_EXT_SKIA_UTILS_IOS_H_
6 #define SKIA_EXT_SKIA_UTILS_IOS_H_
7
8 #include <CoreGraphics/CoreGraphics.h>
9 #include <vector>
10
11 #include "third_party/skia/include/core/SkBitmap.h"
12
13 #ifdef __OBJC__
14 @class UIImage;
15 #else
16 class UIImage;
17 #endif
18
19 namespace gfx {
20
21 // Draws a UIImage with a given size into a SkBitmap.
22 SK_API SkBitmap UIImageToSkBitmap(UIImage* image, CGSize size, bool is_opaque);
23
24 // Given an SkBitmap and a color space, return an autoreleased UIImage.
25 SK_API UIImage* SkBitmapToUIImageWithColorSpace(const SkBitmap& skia_bitmap,
26 CGColorSpaceRef color_space);
27
28 } // namespace gfx
29
30 #endif // SKIA_EXT_SKIA_UTILS_IOS_H_
OLDNEW
« no previous file with comments | « no previous file | skia/ext/skia_utils_ios.mm » ('j') | skia/skia.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698