diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-03 00:34:27 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-03 00:34:27 +0000 |
commit | e930a075625d3d90c023c2570a6a4cae1a4b484f (patch) | |
tree | 2dddc801f837be84726a334cd69572515f8fb74e /include | |
parent | d5500886a29a20733c559c0167a6ae9946704de2 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 3 |
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; |