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

Side by Side Diff: src/utils/ios/SkOSFile_iOS.mm

Issue 322403007: Fix a number of issues with iOS build. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove unnecessary image Created 6 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 | « src/utils/ios/SkImageDecoder_iOS.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include <Foundation/Foundation.h> 8 #include <Foundation/Foundation.h>
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 #include "SkString.h" 10 #include "SkString.h"
11 11
12 /*
tfarina 2014/06/11 19:12:11 why you do this?
12 struct SkFILE { 13 struct SkFILE {
13 NSData* fData; 14 NSData* fData;
14 size_t fOffset; 15 size_t fOffset;
15 size_t fLength; 16 size_t fLength;
16 }; 17 };
17 18
18 SkFILE* sk_fopen(const char cpath[], SkFILE_Flags flags) { 19 SkFILE* sk_fopen(const char cpath[], SkFILE_Flags flags) {
19 if (flags & kWrite_SkFILE_Flag) { 20 if (flags & kWrite_SkFILE_Flag) {
20 return NULL; 21 return NULL;
21 } 22 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 89
89 void sk_fflush(SkFILE* f) { 90 void sk_fflush(SkFILE* f) {
90 SkDEBUGFAIL("Not supported yet"); 91 SkDEBUGFAIL("Not supported yet");
91 } 92 }
92 93
93 void sk_fclose(SkFILE* rec) { 94 void sk_fclose(SkFILE* rec) {
94 SkASSERT(rec); 95 SkASSERT(rec);
95 [rec->fData release]; 96 [rec->fData release];
96 delete rec; 97 delete rec;
97 } 98 }
98 99 */
OLDNEW
« no previous file with comments | « src/utils/ios/SkImageDecoder_iOS.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698