Index: src/ports/SkImageDecoder_CG.cpp |
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp |
index b1d16136c464068090e6bc50afebb7ced1bc6931..9751f72062419534d9c9e4455b32901a376c46a0 100644 |
--- a/src/ports/SkImageDecoder_CG.cpp |
+++ b/src/ports/SkImageDecoder_CG.cpp |
@@ -260,7 +260,7 @@ static SkImageEncoder* sk_imageencoder_cg_factory(SkImageEncoder::Type t) { |
return SkNEW_ARGS(SkImageEncoder_CG, (t)); |
} |
-static SkTRegistry<SkImageEncoder*, SkImageEncoder::Type> gEReg(sk_imageencoder_cg_factory); |
+static SkTRegistry<SkImageEncoder*(*)(SkImageEncoder::Type)> gEReg(sk_imageencoder_cg_factory); |
struct FormatConversion { |
CFStringRef fUTType; |
@@ -302,4 +302,4 @@ static SkImageDecoder::Format get_format_cg(SkStream *stream) { |
return UTType_to_Format(name); |
} |
-static SkTRegistry<SkImageDecoder::Format, SkStream*> gFormatReg(get_format_cg); |
+static SkTRegistry<SkImageDecoder::Format(*)(SkStream*)> gFormatReg(get_format_cg); |