Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/codec/SkCodec_libgif.cpp

Issue 1360653004: Remove SkNEW and SkDELETE macros (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Restore comment about new/delete Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkBmpCodec.cpp ('k') | src/effects/SkImageSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/codec/SkBmpCodec.cpp ('k') | src/effects/SkImageSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698