| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 SkTDArray<CleanUpData> fCleanUpData; | 424 SkTDArray<CleanUpData> fCleanUpData; |
| 425 | 425 |
| 426 const uint32_t fUniqueID; | 426 const uint32_t fUniqueID; |
| 427 | 427 |
| 428 SkAutoTDelete<GrDrawingManager> fDrawingManager; | 428 SkAutoTDelete<GrDrawingManager> fDrawingManager; |
| 429 | 429 |
| 430 GrAuditTrail fAuditTrail; | 430 GrAuditTrail fAuditTrail; |
| 431 | 431 |
| 432 // TODO: have the GrClipStackClip use drawContexts and rm this friending | 432 // TODO: have the GrClipStackClip use drawContexts and rm this friending |
| 433 friend class GrClipStackClip; // for access to drawingManager | |
| 434 friend class GrDrawingManager; // for access to drawingManager for ProgramUn
itTest | |
| 435 friend class GrContextPriv; | 433 friend class GrContextPriv; |
| 436 | 434 |
| 437 GrDrawingManager* drawingManager() { return fDrawingManager; } | |
| 438 | |
| 439 GrContext(); // init must be called after the constructor. | 435 GrContext(); // init must be called after the constructor. |
| 440 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); | 436 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); |
| 441 | 437 |
| 442 void initMockContext(); | 438 void initMockContext(); |
| 443 void initCommon(const GrContextOptions&); | 439 void initCommon(const GrContextOptions&); |
| 444 | 440 |
| 445 /** | 441 /** |
| 446 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair | 442 * These functions create premul <-> unpremul effects if it is possible to g
enerate a pair |
| 447 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they | 443 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they |
| 448 * return NULL. They also can perform a swizzle as part of the draw. | 444 * return NULL. They also can perform a swizzle as part of the draw. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 SkAutoTUnref<const GrCaps> fCaps; | 483 SkAutoTUnref<const GrCaps> fCaps; |
| 488 uint32_t fContextUniqueID; | 484 uint32_t fContextUniqueID; |
| 489 | 485 |
| 490 friend class GrContext; | 486 friend class GrContext; |
| 491 friend class SkImage; | 487 friend class SkImage; |
| 492 | 488 |
| 493 typedef SkRefCnt INHERITED; | 489 typedef SkRefCnt INHERITED; |
| 494 }; | 490 }; |
| 495 | 491 |
| 496 #endif | 492 #endif |
| OLD | NEW |