OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #include "SkMovie.h" | 8 #include "SkMovie.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 //////////////////////////////////////////////////////////////////// | 85 //////////////////////////////////////////////////////////////////// |
86 | 86 |
87 #include "SkStream.h" | 87 #include "SkStream.h" |
88 | 88 |
89 SkMovie* SkMovie::DecodeMemory(const void* data, size_t length) { | 89 SkMovie* SkMovie::DecodeMemory(const void* data, size_t length) { |
90 SkMemoryStream stream(data, length, false); | 90 SkMemoryStream stream(data, length, false); |
91 return SkMovie::DecodeStream(&stream); | 91 return SkMovie::DecodeStream(&stream); |
92 } | 92 } |
93 | 93 |
94 SkMovie* SkMovie::DecodeFile(const char path[]) { | 94 SkMovie* SkMovie::DecodeFile(const char path[]) { |
95 SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path)); | 95 SkAutoTUnref<SkStreamRewindable> stream(SkStream::NewFromFile(path)); |
96 return stream.get() ? SkMovie::DecodeStream(stream) : NULL; | 96 return stream.get() ? SkMovie::DecodeStream(stream) : NULL; |
97 } | 97 } |
OLD | NEW |