82d2843cc5
NOTREECHECKS=true BUG=skia:3255 Review URL: https://codereview.chromium.org/817573004
10 lines
328 B
C++
10 lines
328 B
C++
#include "DMGpuSupport.h"
|
|
#include "SkTLS.h"
|
|
|
|
static void* create_gr_factory() { return new GrContextFactory; }
|
|
static void delete_gr_factory(void* p) { delete (GrContextFactory*)p; }
|
|
|
|
GrContextFactory* GetThreadLocalGrContextFactory() {
|
|
return (GrContextFactory*)SkTLS::Get(create_gr_factory, delete_gr_factory);
|
|
}
|