diff options
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 9f6b9750bb..f987536a5c 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -36,9 +36,7 @@ #include "SkTaskGroup.h" #include "SkUnPreMultiplyPriv.h" #include "effects/GrConfigConversionEffect.h" -#include "effects/GrSkSLFP.h" #include "text/GrTextBlobCache.h" -#include <unordered_map> #define ASSERT_OWNED_PROXY(P) \ SkASSERT(!(P) || !((P)->priv().peekTexture()) || (P)->priv().peekTexture()->getContext() == this) @@ -155,9 +153,6 @@ GrContext::~GrContext() { if (fDrawingManager) { fDrawingManager->cleanup(); } - if (fFPFactories != nullptr) { - delete fFPFactories; - } fTextureStripAtlasManager = nullptr; delete fResourceProvider; @@ -1029,20 +1024,6 @@ sk_sp<GrRenderTargetContext> GrContextPriv::makeDeferredRenderTargetContext( return renderTargetContext; } -GrSkSLFPFactory* GrContextPriv::getFPFactory(size_t index) { - if (!fContext->fFPFactories) { - return nullptr; - } - return fContext->fFPFactories->get(index); -} - -void GrContextPriv::setFPFactory(size_t index, GrSkSLFPFactory* factory) { - if (!fContext->fFPFactories) { - fContext->fFPFactories = new GrSkSLFPFactoryCache(); - } - fContext->fFPFactories->set(index, std::unique_ptr<GrSkSLFPFactory>(factory)); -} - bool GrContextPriv::abandoned() const { ASSERT_SINGLE_OWNER_PRIV return fContext->fDrawingManager->wasAbandoned(); |