OLD | NEW |
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 return SkBitmap::kNo_Config; | 89 return SkBitmap::kNo_Config; |
90 } | 90 } |
91 | 91 |
92 void SkImageDecoder::SetDeviceConfig(SkBitmap::Config) {} | 92 void SkImageDecoder::SetDeviceConfig(SkBitmap::Config) {} |
93 | 93 |
94 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int, | 94 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int, |
95 int, int) { | 95 int, int) { |
96 return false; | 96 return false; |
97 } | 97 } |
98 | 98 |
| 99 #ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER |
99 bool SkImageDecoder::chooseFromOneChoice(SkColorType, int, int) const { | 100 bool SkImageDecoder::chooseFromOneChoice(SkColorType, int, int) const { |
100 return false; | 101 return false; |
101 } | 102 } |
| 103 #endif |
102 | 104 |
103 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { | 105 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { |
104 return false; | 106 return false; |
105 } | 107 } |
106 | 108 |
107 ///////////////////////////////////////////////////////////////////////// | 109 ///////////////////////////////////////////////////////////////////////// |
108 | 110 |
109 // Empty implementation for SkMovie. | 111 // Empty implementation for SkMovie. |
110 | 112 |
111 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { | 113 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { |
(...skipping 25 matching lines...) Expand all Loading... |
137 } | 139 } |
138 | 140 |
139 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { | 141 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { |
140 return NULL; | 142 return NULL; |
141 } | 143 } |
142 | 144 |
143 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali
ty) { | 145 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali
ty) { |
144 return false; | 146 return false; |
145 } | 147 } |
146 ///////////////////////////////////////////////////////////////////////// | 148 ///////////////////////////////////////////////////////////////////////// |
OLD | NEW |