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

Side by Side Diff: include/utils/ios/SkStream_NSData.h

Issue 1197963003: Remove old iOS porting files. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « gyp/iOSShell.gyp ('k') | src/utils/ios/SkFontHost_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
2 /*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8 #ifndef SkStream_NSData_DEFINED
9 #define SkStream_NSData_DEFINED
10
11 #import <UIKit/UIKit.h>
12 #include "SkStream.h"
13
14 /** Returns an NSData with a copy of the stream's data. The caller must call
15 retain if it intends to keep the data object beyond the current stack-frame
16 (i.e. internally we're calling [NSData dataWithBytes...]
17 */
18 NSData* NSData_dataWithStream(SkStream* stream);
19
20 /** Returns an NSData from the named resource (from main bundle).
21 The caller must call retain if it intends to keep the data object beyond
22 the current stack-frame
23 (i.e. internally we're calling [NSData dataWithContentsOfMappedFile...]
24 */
25 NSData* NSData_dataFromResource(const char name[], const char suffix[]);
26
27 /** Wrap a stream around NSData.
28 */
29 class SkStream_NSData : public SkMemoryStream {
30 public:
31 SkStream_NSData(NSData* data);
32 virtual ~SkStream_NSData();
33
34 static SkStream_NSData* CreateFromResource(const char name[],
35 const char suffix[]);
36
37 private:
38 NSData* fNSData;
39 };
40
41 #endif
OLDNEW
« no previous file with comments | « gyp/iOSShell.gyp ('k') | src/utils/ios/SkFontHost_iOS.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698