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

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

Issue 647023006: Qualify the return value of SkImageDecoder::decode (Closed) Base URL: https://skia.googlesource.com/skia.git/+/master
Patch Set: fix a sample Created 6 years, 2 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/ports/SkImageDecoder_WIC.cpp ('k') | tests/ImageDecodingTest.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkImage.h" 10 #include "SkImage.h"
(...skipping 14 matching lines...) Expand all
25 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { 25 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) {
26 return NULL; 26 return NULL;
27 } 27 }
28 28
29 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} 29 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {}
30 30
31 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Form at*) { 31 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Form at*) {
32 return false; 32 return false;
33 } 33 }
34 34
35 bool SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) { 35 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) {
36 return false; 36 return kFailure;
37 } 37 }
38 38
39 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, M ode, Format*) { 39 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, M ode, Format*) {
40 return false; 40 return false;
41 } 41 }
42 42
43 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, M ode, Format*) { 43 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, M ode, Format*) {
44 return false; 44 return false;
45 } 45 }
46 46
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { 130 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) {
131 return NULL; 131 return NULL;
132 } 132 }
133 133
134 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) { 134 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) {
135 return false; 135 return false;
136 } 136 }
137 ///////////////////////////////////////////////////////////////////////// 137 /////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/ports/SkImageDecoder_WIC.cpp ('k') | tests/ImageDecodingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698