skia2/dm/DMGpuSupport.cpp
mtklein 82d2843cc5 turn back on gpu tests
NOTREECHECKS=true

BUG=skia:3255

Review URL: https://codereview.chromium.org/817573004
2015-01-15 12:46:02 -08:00

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);
}