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 "SkBmpCodec.h" | 8 #include "SkBmpCodec.h" |
9 #include "SkBmpMaskCodec.h" | 9 #include "SkBmpMaskCodec.h" |
10 #include "SkBmpRLECodec.h" | 10 #include "SkBmpRLECodec.h" |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 | 633 |
634 typedef SkScanlineDecoder INHERITED; | 634 typedef SkScanlineDecoder INHERITED; |
635 }; | 635 }; |
636 | 636 |
637 SkScanlineDecoder* SkBmpCodec::NewSDFromStream(SkStream* stream) { | 637 SkScanlineDecoder* SkBmpCodec::NewSDFromStream(SkStream* stream) { |
638 SkAutoTDelete<SkBmpCodec> codec(static_cast<SkBmpCodec*>(SkBmpCodec::NewFrom
Stream(stream))); | 638 SkAutoTDelete<SkBmpCodec> codec(static_cast<SkBmpCodec*>(SkBmpCodec::NewFrom
Stream(stream))); |
639 if (!codec) { | 639 if (!codec) { |
640 return NULL; | 640 return NULL; |
641 } | 641 } |
642 | 642 |
643 return SkNEW_ARGS(SkBmpScanlineDecoder, (codec.detach())); | 643 return new SkBmpScanlineDecoder(codec.detach()); |
644 } | 644 } |
OLD | NEW |