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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 // TODO: have the CMM use drawContexts and rm this friending | 400 // TODO: have the CMM use drawContexts and rm this friending |
401 friend class GrClipMaskManager; // the CMM is friended just so it can call '
drawingManager' | 401 friend class GrClipMaskManager; // the CMM is friended just so it can call '
drawingManager' |
402 friend class GrDrawingManager; // for access to drawingManager for ProgramU
nitTest | 402 friend class GrDrawingManager; // for access to drawingManager for ProgramU
nitTest |
403 GrDrawingManager* drawingManager() { return fDrawingManager; } | 403 GrDrawingManager* drawingManager() { return fDrawingManager; } |
404 | 404 |
405 GrContext(); // init must be called after the constructor. | 405 GrContext(); // init must be called after the constructor. |
406 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); | 406 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); |
407 | 407 |
408 void initMockContext(); | 408 void initMockContext(); |
409 void initCommon(); | 409 void initCommon(const GrContextOptions&); |
410 | 410 |
411 /** | 411 /** |
412 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair | 412 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair |
413 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they | 413 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they |
414 * return NULL. | 414 * return NULL. |
415 */ | 415 */ |
416 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, | 416 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, |
417 const SkMatrix&) const; | 417 const SkMatrix&) const; |
418 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, | 418 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, |
419 const SkMatrix&) const; | 419 const SkMatrix&) const; |
(...skipping 14 matching lines...) Expand all Loading... |
434 /** | 434 /** |
435 * A callback similar to the above for use by the TextBlobCache | 435 * A callback similar to the above for use by the TextBlobCache |
436 * TODO move textblob draw calls below context so we can use the call above. | 436 * TODO move textblob draw calls below context so we can use the call above. |
437 */ | 437 */ |
438 static void TextBlobCacheOverBudgetCB(void* data); | 438 static void TextBlobCacheOverBudgetCB(void* data); |
439 | 439 |
440 typedef SkRefCnt INHERITED; | 440 typedef SkRefCnt INHERITED; |
441 }; | 441 }; |
442 | 442 |
443 #endif | 443 #endif |
OLD | NEW |