aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images
diff options
context:
space:
mode:
authorGravatar agl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-06-10 21:32:00 +0000
committerGravatar agl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-06-10 21:32:00 +0000
commit4f9cdcc810bd4af92a2383d29214fa9691dccef3 (patch)
treed850687ba50ec2c496e184b85d095780924fc73f /src/images
parent36bb697683f63f0ed8a37d7a7ef28c134dff856c (diff)
Compile fix for shared library builds.
Patch by: Evan Martin. git-svn-id: http://skia.googlecode.com/svn/trunk@576 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/images')
-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 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*);