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