| 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 #ifndef SkAndroidCodec_DEFINED | 8 #ifndef SkAndroidCodec_DEFINED |
| 9 #define SkAndroidCodec_DEFINED | 9 #define SkAndroidCodec_DEFINED |
| 10 | 10 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 253 |
| 254 virtual SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pi
xels, | 254 virtual SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pi
xels, |
| 255 size_t rowBytes, const AndroidOptions& options) = 0; | 255 size_t rowBytes, const AndroidOptions& options) = 0; |
| 256 | 256 |
| 257 private: | 257 private: |
| 258 | 258 |
| 259 // This will always be a reference to the info that is contained by the | 259 // This will always be a reference to the info that is contained by the |
| 260 // embedded SkCodec. | 260 // embedded SkCodec. |
| 261 const SkImageInfo& fInfo; | 261 const SkImageInfo& fInfo; |
| 262 | 262 |
| 263 SkAutoTDelete<SkCodec> fCodec; | 263 std::unique_ptr<SkCodec> fCodec; |
| 264 }; | 264 }; |
| 265 #endif // SkAndroidCodec_DEFINED | 265 #endif // SkAndroidCodec_DEFINED |
| OLD | NEW |