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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 DrawingMgr fDrawingMgr; | 473 DrawingMgr fDrawingMgr; |
474 | 474 |
475 void initMockContext(); | 475 void initMockContext(); |
476 void initCommon(); | 476 void initCommon(); |
477 | 477 |
478 /** | 478 /** |
479 * Creates a new text rendering context that is optimal for the | 479 * Creates a new text rendering context that is optimal for the |
480 * render target and the context. Caller assumes the ownership | 480 * render target and the context. Caller assumes the ownership |
481 * of the returned object. The returned object must be deleted | 481 * of the returned object. The returned object must be deleted |
482 * before the context is destroyed. | 482 * before the context is destroyed. |
483 * TODO we can possibly bury this behind context, but we need to be able to
use the | 483 * TODO bury this behind context! |
484 * drawText_asPaths logic on SkGpuDevice | |
485 */ | 484 */ |
486 GrTextContext* createTextContext(GrRenderTarget*, | 485 GrTextContext* createTextContext(GrRenderTarget*, |
487 SkGpuDevice*, | |
488 const SkDeviceProperties&, | 486 const SkDeviceProperties&, |
489 bool enableDistanceFieldFonts); | 487 bool enableDistanceFieldFonts); |
490 | 488 |
491 | 489 |
492 /** | 490 /** |
493 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair | 491 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair |
494 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they | 492 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they |
495 * return NULL. | 493 * return NULL. |
496 */ | 494 */ |
497 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); | 495 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c
onst SkMatrix&); |
(...skipping 11 matching lines...) Expand all Loading... |
509 */ | 507 */ |
510 static void TextBlobCacheOverBudgetCB(void* data); | 508 static void TextBlobCacheOverBudgetCB(void* data); |
511 | 509 |
512 // TODO see note on createTextContext | 510 // TODO see note on createTextContext |
513 friend class SkGpuDevice; | 511 friend class SkGpuDevice; |
514 | 512 |
515 typedef SkRefCnt INHERITED; | 513 typedef SkRefCnt INHERITED; |
516 }; | 514 }; |
517 | 515 |
518 #endif | 516 #endif |
OLD | NEW |