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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 * called to check the cache for a SB that matches an RT's criteria. | 847 * called to check the cache for a SB that matches an RT's criteria. |
848 */ | 848 */ |
849 void addStencilBuffer(GrStencilBuffer* sb); | 849 void addStencilBuffer(GrStencilBuffer* sb); |
850 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); | 850 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); |
851 | 851 |
852 GrPathRenderer* getPathRenderer( | 852 GrPathRenderer* getPathRenderer( |
853 const SkPath& path, | 853 const SkPath& path, |
854 const SkStrokeRec& stroke, | 854 const SkStrokeRec& stroke, |
855 const GrDrawTarget* target, | 855 const GrDrawTarget* target, |
856 bool allowSW, | 856 bool allowSW, |
857 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 857 GrPathRendererChain::DrawType drawType, |
| 858 SkPath::FillType fillType, |
858 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 859 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
859 | 860 |
860 | 861 |
861 #if GR_CACHE_STATS | 862 #if GR_CACHE_STATS |
862 void printCacheStats() const; | 863 void printCacheStats() const; |
863 #endif | 864 #endif |
864 | 865 |
865 private: | 866 private: |
866 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. | 867 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. |
867 enum BufferedDraw { | 868 enum BufferedDraw { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 } | 1045 } |
1045 | 1046 |
1046 GrTexture* texture() { return fTexture; } | 1047 GrTexture* texture() { return fTexture; } |
1047 | 1048 |
1048 private: | 1049 private: |
1049 GrContext* fContext; | 1050 GrContext* fContext; |
1050 GrTexture* fTexture; | 1051 GrTexture* fTexture; |
1051 }; | 1052 }; |
1052 | 1053 |
1053 #endif | 1054 #endif |
OLD | NEW |