| OLD | NEW |
| 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 Loading... |
| 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; | |
| 38 class GrTestTarget; | 37 class GrTestTarget; |
| 39 class GrTextContext; | 38 class GrTextContext; |
| 40 class GrTextureParams; | 39 class GrTextureParams; |
| 41 class GrVertexBuffer; | 40 class GrVertexBuffer; |
| 42 class GrVertexBufferAllocPool; | 41 class GrVertexBufferAllocPool; |
| 43 class GrStrokeInfo; | 42 class GrStrokeInfo; |
| 44 class GrSoftwarePathRenderer; | 43 class GrSoftwarePathRenderer; |
| 45 class SkStrokeRec; | 44 class SkStrokeRec; |
| 46 | 45 |
| 47 class SK_API GrContext : public SkRefCnt { | 46 class SK_API GrContext : public SkRefCnt { |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 const GrIndexBuffer* getQuadIndexBuffer() const; | 882 const GrIndexBuffer* getQuadIndexBuffer() const; |
| 884 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } | 883 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } |
| 885 GrResourceCache2* getResourceCache2() { return fResourceCache2; } | 884 GrResourceCache2* getResourceCache2() { return fResourceCache2; } |
| 886 | 885 |
| 887 // Called by tests that draw directly to the context via GrDrawTarget | 886 // Called by tests that draw directly to the context via GrDrawTarget |
| 888 void getTestTarget(GrTestTarget*); | 887 void getTestTarget(GrTestTarget*); |
| 889 | 888 |
| 890 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | 889 void addGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 891 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | 890 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 892 | 891 |
| 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 | |
| 900 GrPathRenderer* getPathRenderer( | 892 GrPathRenderer* getPathRenderer( |
| 901 const GrDrawTarget* target, | 893 const GrDrawTarget* target, |
| 902 const GrDrawState*, | 894 const GrDrawState*, |
| 903 const SkPath& path, | 895 const SkPath& path, |
| 904 const SkStrokeRec& stroke, | 896 const SkStrokeRec& stroke, |
| 905 bool allowSW, | 897 bool allowSW, |
| 906 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 898 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
| 907 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 899 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
| 908 | 900 |
| 909 /** | 901 /** |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 /** | 1004 /** |
| 1013 * This callback allows the resource cache to callback into the GrContext | 1005 * This callback allows the resource cache to callback into the GrContext |
| 1014 * when the cache is still over budget after a purge. | 1006 * when the cache is still over budget after a purge. |
| 1015 */ | 1007 */ |
| 1016 static void OverBudgetCB(void* data); | 1008 static void OverBudgetCB(void* data); |
| 1017 | 1009 |
| 1018 typedef SkRefCnt INHERITED; | 1010 typedef SkRefCnt INHERITED; |
| 1019 }; | 1011 }; |
| 1020 | 1012 |
| 1021 #endif | 1013 #endif |
| OLD | NEW |