mtklein | 82d2843 | 2015-01-15 12:46:02 -0800 | [diff] [blame] | 1 | #include "DMGpuSupport.h" |
2 | #include "SkTLS.h" | ||||
3 | |||||
4 | static void* create_gr_factory() { return new GrContextFactory; } | ||||
5 | static void delete_gr_factory(void* p) { delete (GrContextFactory*)p; } | ||||
6 | |||||
7 | GrContextFactory* GetThreadLocalGrContextFactory() { | ||||
8 | return (GrContextFactory*)SkTLS::Get(create_gr_factory, delete_gr_factory); | ||||
9 | } |