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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 */ | 780 */ |
781 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); | 781 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); |
782 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); | 782 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); |
783 | 783 |
784 /** | 784 /** |
785 * This callback allows the resource cache to callback into the GrContext | 785 * This callback allows the resource cache to callback into the GrContext |
786 * when the cache is still over budget after a purge. | 786 * when the cache is still over budget after a purge. |
787 */ | 787 */ |
788 static void OverBudgetCB(void* data); | 788 static void OverBudgetCB(void* data); |
789 | 789 |
| 790 /** |
| 791 * A callback similar to the above for use by the TextBlobCache |
| 792 * TODO move textblob draw calls below context so we can use the call above. |
| 793 */ |
| 794 static void TextBlobCacheOverBudgetCB(void* data); |
| 795 |
790 // TODO see note on createTextContext | 796 // TODO see note on createTextContext |
791 friend class SkGpuDevice; | 797 friend class SkGpuDevice; |
792 | 798 |
793 typedef SkRefCnt INHERITED; | 799 typedef SkRefCnt INHERITED; |
794 }; | 800 }; |
795 | 801 |
796 #endif | 802 #endif |
OLD | NEW |