diff options
author | 2014-11-25 05:52:06 -0800 | |
---|---|---|
committer | 2014-11-25 05:52:06 -0800 | |
commit | 10e23caea3106be125acea10a637789e5a15c728 (patch) | |
tree | 80c21f2ab346fc91983b02fcaa4031604803607b /include | |
parent | 03bee31e553100ba7814cda8351d10645500f154 (diff) |
Use scratch keys for stencil buffers.
BUG=skia:2889
Committed: https://skia.googlesource.com/skia/+/91175f19664a62851da4ca4e0984a7c7c45b258f
Review URL: https://codereview.chromium.org/747043004
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 8 | ||||
-rw-r--r-- | include/gpu/GrGpuResource.h | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index b83df45743..c6dd2d7563 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -34,7 +34,6 @@ class GrPath; class GrPathRenderer; class GrResourceEntry; class GrResourceCache2; -class GrStencilBuffer; class GrTestTarget; class GrTextContext; class GrTextureParams; @@ -890,13 +889,6 @@ public: void addGpuTraceMarker(const GrGpuTraceMarker* marker); void removeGpuTraceMarker(const GrGpuTraceMarker* marker); - /** - * Stencil buffers add themselves to the cache using addStencilBuffer. findStencilBuffer is - * called to check the cache for a SB that matches an RT's criteria. - */ - void addStencilBuffer(GrStencilBuffer* sb); - GrStencilBuffer* findAndRefStencilBuffer(int width, int height, int sampleCnt); - GrPathRenderer* getPathRenderer( const GrDrawTarget* target, const GrDrawState*, diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index 806a45aa11..659b767616 100644 --- a/include/gpu/GrGpuResource.h +++ b/include/gpu/GrGpuResource.h @@ -223,6 +223,7 @@ private: bool setContentKey(const GrResourceKey& contentKey); void setBudgeted(bool countsAgainstBudget); void notifyIsPurgable() const; + void removeScratchKey(); #ifdef SK_DEBUG friend class GrGpu; // for assert in GrGpu to access getGpu |