OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2015 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef SkAndroidRawCodec_DEFINED | |
9 #define SkAndroidRawCodec_DEFINED | |
10 | |
11 #include "SkAndroidCodec.h" | |
12 #include "SkCodec.h" | |
13 #include "SkEncodedFormat.h" | |
14 #include "SkRawCodec.h" | |
15 #include "SkStream.h" | |
16 #include "SkTypes.h" | |
17 | |
18 /** | |
19 * Abstract interface defining image codec functionality that is necessary for | |
20 * Android. | |
21 */ | |
22 class SkAndroidRawCodec : public SkAndroidCodec { | |
djsollen
2015/12/16 20:35:34
Not sure that you need this file at all, but I'll
scroggo
2015/12/18 15:56:26
SkAndroidCodec.cpp needs to be able to call the co
yujieqin
2016/01/06 18:47:18
Renamed the files and class.
| |
23 public: | |
24 | |
25 explicit SkAndroidRawCodec(SkRawCodec*); | |
26 | |
27 virtual ~SkAndroidRawCodec() {} | |
28 | |
29 protected: | |
30 | |
31 //SkEncodedFormat onGetEncodedFormat() const override { return kRAW_SkEncode dFormat; }; | |
scroggo
2015/12/18 15:56:26
I'm assuming this file does not build with this co
yujieqin
2016/01/06 18:47:18
The default implementation of getEncodedFormat() a
| |
32 | |
33 SkISize onGetSampledDimensions(int sampleSize) const override; | |
34 | |
35 bool onGetSupportedSubset(SkIRect* desiredSubset) const override { return fa lse; } | |
36 | |
37 SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels, si ze_t rowBytes, | |
38 const AndroidOptions& options) override; | |
39 | |
40 private: | |
41 | |
42 typedef SkAndroidCodec INHERITED; | |
43 }; | |
44 #endif // SkAndroidRawCodec_DEFINED | |
OLD | NEW |