| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef GrContext_DEFINED | 10 #ifndef GrContext_DEFINED |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class GrAutoScratchTexture; | 23 class GrAutoScratchTexture; |
| 24 class GrDrawState; | 24 class GrDrawState; |
| 25 class GrDrawTarget; | 25 class GrDrawTarget; |
| 26 class GrEffect; | 26 class GrEffect; |
| 27 class GrFontCache; | 27 class GrFontCache; |
| 28 class GrGpu; | 28 class GrGpu; |
| 29 class GrIndexBuffer; | 29 class GrIndexBuffer; |
| 30 class GrIndexBufferAllocPool; | 30 class GrIndexBufferAllocPool; |
| 31 class GrInOrderDrawBuffer; | 31 class GrInOrderDrawBuffer; |
| 32 class GrOvalRenderer; |
| 32 class GrPathRenderer; | 33 class GrPathRenderer; |
| 33 class GrResourceEntry; | 34 class GrResourceEntry; |
| 34 class GrResourceCache; | 35 class GrResourceCache; |
| 35 class GrStencilBuffer; | 36 class GrStencilBuffer; |
| 36 class GrTextureParams; | 37 class GrTextureParams; |
| 37 class GrVertexBuffer; | 38 class GrVertexBuffer; |
| 38 class GrVertexBufferAllocPool; | 39 class GrVertexBufferAllocPool; |
| 39 class GrSoftwarePathRenderer; | 40 class GrSoftwarePathRenderer; |
| 40 class SkStrokeRec; | 41 class SkStrokeRec; |
| 41 | 42 |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 GrFontCache* fFontCache; | 862 GrFontCache* fFontCache; |
| 862 | 863 |
| 863 GrPathRendererChain* fPathRendererChain; | 864 GrPathRendererChain* fPathRendererChain; |
| 864 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 865 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
| 865 | 866 |
| 866 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; | 867 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; |
| 867 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; | 868 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; |
| 868 GrInOrderDrawBuffer* fDrawBuffer; | 869 GrInOrderDrawBuffer* fDrawBuffer; |
| 869 | 870 |
| 870 GrAARectRenderer* fAARectRenderer; | 871 GrAARectRenderer* fAARectRenderer; |
| 872 GrOvalRenderer* fOvalRenderer; |
| 871 | 873 |
| 872 bool fDidTestPMConversions; | 874 bool fDidTestPMConversions; |
| 873 int fPMToUPMConversion; | 875 int fPMToUPMConversion; |
| 874 int fUPMToPMConversion; | 876 int fUPMToPMConversion; |
| 875 | 877 |
| 876 struct CleanUpData { | 878 struct CleanUpData { |
| 877 PFCleanUpFunc fFunc; | 879 PFCleanUpFunc fFunc; |
| 878 void* fInfo; | 880 void* fInfo; |
| 879 }; | 881 }; |
| 880 | 882 |
| 881 SkTDArray<CleanUpData> fCleanUpData; | 883 SkTDArray<CleanUpData> fCleanUpData; |
| 882 | 884 |
| 883 GrContext(); // init must be called after the constructor. | 885 GrContext(); // init must be called after the constructor. |
| 884 bool init(GrBackend, GrBackendContext); | 886 bool init(GrBackend, GrBackendContext); |
| 885 | 887 |
| 886 void setupDrawBuffer(); | 888 void setupDrawBuffer(); |
| 887 | 889 |
| 888 void flushDrawBuffer(); | 890 void flushDrawBuffer(); |
| 889 | 891 |
| 890 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the | 892 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the |
| 891 /// draw state is left unmodified. | 893 /// draw state is left unmodified. |
| 892 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); | 894 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); |
| 893 | 895 |
| 894 void internalDrawPath(const GrPaint& paint, const SkPath& path, const SkStro
keRec& stroke); | 896 void internalDrawPath(GrDrawTarget* target, const GrPaint& paint, const SkPa
th& path, |
| 895 | 897 const SkStrokeRec& stroke); |
| 896 void internalDrawOval(const GrPaint& paint, const GrRect& oval, const SkStro
keRec& stroke); | |
| 897 void internalDrawCircle(const GrPaint& paint, const GrRect& circle, const Sk
StrokeRec& stroke); | |
| 898 bool canDrawOval(const GrPaint& paint, const GrRect& oval, bool* isCircle) c
onst; | |
| 899 | 898 |
| 900 GrTexture* createResizedTexture(const GrTextureDesc& desc, | 899 GrTexture* createResizedTexture(const GrTextureDesc& desc, |
| 901 const GrCacheID& cacheID, | 900 const GrCacheID& cacheID, |
| 902 void* srcData, | 901 void* srcData, |
| 903 size_t rowBytes, | 902 size_t rowBytes, |
| 904 bool needsFiltering); | 903 bool needsFiltering); |
| 905 | 904 |
| 906 // Needed so GrTexture's returnToCache helper function can call | 905 // Needed so GrTexture's returnToCache helper function can call |
| 907 // addExistingTextureToCache | 906 // addExistingTextureToCache |
| 908 friend class GrTexture; | 907 friend class GrTexture; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 } | 1002 } |
| 1004 | 1003 |
| 1005 GrTexture* texture() { return fTexture; } | 1004 GrTexture* texture() { return fTexture; } |
| 1006 | 1005 |
| 1007 private: | 1006 private: |
| 1008 GrContext* fContext; | 1007 GrContext* fContext; |
| 1009 GrTexture* fTexture; | 1008 GrTexture* fTexture; |
| 1010 }; | 1009 }; |
| 1011 | 1010 |
| 1012 #endif | 1011 #endif |
| OLD | NEW |