aboutsummaryrefslogtreecommitdiffstats
path: root/src/images/SkImageDecoder_Factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/images/SkImageDecoder_Factory.cpp')
-rw-r--r--src/images/SkImageDecoder_Factory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/images/SkImageDecoder_Factory.cpp b/src/images/SkImageDecoder_Factory.cpp
index 4009f42..e5ff395 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*);