Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Unified Diff: include/gpu/GrContext.h

Issue 752233002: Revert "Use scratch keys for stencil buffers." (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « expectations/gm/Test-Win8-ShuttleA-GTX660-x86_64-Debug/expected-results.json ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index c6dd2d75631af38fdef00e2a933c144e11b90680..b83df457431ca0cfb57bfdf8d2130be7c3f91e0f 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -34,6 +34,7 @@ class GrPath;
class GrPathRenderer;
class GrResourceEntry;
class GrResourceCache2;
+class GrStencilBuffer;
class GrTestTarget;
class GrTextContext;
class GrTextureParams;
@@ -889,6 +890,13 @@ 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*,
« no previous file with comments | « expectations/gm/Test-Win8-ShuttleA-GTX660-x86_64-Debug/expected-results.json ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698