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

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

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « skia/ext/skia_utils_base.cc ('k') | skia/ext/skia_utils_ios.mm » ('j') | no next file with comments »
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 @class NSData;
16 #else
17 class UIImage;
18 class NSData;
19 #endif
20
21 namespace gfx {
22
23 // Draws a CGImage into an SkBitmap of the given size.
24 SK_API SkBitmap CGImageToSkBitmap(CGImageRef image,
25 CGSize size,
26 bool is_opaque);
27
28 // Given an SkBitmap and a color space, return an autoreleased UIImage.
29 SK_API UIImage* SkBitmapToUIImageWithColorSpace(const SkBitmap& skia_bitmap,
30 CGFloat scale,
31 CGColorSpaceRef color_space);
32
33 // Decodes all image representations inside the data into a vector of SkBitmaps.
34 // Returns a vector of all the successfully decoded representations or an empty
35 // vector if none can be decoded.
36 SK_API std::vector<SkBitmap> ImageDataToSkBitmaps(NSData* image_data);
37
38 } // namespace gfx
39
40 #endif // SKIA_EXT_SKIA_UTILS_IOS_H_
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_base.cc ('k') | skia/ext/skia_utils_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698