| 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 20 matching lines...) Expand all Loading... |
| 31 bool onGetYUV8Planes(const SkYUVSizeInfo&, void* planes[3]) override; | 31 bool onGetYUV8Planes(const SkYUVSizeInfo&, void* planes[3]) override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 /* | 34 /* |
| 35 * Takes ownership of codec | 35 * Takes ownership of codec |
| 36 * Refs the data | 36 * Refs the data |
| 37 */ | 37 */ |
| 38 SkCodecImageGenerator(SkCodec* codec, SkData* data); | 38 SkCodecImageGenerator(SkCodec* codec, SkData* data); |
| 39 | 39 |
| 40 SkAutoTDelete<SkCodec> fCodec; | 40 SkAutoTDelete<SkCodec> fCodec; |
| 41 SkAutoTUnref<SkData> fData; | 41 sk_sp<SkData> fData; |
| 42 | 42 |
| 43 typedef SkImageGenerator INHERITED; | 43 typedef SkImageGenerator INHERITED; |
| 44 }; | 44 }; |
| OLD | NEW |