| Index: src/gpu/GrContext.cpp
|
| ===================================================================
|
| --- src/gpu/GrContext.cpp (revision 14037)
|
| +++ src/gpu/GrContext.cpp (working copy)
|
| @@ -18,6 +18,7 @@
|
| #include "GrDrawTargetCaps.h"
|
| #include "GrIndexBuffer.h"
|
| #include "GrInOrderDrawBuffer.h"
|
| +#include "GrLayerCache.h"
|
| #include "GrOvalRenderer.h"
|
| #include "GrPathRenderer.h"
|
| #include "GrPathUtils.h"
|
| @@ -124,6 +125,8 @@
|
|
|
| fFontCache = SkNEW_ARGS(GrFontCache, (fGpu));
|
|
|
| + fLayerCache.reset(SkNEW_ARGS(GrLayerCache, (fGpu)));
|
| +
|
| fLastDrawWasBuffered = kNo_BufferedDraw;
|
|
|
| fAARectRenderer = SkNEW(GrAARectRenderer);
|
| @@ -197,6 +200,7 @@
|
| fTextureCache->purgeAllUnlocked();
|
|
|
| fFontCache->freeAll();
|
| + fLayerCache->freeAll();
|
| fGpu->markContextDirty();
|
| }
|
|
|
| @@ -214,6 +218,7 @@
|
|
|
| fTextureCache->purgeAllUnlocked();
|
| fFontCache->freeAll();
|
| + fLayerCache->freeAll();
|
| // a path renderer may be holding onto resources
|
| SkSafeSetNull(fPathRendererChain);
|
| SkSafeSetNull(fSoftwarePathRenderer);
|
|
|