| Index: src/gpu/GrStencilAndCoverTextContext.cpp
|
| diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| index 0d649154a2dacc29385f32c2f00e1c0347b7ef3f..a2abfa7fa98bb8df5ab0e680d83392071a35bac4 100644
|
| --- a/src/gpu/GrStencilAndCoverTextContext.cpp
|
| +++ b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| @@ -11,6 +11,7 @@
|
| #include "GrGpu.h"
|
| #include "GrPath.h"
|
| #include "GrPathRange.h"
|
| +#include "GrResourceProvider.h"
|
| #include "SkAutoKern.h"
|
| #include "SkDraw.h"
|
| #include "SkDrawProcs.h"
|
| @@ -235,10 +236,10 @@ static GrPathRange* get_gr_glyphs(GrContext* ctx,
|
| builder.finish();
|
|
|
| SkAutoTUnref<GrPathRange> glyphs(
|
| - static_cast<GrPathRange*>(ctx->findAndRefCachedResource(key)));
|
| + static_cast<GrPathRange*>(ctx->resourceProvider()->findAndRefResourceByUniqueKey(key)));
|
| if (NULL == glyphs || (NULL != desc && !glyphs->isEqualTo(*desc))) {
|
| glyphs.reset(ctx->getGpu()->pathRendering()->createGlyphs(typeface, desc, stroke));
|
| - ctx->addResourceToCache(key, glyphs);
|
| + ctx->resourceProvider()->assignUniqueKeyToResource(key, glyphs);
|
| }
|
|
|
| return glyphs.detach();
|
|
|