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

Unified Diff: src/images/SkMovie.cpp

Issue 23477009: Change SkImageDecoders to take an SkStreamRewindable. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove accidental whitespace change Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/images/SkMovie.cpp
diff --git a/src/images/SkMovie.cpp b/src/images/SkMovie.cpp
index 2560014965cee524885ebe68d0e8bb5fe382d000..549a479681fee5eb3a783242a2ef65704abb0378 100644
--- a/src/images/SkMovie.cpp
+++ b/src/images/SkMovie.cpp
@@ -92,6 +92,6 @@ SkMovie* SkMovie::DecodeMemory(const void* data, size_t length) {
}
SkMovie* SkMovie::DecodeFile(const char path[]) {
- SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path));
+ SkAutoTUnref<SkStreamRewindable> stream(SkStreamRewindable::NewFromFile(path));
bungeman-skia 2013/09/19 16:15:49 Should probably just call this as SkStream::NewFro
scroggo 2013/09/25 20:25:09 D'oh! Overzealous search/replace. Fixed
return stream.get() ? SkMovie::DecodeStream(stream) : NULL;
}

Powered by Google App Engine
This is Rietveld 408576698