diff options
Diffstat (limited to 'src/gpu/GrDirectContext.cpp')
-rw-r--r-- | src/gpu/GrDirectContext.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrDirectContext.cpp b/src/gpu/GrDirectContext.cpp index 3e4b8ef5fa..c87078b98b 100644 --- a/src/gpu/GrDirectContext.cpp +++ b/src/gpu/GrDirectContext.cpp @@ -10,6 +10,7 @@ #include "GrContextPriv.h" #include "GrGpu.h" +#include "effects/GrSkSLFP.h" #include "gl/GrGLGpu.h" #include "mock/GrMockGpu.h" #include "text/GrGlyphCache.h" @@ -58,9 +59,10 @@ protected: bool init(const GrContextOptions& options) override { SkASSERT(fCaps); // should've been set in ctor SkASSERT(!fThreadSafeProxy); - + SkASSERT(!fFPFactoryCache); + fFPFactoryCache.reset(new GrSkSLFPFactoryCache()); fThreadSafeProxy.reset(new GrContextThreadSafeProxy(fCaps, this->uniqueID(), - fBackend, options)); + fBackend, options, fFPFactoryCache)); if (!INHERITED::initCommon(options)) { return false; |