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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 class GrGpuTraceMarker; 27 class GrGpuTraceMarker;
28 class GrIndexBuffer; 28 class GrIndexBuffer;
29 class GrIndexBufferAllocPool; 29 class GrIndexBufferAllocPool;
30 class GrInOrderDrawBuffer; 30 class GrInOrderDrawBuffer;
31 class GrLayerCache; 31 class GrLayerCache;
32 class GrOvalRenderer; 32 class GrOvalRenderer;
33 class GrPath; 33 class GrPath;
34 class GrPathRenderer; 34 class GrPathRenderer;
35 class GrResourceEntry; 35 class GrResourceEntry;
36 class GrResourceCache2; 36 class GrResourceCache2;
37 class GrStencilBuffer;
37 class GrTestTarget; 38 class GrTestTarget;
38 class GrTextContext; 39 class GrTextContext;
39 class GrTextureParams; 40 class GrTextureParams;
40 class GrVertexBuffer; 41 class GrVertexBuffer;
41 class GrVertexBufferAllocPool; 42 class GrVertexBufferAllocPool;
42 class GrStrokeInfo; 43 class GrStrokeInfo;
43 class GrSoftwarePathRenderer; 44 class GrSoftwarePathRenderer;
44 class SkStrokeRec; 45 class SkStrokeRec;
45 46
46 class SK_API GrContext : public SkRefCnt { 47 class SK_API GrContext : public SkRefCnt {
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 const GrIndexBuffer* getQuadIndexBuffer() const; 883 const GrIndexBuffer* getQuadIndexBuffer() const;
883 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } 884 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; }
884 GrResourceCache2* getResourceCache2() { return fResourceCache2; } 885 GrResourceCache2* getResourceCache2() { return fResourceCache2; }
885 886
886 // Called by tests that draw directly to the context via GrDrawTarget 887 // Called by tests that draw directly to the context via GrDrawTarget
887 void getTestTarget(GrTestTarget*); 888 void getTestTarget(GrTestTarget*);
888 889
889 void addGpuTraceMarker(const GrGpuTraceMarker* marker); 890 void addGpuTraceMarker(const GrGpuTraceMarker* marker);
890 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); 891 void removeGpuTraceMarker(const GrGpuTraceMarker* marker);
891 892
893 /**
894 * Stencil buffers add themselves to the cache using addStencilBuffer. findS tencilBuffer is
895 * called to check the cache for a SB that matches an RT's criteria.
896 */
897 void addStencilBuffer(GrStencilBuffer* sb);
898 GrStencilBuffer* findAndRefStencilBuffer(int width, int height, int sampleCn t);
899
892 GrPathRenderer* getPathRenderer( 900 GrPathRenderer* getPathRenderer(
893 const GrDrawTarget* target, 901 const GrDrawTarget* target,
894 const GrDrawState*, 902 const GrDrawState*,
895 const SkPath& path, 903 const SkPath& path,
896 const SkStrokeRec& stroke, 904 const SkStrokeRec& stroke,
897 bool allowSW, 905 bool allowSW,
898 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType, 906 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType,
899 GrPathRendererChain::StencilSupport* stencilSupport = NULL); 907 GrPathRendererChain::StencilSupport* stencilSupport = NULL);
900 908
901 /** 909 /**
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 /** 1012 /**
1005 * This callback allows the resource cache to callback into the GrContext 1013 * This callback allows the resource cache to callback into the GrContext
1006 * when the cache is still over budget after a purge. 1014 * when the cache is still over budget after a purge.
1007 */ 1015 */
1008 static void OverBudgetCB(void* data); 1016 static void OverBudgetCB(void* data);
1009 1017
1010 typedef SkRefCnt INHERITED; 1018 typedef SkRefCnt INHERITED;
1011 }; 1019 };
1012 1020
1013 #endif 1021 #endif
OLDNEW
« 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