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, | 857 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
858 SkPath::FillType fillType, | |
859 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 858 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
860 | 859 |
861 | 860 |
862 #if GR_CACHE_STATS | 861 #if GR_CACHE_STATS |
863 void printCacheStats() const; | 862 void printCacheStats() const; |
864 #endif | 863 #endif |
865 | 864 |
866 private: | 865 private: |
867 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. | 866 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. |
868 enum BufferedDraw { | 867 enum BufferedDraw { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 } | 1044 } |
1046 | 1045 |
1047 GrTexture* texture() { return fTexture; } | 1046 GrTexture* texture() { return fTexture; } |
1048 | 1047 |
1049 private: | 1048 private: |
1050 GrContext* fContext; | 1049 GrContext* fContext; |
1051 GrTexture* fTexture; | 1050 GrTexture* fTexture; |
1052 }; | 1051 }; |
1053 | 1052 |
1054 #endif | 1053 #endif |
OLD | NEW |