| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 DrawingMgr fDrawingMgr; | 435 DrawingMgr fDrawingMgr; |
| 436 | 436 |
| 437 void initMockContext(); | 437 void initMockContext(); |
| 438 void initCommon(); | 438 void initCommon(); |
| 439 | 439 |
| 440 /** | 440 /** |
| 441 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair | 441 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair |
| 442 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they | 442 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they |
| 443 * return NULL. | 443 * return NULL. |
| 444 */ | 444 */ |
| 445 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); | 445 const GrFragmentProcessor* createPMToUPMEffect(GrProcessorDataManager*, GrTe
xture*, |
| 446 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); | 446 bool swapRAndB, const SkMatri
x&); |
| 447 const GrFragmentProcessor* createUPMToPMEffect(GrProcessorDataManager*, GrTe
xture*, |
| 448 bool swapRAndB, const SkMatri
x&); |
| 447 | 449 |
| 448 /** | 450 /** |
| 449 * This callback allows the resource cache to callback into the GrContext | 451 * This callback allows the resource cache to callback into the GrContext |
| 450 * when the cache is still over budget after a purge. | 452 * when the cache is still over budget after a purge. |
| 451 */ | 453 */ |
| 452 static void OverBudgetCB(void* data); | 454 static void OverBudgetCB(void* data); |
| 453 | 455 |
| 454 /** | 456 /** |
| 455 * A callback similar to the above for use by the TextBlobCache | 457 * A callback similar to the above for use by the TextBlobCache |
| 456 * TODO move textblob draw calls below context so we can use the call above. | 458 * TODO move textblob draw calls below context so we can use the call above. |
| 457 */ | 459 */ |
| 458 static void TextBlobCacheOverBudgetCB(void* data); | 460 static void TextBlobCacheOverBudgetCB(void* data); |
| 459 | 461 |
| 460 typedef SkRefCnt INHERITED; | 462 typedef SkRefCnt INHERITED; |
| 461 }; | 463 }; |
| 462 | 464 |
| 463 #endif | 465 #endif |
| OLD | NEW |