Index: src/images/SkMovie_gif.cpp |
diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp |
index 3810db566275feb7ed777f02a7e028055d9a8f4f..47607f6222704332034758d8014bf9f57f3d7062 100644 |
--- a/src/images/SkMovie_gif.cpp |
+++ b/src/images/SkMovie_gif.cpp |
@@ -6,8 +6,8 @@ |
* found in the LICENSE file. |
*/ |
+#include "SkMovie_gif.h" |
-#include "SkMovie.h" |
#include "SkColor.h" |
#include "SkColorPriv.h" |
#include "SkStream.h" |
@@ -426,11 +426,7 @@ bool SkGIFMovie::onGetBitmap(SkBitmap* bm) |
return true; |
} |
-/////////////////////////////////////////////////////////////////////////////// |
- |
-#include "SkTRegistry.h" |
- |
-SkMovie* Factory(SkStreamRewindable* stream) { |
+SkMovie* SkGIFMovieCreate(SkStreamRewindable* stream) { |
char buf[GIF_STAMP_LEN]; |
if (stream->read(buf, GIF_STAMP_LEN) == GIF_STAMP_LEN) { |
if (memcmp(GIF_STAMP, buf, GIF_STAMP_LEN) == 0 || |
@@ -444,4 +440,3 @@ SkMovie* Factory(SkStreamRewindable* stream) { |
return NULL; |
} |
-static SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> gReg(Factory); |