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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 }; | 392 }; |
393 | 393 |
394 SkTDArray<CleanUpData> fCleanUpData; | 394 SkTDArray<CleanUpData> fCleanUpData; |
395 | 395 |
396 const uint32_t fUniqueID; | 396 const uint32_t fUniqueID; |
397 | 397 |
398 SkAutoTDelete<GrDrawingManager> fDrawingManager; | 398 SkAutoTDelete<GrDrawingManager> fDrawingManager; |
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 GrDrawingManager* drawingManager() { return fDrawingManager; } | 403 GrDrawingManager* drawingManager() { return fDrawingManager; } |
403 | 404 |
404 GrContext(); // init must be called after the constructor. | 405 GrContext(); // init must be called after the constructor. |
405 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); | 406 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); |
406 | 407 |
407 void initMockContext(); | 408 void initMockContext(); |
408 void initCommon(const GrContextOptions& options); | 409 void initCommon(const GrContextOptions& options); |
409 | 410 |
410 /** | 411 /** |
411 * 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 |
(...skipping 21 matching lines...) Expand all Loading... |
433 /** | 434 /** |
434 * A callback similar to the above for use by the TextBlobCache | 435 * A callback similar to the above for use by the TextBlobCache |
435 * 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. |
436 */ | 437 */ |
437 static void TextBlobCacheOverBudgetCB(void* data); | 438 static void TextBlobCacheOverBudgetCB(void* data); |
438 | 439 |
439 typedef SkRefCnt INHERITED; | 440 typedef SkRefCnt INHERITED; |
440 }; | 441 }; |
441 | 442 |
442 #endif | 443 #endif |
OLD | NEW |