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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 }; | 434 }; |
435 | 435 |
436 SkTDArray<CleanUpData> fCleanUpData; | 436 SkTDArray<CleanUpData> fCleanUpData; |
437 | 437 |
438 const uint32_t fUniqueID; | 438 const uint32_t fUniqueID; |
439 | 439 |
440 SkAutoTDelete<GrDrawingManager> fDrawingManager; | 440 SkAutoTDelete<GrDrawingManager> fDrawingManager; |
441 | 441 |
442 GrAuditTrail fAuditTrail; | 442 GrAuditTrail fAuditTrail; |
443 | 443 |
444 // TODO: have the CMM use drawContexts and rm this friending | 444 // TODO: have the ClipStackClip use drawContexts and rm this friending |
445 friend class GrClipMaskManager; // the CMM is friended just so it can call '
drawingManager' | 445 friend class GrClipStackClip; // this is friended just so it can call 'drawi
ngManager' |
446 friend class GrDrawingManager; // for access to drawingManager for ProgramU
nitTest | 446 friend class GrDrawingManager; // for access to drawingManager for ProgramU
nitTest |
447 GrDrawingManager* drawingManager() { return fDrawingManager; } | 447 GrDrawingManager* drawingManager() { return fDrawingManager; } |
448 | 448 |
449 GrContext(); // init must be called after the constructor. | 449 GrContext(); // init must be called after the constructor. |
450 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); | 450 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); |
451 | 451 |
452 void initMockContext(); | 452 void initMockContext(); |
453 void initCommon(const GrContextOptions&); | 453 void initCommon(const GrContextOptions&); |
454 | 454 |
455 /** | 455 /** |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 SkAutoTUnref<const GrCaps> fCaps; | 497 SkAutoTUnref<const GrCaps> fCaps; |
498 uint32_t fContextUniqueID; | 498 uint32_t fContextUniqueID; |
499 | 499 |
500 friend class GrContext; | 500 friend class GrContext; |
501 friend class SkImage; | 501 friend class SkImage; |
502 | 502 |
503 typedef SkRefCnt INHERITED; | 503 typedef SkRefCnt INHERITED; |
504 }; | 504 }; |
505 | 505 |
506 #endif | 506 #endif |
OLD | NEW |