| 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; |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |