Lock gFTMutex when modifying FT globals.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 4 Oct 2012 20:45:06 +0000 (20:45 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 4 Oct 2012 20:45:06 +0000 (20:45 +0000)
commit94bc60f9864094edbfb787b09c963d8818c8962f
treeb53d143adc119183fd45e7330db707451ab57fee
parentd5d69ffaea117428972db48796f7e75f0d1dab34
Lock gFTMutex when modifying FT globals.

This prevents a crash when running bench_pictures with multiple threads.

Also remove an unused function and fix a typo in SkFontHost.
Review URL: https://codereview.appspot.com/6625043

git-svn-id: http://skia.googlecode.com/svn/trunk@5816 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkFontHost.h
src/ports/SkFontHost_FreeType.cpp