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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 SkTDArray<CleanUpData> fCleanUpData; | 406 SkTDArray<CleanUpData> fCleanUpData; |
407 | 407 |
408 const uint32_t fUniqueID; | 408 const uint32_t fUniqueID; |
409 | 409 |
410 SkAutoTDelete<GrDrawingManager> fDrawingManager; | 410 SkAutoTDelete<GrDrawingManager> fDrawingManager; |
411 | 411 |
412 GrContext(); // init must be called after the constructor. | 412 GrContext(); // init must be called after the constructor. |
413 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); | 413 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); |
414 | 414 |
415 void initMockContext(); | 415 void initMockContext(); |
416 void initCommon(); | 416 void initCommon(const GrContextOptions& options); |
417 | 417 |
418 /** | 418 /** |
419 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair | 419 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair |
420 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they | 420 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they |
421 * return NULL. | 421 * return NULL. |
422 */ | 422 */ |
423 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, | 423 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, |
424 const SkMatrix&) const; | 424 const SkMatrix&) const; |
425 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, | 425 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, |
426 const SkMatrix&) const; | 426 const SkMatrix&) const; |
(...skipping 14 matching lines...) Expand all Loading... |
441 /** | 441 /** |
442 * A callback similar to the above for use by the TextBlobCache | 442 * A callback similar to the above for use by the TextBlobCache |
443 * TODO move textblob draw calls below context so we can use the call above. | 443 * TODO move textblob draw calls below context so we can use the call above. |
444 */ | 444 */ |
445 static void TextBlobCacheOverBudgetCB(void* data); | 445 static void TextBlobCacheOverBudgetCB(void* data); |
446 | 446 |
447 typedef SkRefCnt INHERITED; | 447 typedef SkRefCnt INHERITED; |
448 }; | 448 }; |
449 | 449 |
450 #endif | 450 #endif |
OLD | NEW |