OLD | NEW |
---|---|
(Empty) | |
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 } | |
OLD | NEW |