diff options
Diffstat (limited to 'src/images')
-rw-r--r-- | src/images/SkImageDecoder_Factory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/images/SkImageDecoder_Factory.cpp b/src/images/SkImageDecoder_Factory.cpp index 2090d857dc..cb5ff2143f 100644 --- a/src/images/SkImageDecoder_Factory.cpp +++ b/src/images/SkImageDecoder_Factory.cpp @@ -22,7 +22,9 @@ typedef SkTRegistry<SkImageDecoder*, SkStream*> DecodeReg; -template<> DecodeReg* DecodeReg::gHead; +// N.B. You can't use "DecodeReg::gHead here" due to complex C++ +// corner cases. +template DecodeReg* SkTRegistry<SkImageDecoder*, SkStream*>::gHead; #ifdef SK_ENABLE_LIBPNG extern SkImageDecoder* sk_libpng_dfactory(SkStream*); |