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" |
11 #include "SkImageDecoder.h" | 11 #include "SkImageDecoder.h" |
12 #include "SkImageEncoder.h" | 12 #include "SkImageEncoder.h" |
13 #include "SkMovie.h" | 13 #include "SkMovie.h" |
14 #include "SkStream.h" | 14 #include "SkStream.h" |
15 | 15 |
16 class SkColorTable; | 16 class SkColorTable; |
| 17 class SkPngChunkReader; |
17 | 18 |
18 // Empty implementations for SkImageDecoder. | 19 // Empty implementations for SkImageDecoder. |
19 | 20 |
20 SkImageDecoder::SkImageDecoder() {} | 21 SkImageDecoder::SkImageDecoder() {} |
21 | 22 |
22 SkImageDecoder::~SkImageDecoder() {} | 23 SkImageDecoder::~SkImageDecoder() {} |
23 | 24 |
24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { | 25 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { |
25 return nullptr; | 26 return nullptr; |
26 } | 27 } |
(...skipping 26 matching lines...) Expand all Loading... |
53 } | 54 } |
54 | 55 |
55 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { | 56 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { |
56 return kUnknown_Format; | 57 return kUnknown_Format; |
57 } | 58 } |
58 | 59 |
59 const char* SkImageDecoder::GetFormatName(Format) { | 60 const char* SkImageDecoder::GetFormatName(Format) { |
60 return nullptr; | 61 return nullptr; |
61 } | 62 } |
62 | 63 |
63 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { | 64 SkPngChunkReader* SkImageDecoder::setPeeker(SkPngChunkReader*) { |
64 return nullptr; | 65 return nullptr; |
65 } | 66 } |
66 | 67 |
67 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { | 68 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { |
68 return nullptr; | 69 return nullptr; |
69 } | 70 } |
70 | 71 |
71 void SkImageDecoder::setSampleSize(int) {} | 72 void SkImageDecoder::setSampleSize(int) {} |
72 | 73 |
73 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { | 74 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 113 } |
113 | 114 |
114 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { | 115 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { |
115 return nullptr; | 116 return nullptr; |
116 } | 117 } |
117 | 118 |
118 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali
ty) { | 119 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali
ty) { |
119 return false; | 120 return false; |
120 } | 121 } |
121 ///////////////////////////////////////////////////////////////////////// | 122 ///////////////////////////////////////////////////////////////////////// |
OLD | NEW |