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