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

Side by Side Diff: src/images/SkMovie_gif.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT 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/images/SkImageDecoder_wbmp.cpp ('k') | src/lazy/SkCachingPixelRef.h » ('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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkMovie.h" 10 #include "SkMovie.h"
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 #include "SkTRegistry.h" 436 #include "SkTRegistry.h"
437 437
438 SkMovie* Factory(SkStreamRewindable* stream) { 438 SkMovie* Factory(SkStreamRewindable* stream) {
439 char buf[GIF_STAMP_LEN]; 439 char buf[GIF_STAMP_LEN];
440 if (stream->read(buf, GIF_STAMP_LEN) == GIF_STAMP_LEN) { 440 if (stream->read(buf, GIF_STAMP_LEN) == GIF_STAMP_LEN) {
441 if (memcmp(GIF_STAMP, buf, GIF_STAMP_LEN) == 0 || 441 if (memcmp(GIF_STAMP, buf, GIF_STAMP_LEN) == 0 ||
442 memcmp(GIF87_STAMP, buf, GIF_STAMP_LEN) == 0 || 442 memcmp(GIF87_STAMP, buf, GIF_STAMP_LEN) == 0 ||
443 memcmp(GIF89_STAMP, buf, GIF_STAMP_LEN) == 0) { 443 memcmp(GIF89_STAMP, buf, GIF_STAMP_LEN) == 0) {
444 // must rewind here, since our construct wants to re-read the data 444 // must rewind here, since our construct wants to re-read the data
445 stream->rewind(); 445 stream->rewind();
446 return SkNEW_ARGS(SkGIFMovie, (stream)); 446 return new SkGIFMovie(stream);
447 } 447 }
448 } 448 }
449 return NULL; 449 return NULL;
450 } 450 }
451 451
452 static SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> gReg(Factory); 452 static SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> gReg(Factory);
OLDNEW
« no previous file with comments | « src/images/SkImageDecoder_wbmp.cpp ('k') | src/lazy/SkCachingPixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698