OLD | NEW |
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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 new SkGIFMovie(stream); | 446 return new SkGIFMovie(stream); |
447 } | 447 } |
448 } | 448 } |
449 return nullptr; | 449 return nullptr; |
450 } | 450 } |
451 | 451 |
452 static SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> gReg(Factory); | 452 static SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> gReg(Factory); |
OLD | NEW |