| 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 * called to check the cache for a SB that matches an RT's criteria. | 833 * called to check the cache for a SB that matches an RT's criteria. |
| 834 */ | 834 */ |
| 835 void addStencilBuffer(GrStencilBuffer* sb); | 835 void addStencilBuffer(GrStencilBuffer* sb); |
| 836 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); | 836 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); |
| 837 | 837 |
| 838 GrPathRenderer* getPathRenderer( | 838 GrPathRenderer* getPathRenderer( |
| 839 const SkPath& path, | 839 const SkPath& path, |
| 840 const SkStrokeRec& stroke, | 840 const SkStrokeRec& stroke, |
| 841 const GrDrawTarget* target, | 841 const GrDrawTarget* target, |
| 842 bool allowSW, | 842 bool allowSW, |
| 843 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 843 GrPathRendererChain::DrawType drawType, |
| 844 SkPath::FillType fillType, |
| 844 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 845 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
| 845 | 846 |
| 846 | 847 |
| 847 #if GR_CACHE_STATS | 848 #if GR_CACHE_STATS |
| 848 void printCacheStats() const; | 849 void printCacheStats() const; |
| 849 #endif | 850 #endif |
| 850 | 851 |
| 851 private: | 852 private: |
| 852 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. | 853 // Used to indicate whether a draw should be performed immediately or queued
in fDrawBuffer. |
| 853 enum BufferedDraw { | 854 enum BufferedDraw { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 } | 1017 } |
| 1017 | 1018 |
| 1018 GrTexture* texture() { return fTexture; } | 1019 GrTexture* texture() { return fTexture; } |
| 1019 | 1020 |
| 1020 private: | 1021 private: |
| 1021 GrContext* fContext; | 1022 GrContext* fContext; |
| 1022 GrTexture* fTexture; | 1023 GrTexture* fTexture; |
| 1023 }; | 1024 }; |
| 1024 | 1025 |
| 1025 #endif | 1026 #endif |
| OLD | NEW |