| 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_libgif.h" | 8 #include "SkCodec_libgif.h" |
| 9 #include "SkCodecPriv.h" | 9 #include "SkCodecPriv.h" |
| 10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 }; | 694 }; |
| 695 | 695 |
| 696 SkScanlineDecoder* SkGifCodec::NewSDFromStream(SkStream* stream) { | 696 SkScanlineDecoder* SkGifCodec::NewSDFromStream(SkStream* stream) { |
| 697 SkAutoTDelete<SkGifCodec> codec (static_cast<SkGifCodec*>(SkGifCodec::NewFro
mStream(stream))); | 697 SkAutoTDelete<SkGifCodec> codec (static_cast<SkGifCodec*>(SkGifCodec::NewFro
mStream(stream))); |
| 698 if (!codec) { | 698 if (!codec) { |
| 699 return NULL; | 699 return NULL; |
| 700 } | 700 } |
| 701 | 701 |
| 702 const SkImageInfo& srcInfo = codec->getInfo(); | 702 const SkImageInfo& srcInfo = codec->getInfo(); |
| 703 | 703 |
| 704 return SkNEW_ARGS(SkGifScanlineDecoder, (srcInfo, codec.detach())); | 704 return new SkGifScanlineDecoder(srcInfo, codec.detach()); |
| 705 } | 705 } |
| OLD | NEW |