| 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 17 matching lines...) Expand all Loading... |
| 28 class GrGpuTraceMarker; | 28 class GrGpuTraceMarker; |
| 29 class GrIndexBuffer; | 29 class GrIndexBuffer; |
| 30 class GrIndexBufferAllocPool; | 30 class GrIndexBufferAllocPool; |
| 31 class GrInOrderDrawBuffer; | 31 class GrInOrderDrawBuffer; |
| 32 class GrLayerCache; | 32 class GrLayerCache; |
| 33 class GrOvalRenderer; | 33 class GrOvalRenderer; |
| 34 class GrPath; | 34 class GrPath; |
| 35 class GrPathRenderer; | 35 class GrPathRenderer; |
| 36 class GrResourceEntry; | 36 class GrResourceEntry; |
| 37 class GrResourceCache; | 37 class GrResourceCache; |
| 38 class GrResourceCache2; | |
| 39 class GrStencilBuffer; | 38 class GrStencilBuffer; |
| 40 class GrTestTarget; | 39 class GrTestTarget; |
| 41 class GrTextContext; | 40 class GrTextContext; |
| 42 class GrTextureParams; | 41 class GrTextureParams; |
| 43 class GrVertexBuffer; | 42 class GrVertexBuffer; |
| 44 class GrVertexBufferAllocPool; | 43 class GrVertexBufferAllocPool; |
| 45 class GrStrokeInfo; | 44 class GrStrokeInfo; |
| 46 class GrSoftwarePathRenderer; | 45 class GrSoftwarePathRenderer; |
| 47 class SkStrokeRec; | 46 class SkStrokeRec; |
| 48 | 47 |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 | 919 |
| 921 /////////////////////////////////////////////////////////////////////////// | 920 /////////////////////////////////////////////////////////////////////////// |
| 922 // Functions intended for internal use only. | 921 // Functions intended for internal use only. |
| 923 GrGpu* getGpu() { return fGpu; } | 922 GrGpu* getGpu() { return fGpu; } |
| 924 const GrGpu* getGpu() const { return fGpu; } | 923 const GrGpu* getGpu() const { return fGpu; } |
| 925 GrFontCache* getFontCache() { return fFontCache; } | 924 GrFontCache* getFontCache() { return fFontCache; } |
| 926 GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 925 GrLayerCache* getLayerCache() { return fLayerCache.get(); } |
| 927 GrDrawTarget* getTextTarget(); | 926 GrDrawTarget* getTextTarget(); |
| 928 const GrIndexBuffer* getQuadIndexBuffer() const; | 927 const GrIndexBuffer* getQuadIndexBuffer() const; |
| 929 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } | 928 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } |
| 930 GrResourceCache2* getResourceCache2() { return fResourceCache2; } | |
| 931 | 929 |
| 932 // Called by tests that draw directly to the context via GrDrawTarget | 930 // Called by tests that draw directly to the context via GrDrawTarget |
| 933 void getTestTarget(GrTestTarget*); | 931 void getTestTarget(GrTestTarget*); |
| 934 | 932 |
| 935 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | 933 void addGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 936 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | 934 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 937 | 935 |
| 938 /** | 936 /** |
| 939 * Stencil buffers add themselves to the cache using addStencilBuffer. findS
tencilBuffer is | 937 * Stencil buffers add themselves to the cache using addStencilBuffer. findS
tencilBuffer is |
| 940 * called to check the cache for a SB that matches an RT's criteria. | 938 * called to check the cache for a SB that matches an RT's criteria. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 968 }; | 966 }; |
| 969 BufferedDraw fLastDrawWasBuffered; | 967 BufferedDraw fLastDrawWasBuffered; |
| 970 | 968 |
| 971 GrGpu* fGpu; | 969 GrGpu* fGpu; |
| 972 SkMatrix fViewMatrix; | 970 SkMatrix fViewMatrix; |
| 973 SkAutoTUnref<GrRenderTarget> fRenderTarget; | 971 SkAutoTUnref<GrRenderTarget> fRenderTarget; |
| 974 const GrClipData* fClip; // TODO: make this ref counted | 972 const GrClipData* fClip; // TODO: make this ref counted |
| 975 GrDrawState* fDrawState; | 973 GrDrawState* fDrawState; |
| 976 | 974 |
| 977 GrResourceCache* fResourceCache; | 975 GrResourceCache* fResourceCache; |
| 978 GrResourceCache2* fResourceCache2; | |
| 979 GrFontCache* fFontCache; | 976 GrFontCache* fFontCache; |
| 980 SkAutoTDelete<GrLayerCache> fLayerCache; | 977 SkAutoTDelete<GrLayerCache> fLayerCache; |
| 981 | 978 |
| 982 GrPathRendererChain* fPathRendererChain; | 979 GrPathRendererChain* fPathRendererChain; |
| 983 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 980 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
| 984 | 981 |
| 985 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; | 982 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; |
| 986 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; | 983 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; |
| 987 GrInOrderDrawBuffer* fDrawBuffer; | 984 GrInOrderDrawBuffer* fDrawBuffer; |
| 988 | 985 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 } | 1144 } |
| 1148 | 1145 |
| 1149 GrTexture* texture() { return fTexture; } | 1146 GrTexture* texture() { return fTexture; } |
| 1150 | 1147 |
| 1151 private: | 1148 private: |
| 1152 GrContext* fContext; | 1149 GrContext* fContext; |
| 1153 GrTexture* fTexture; | 1150 GrTexture* fTexture; |
| 1154 }; | 1151 }; |
| 1155 | 1152 |
| 1156 #endif | 1153 #endif |
| OLD | NEW |