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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); | 833 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); |
834 | 834 |
835 GrPathRenderer* getPathRenderer( | 835 GrPathRenderer* getPathRenderer( |
836 const SkPath& path, | 836 const SkPath& path, |
837 const SkStrokeRec& stroke, | 837 const SkStrokeRec& stroke, |
838 const GrDrawTarget* target, | 838 const GrDrawTarget* target, |
839 bool allowSW, | 839 bool allowSW, |
840 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 840 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
841 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 841 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
842 | 842 |
| 843 |
843 #if GR_CACHE_STATS | 844 #if GR_CACHE_STATS |
844 void printCacheStats() const; | 845 void printCacheStats() const; |
845 #endif | 846 #endif |
846 | 847 |
847 private: | 848 private: |
848 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. | 849 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. |
849 enum BufferedDraw { | 850 enum BufferedDraw { |
850 kYes_BufferedDraw, | 851 kYes_BufferedDraw, |
851 kNo_BufferedDraw, | 852 kNo_BufferedDraw, |
852 }; | 853 }; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 } | 1013 } |
1013 | 1014 |
1014 GrTexture* texture() { return fTexture; } | 1015 GrTexture* texture() { return fTexture; } |
1015 | 1016 |
1016 private: | 1017 private: |
1017 GrContext* fContext; | 1018 GrContext* fContext; |
1018 GrTexture* fTexture; | 1019 GrTexture* fTexture; |
1019 }; | 1020 }; |
1020 | 1021 |
1021 #endif | 1022 #endif |
OLD | NEW |