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

Side by Side Diff: src/ports/SkOSFile_none.cpp

Issue 384903002: Add file access modes to sk_exists. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Better comment. Created 6 years, 5 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 | « include/core/SkOSFile.h ('k') | src/ports/SkOSFile_posix.cpp » ('j') | 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 2013 Google Inc. 2 * Copyright 2013 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 "SkOSFile.h" 8 #include "SkOSFile.h"
9 9
10 bool sk_exists(const char *path, SkFILE_Flags flags) {
11 return false;
12 }
13
10 bool sk_fidentical(SkFILE* a, SkFILE* b) { 14 bool sk_fidentical(SkFILE* a, SkFILE* b) {
11 return false; 15 return false;
12 } 16 }
13 17
14 int sk_fileno(SkFILE* f) { 18 int sk_fileno(SkFILE* f) {
15 return -1; 19 return -1;
16 } 20 }
17 21
18 void sk_fmunmap(const void* addr, size_t length) { } 22 void sk_fmunmap(const void* addr, size_t length) { }
19 23
20 void* sk_fdmmap(int fd, size_t* size) { 24 void* sk_fdmmap(int fd, size_t* size) {
21 return NULL; 25 return NULL;
22 } 26 }
23 27
24 void* sk_fmmap(SkFILE* f, size_t* size) { 28 void* sk_fmmap(SkFILE* f, size_t* size) {
25 return NULL; 29 return NULL;
26 } 30 }
OLDNEW
« no previous file with comments | « include/core/SkOSFile.h ('k') | src/ports/SkOSFile_posix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698