aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-03 00:34:27 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-03 00:34:27 +0000
commite930a075625d3d90c023c2570a6a4cae1a4b484f (patch)
tree2dddc801f837be84726a334cd69572515f8fb74e /include
parentd5500886a29a20733c559c0167a6ae9946704de2 (diff)
Add a GrLayerCache to GrContext
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index e8ce27f580..b625389b67 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -28,6 +28,7 @@ class GrGpu;
class GrIndexBuffer;
class GrIndexBufferAllocPool;
class GrInOrderDrawBuffer;
+class GrLayerCache;
class GrOvalRenderer;
class GrPath;
class GrPathRenderer;
@@ -860,6 +861,7 @@ public:
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 @@ private:
GrResourceCache* fTextureCache;
GrFontCache* fFontCache;
+ SkAutoTDelete<GrLayerCache> fLayerCache;
GrPathRendererChain* fPathRendererChain;
GrSoftwarePathRenderer* fSoftwarePathRenderer;