Chromium Code Reviews| 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 869 | 869 |
| 870 GrResourceCache* fTextureCache; | 870 GrResourceCache* fTextureCache; |
| 871 GrFontCache* fFontCache; | 871 GrFontCache* fFontCache; |
| 872 | 872 |
| 873 GrPathRendererChain* fPathRendererChain; | 873 GrPathRendererChain* fPathRendererChain; |
| 874 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 874 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
| 875 | 875 |
| 876 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; | 876 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; |
| 877 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; | 877 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; |
| 878 GrInOrderDrawBuffer* fDrawBuffer; | 878 GrInOrderDrawBuffer* fDrawBuffer; |
| 879 | 879 |
|
robertphillips
2013/10/04 15:28:12
// This is a marker that the various draw calls ca
| |
| 880 bool fFlushToReduceCacheSize; | |
| 881 | |
| 880 GrAARectRenderer* fAARectRenderer; | 882 GrAARectRenderer* fAARectRenderer; |
| 881 GrOvalRenderer* fOvalRenderer; | 883 GrOvalRenderer* fOvalRenderer; |
| 882 | 884 |
| 883 bool fDidTestPMConversions; | 885 bool fDidTestPMConversions; |
| 884 int fPMToUPMConversion; | 886 int fPMToUPMConversion; |
| 885 int fUPMToPMConversion; | 887 int fUPMToPMConversion; |
| 886 | 888 |
| 887 struct CleanUpData { | 889 struct CleanUpData { |
| 888 PFCleanUpFunc fFunc; | 890 PFCleanUpFunc fFunc; |
| 889 void* fInfo; | 891 void* fInfo; |
| 890 }; | 892 }; |
| 891 | 893 |
| 892 SkTDArray<CleanUpData> fCleanUpData; | 894 SkTDArray<CleanUpData> fCleanUpData; |
| 893 | 895 |
| 894 int fMaxTextureSizeOverride; | 896 int fMaxTextureSizeOverride; |
| 895 | 897 |
| 896 GrContext(); // init must be called after the constructor. | 898 GrContext(); // init must be called after the constructor. |
| 897 bool init(GrBackend, GrBackendContext); | 899 bool init(GrBackend, GrBackendContext); |
| 898 | 900 |
| 899 void setupDrawBuffer(); | 901 void setupDrawBuffer(); |
| 900 | 902 |
| 901 class AutoRestoreEffects; | 903 class AutoRestoreEffects; |
| 904 class AutoCheckFlush; | |
| 902 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the | 905 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the |
| 903 /// draw state is left unmodified. | 906 /// draw state is left unmodified. |
| 904 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *); | 907 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *, AutoCheckFlush*); |
| 905 | 908 |
| 906 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, | 909 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, |
| 907 const SkStrokeRec& stroke); | 910 const SkStrokeRec& stroke); |
| 908 | 911 |
| 909 GrTexture* createResizedTexture(const GrTextureDesc& desc, | 912 GrTexture* createResizedTexture(const GrTextureDesc& desc, |
| 910 const GrCacheID& cacheID, | 913 const GrCacheID& cacheID, |
| 911 void* srcData, | 914 void* srcData, |
| 912 size_t rowBytes, | 915 size_t rowBytes, |
| 913 bool filter); | 916 bool filter); |
| 914 | 917 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1021 } | 1024 } |
| 1022 | 1025 |
| 1023 GrTexture* texture() { return fTexture; } | 1026 GrTexture* texture() { return fTexture; } |
| 1024 | 1027 |
| 1025 private: | 1028 private: |
| 1026 GrContext* fContext; | 1029 GrContext* fContext; |
| 1027 GrTexture* fTexture; | 1030 GrTexture* fTexture; |
| 1028 }; | 1031 }; |
| 1029 | 1032 |
| 1030 #endif | 1033 #endif |
| OLD | NEW |