aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-11-25 05:52:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-25 05:52:06 -0800
commit10e23caea3106be125acea10a637789e5a15c728 (patch)
tree80c21f2ab346fc91983b02fcaa4031604803607b /include
parent03bee31e553100ba7814cda8351d10645500f154 (diff)
Use scratch keys for stencil buffers.
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h8
-rw-r--r--include/gpu/GrGpuResource.h1
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