OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 "SkBitmap.h" | 8 #include "SkBitmap.h" |
9 #include "SkImage.h" | 9 #include "SkImage.h" |
10 #include "SkImageEncoder.h" | 10 #include "SkImageEncoder.h" |
11 #include "SkMovie.h" | |
12 #include "SkPixelSerializer.h" | 11 #include "SkPixelSerializer.h" |
13 #include "SkStream.h" | 12 #include "SkStream.h" |
14 | 13 |
15 ///////////////////////////////////////////////////////////////////////// | 14 ///////////////////////////////////////////////////////////////////////// |
16 | 15 |
17 // Empty implementation for SkMovie. | |
18 | |
19 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { | |
20 return nullptr; | |
21 } | |
22 | |
23 ///////////////////////////////////////////////////////////////////////// | |
24 | |
25 // Empty implementations for SkImageEncoder. | 16 // Empty implementations for SkImageEncoder. |
26 | 17 |
27 SkImageEncoder* SkImageEncoder::Create(Type t) { | 18 SkImageEncoder* SkImageEncoder::Create(Type t) { |
28 return nullptr; | 19 return nullptr; |
29 } | 20 } |
30 | 21 |
31 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int qu
ality) { | 22 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int qu
ality) { |
32 return false; | 23 return false; |
33 } | 24 } |
34 | 25 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool onUseEncodedData(const void*, size_t) override { return true; } | 58 bool onUseEncodedData(const void*, size_t) override { return true; } |
68 SkData* onEncode(const SkPixmap&) override { return nullptr; } | 59 SkData* onEncode(const SkPixmap&) override { return nullptr; } |
69 }; | 60 }; |
70 } // namespace | 61 } // namespace |
71 | 62 |
72 SkPixelSerializer* SkImageEncoder::CreatePixelSerializer() { | 63 SkPixelSerializer* SkImageEncoder::CreatePixelSerializer() { |
73 return new ImageEncoderPixelSerializer; | 64 return new ImageEncoderPixelSerializer; |
74 } | 65 } |
75 | 66 |
76 ///////////////////////////////////////////////////////////////////////// | 67 ///////////////////////////////////////////////////////////////////////// |
OLD | NEW |