Add a GrLayerCache to GrContext
https://codereview.chromium.org/217343006/
git-svn-id: http://skia.googlecode.com/svn/trunk@14038 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index e8ce27f..b625389 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -28,6 +28,7 @@
class GrIndexBuffer;
class GrIndexBufferAllocPool;
class GrInOrderDrawBuffer;
+class GrLayerCache;
class GrOvalRenderer;
class GrPath;
class GrPathRenderer;
@@ -860,6 +861,7 @@
GrGpu* getGpu() { return fGpu; }
const GrGpu* getGpu() const { return fGpu; }
GrFontCache* getFontCache() { return fFontCache; }
+ GrLayerCache* getLayerCache() { return fLayerCache.get(); }
GrDrawTarget* getTextTarget();
const GrIndexBuffer* getQuadIndexBuffer() const;
@@ -907,6 +909,7 @@
GrResourceCache* fTextureCache;
GrFontCache* fFontCache;
+ SkAutoTDelete<GrLayerCache> fLayerCache;
GrPathRendererChain* fPathRendererChain;
GrSoftwarePathRenderer* fSoftwarePathRenderer;