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

Unified Diff: src/images/SkMovie_gif.cpp

Issue 670453002: Remove image decoder and encoder autoregistration (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-decoder-01-skpicture
Patch Set: Created 6 years, 2 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_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);

Powered by Google App Engine
This is Rietveld 408576698