OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
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 "SkCodec.h" | 8 #include "SkCodec.h" |
9 #include "SkData.h" | 9 #include "SkData.h" |
10 #include "SkImageGenerator.h" | 10 #include "SkImageGenerator.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 private: | 32 private: |
33 /* | 33 /* |
34 * Takes ownership of codec | 34 * Takes ownership of codec |
35 * Refs the data | 35 * Refs the data |
36 */ | 36 */ |
37 SkCodecImageGenerator(SkCodec* codec, SkData* data); | 37 SkCodecImageGenerator(SkCodec* codec, SkData* data); |
38 | 38 |
39 SkAutoTDelete<SkCodec> fCodec; | 39 SkAutoTDelete<SkCodec> fCodec; |
40 SkAutoTUnref<SkData> fData; | 40 SkAutoTUnref<SkData> fData; |
41 | 41 |
| 42 // FIXME: These fields are necessary only until we change the API of SkImage
Generator |
| 43 // to match SkCodec. Once the API is changed, they should be removed
. |
| 44 int fYWidth; |
| 45 int fUWidth; |
| 46 int fVWidth; |
| 47 |
42 typedef SkImageGenerator INHERITED; | 48 typedef SkImageGenerator INHERITED; |
43 }; | 49 }; |
OLD | NEW |