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

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, 1 month 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
« no previous file with comments | « src/images/SkMovie_gif.h ('k') | src/ports/SkImageDecoder_CG.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/images/SkMovie_gif.cpp
diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp
index 3810db566275feb7ed777f02a7e028055d9a8f4f..89c4152c428bad28df9fbe8be17cdf51e067a275 100644
--- a/src/images/SkMovie_gif.cpp
+++ b/src/images/SkMovie_gif.cpp
@@ -6,8 +6,7 @@
* found in the LICENSE file.
*/
-
-#include "SkMovie.h"
+#include "SkMovie_gif.h"
#include "SkColor.h"
#include "SkColorPriv.h"
#include "SkStream.h"
@@ -426,11 +425,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 +439,3 @@ SkMovie* Factory(SkStreamRewindable* stream) {
return NULL;
}
-static SkTRegistry<SkMovie*(*)(SkStreamRewindable*)> gReg(Factory);
« no previous file with comments | « src/images/SkMovie_gif.h ('k') | src/ports/SkImageDecoder_CG.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698