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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
864 } | 864 } |
865 | 865 |
866 private: | 866 private: |
867 AutoClip fAutoClip; | 867 AutoClip fAutoClip; |
868 AutoRenderTarget fAutoRT; | 868 AutoRenderTarget fAutoRT; |
869 AutoMatrix fAutoMatrix; | 869 AutoMatrix fAutoMatrix; |
870 }; | 870 }; |
871 | 871 |
872 /////////////////////////////////////////////////////////////////////////// | 872 /////////////////////////////////////////////////////////////////////////// |
873 // Functions intended for internal use only. | 873 // Functions intended for internal use only. |
874 GrDrawTarget* getDrawTarget(); | |
bsalomon
2014/11/05 19:13:43
If this is for testing then I think it should be n
| |
874 GrGpu* getGpu() { return fGpu; } | 875 GrGpu* getGpu() { return fGpu; } |
875 const GrGpu* getGpu() const { return fGpu; } | 876 const GrGpu* getGpu() const { return fGpu; } |
876 GrFontCache* getFontCache() { return fFontCache; } | 877 GrFontCache* getFontCache() { return fFontCache; } |
877 GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 878 GrLayerCache* getLayerCache() { return fLayerCache.get(); } |
878 GrDrawTarget* getTextTarget(); | 879 GrDrawTarget* getTextTarget(); |
879 const GrIndexBuffer* getQuadIndexBuffer() const; | 880 const GrIndexBuffer* getQuadIndexBuffer() const; |
880 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } | 881 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } |
881 GrResourceCache* getResourceCache() { return fResourceCache; } | 882 GrResourceCache* getResourceCache() { return fResourceCache; } |
882 GrResourceCache2* getResourceCache2() { return fResourceCache2; } | 883 GrResourceCache2* getResourceCache2() { return fResourceCache2; } |
883 | 884 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1009 /** | 1010 /** |
1010 * This callback allows the resource cache to callback into the GrContext | 1011 * This callback allows the resource cache to callback into the GrContext |
1011 * when the cache is still overbudget after a purge. | 1012 * when the cache is still overbudget after a purge. |
1012 */ | 1013 */ |
1013 static bool OverbudgetCB(void* data); | 1014 static bool OverbudgetCB(void* data); |
1014 | 1015 |
1015 typedef SkRefCnt INHERITED; | 1016 typedef SkRefCnt INHERITED; |
1016 }; | 1017 }; |
1017 | 1018 |
1018 #endif | 1019 #endif |
OLD | NEW |