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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 // the PM conversions test. To handle this we do the PM conversions test out
side | 385 // the PM conversions test. To handle this we do the PM conversions test out
side |
386 // of fReadPixelsMutex and use a separate mutex to guard it. When it re-ente
rs | 386 // of fReadPixelsMutex and use a separate mutex to guard it. When it re-ente
rs |
387 // readSurfacePixels it will grab fReadPixelsMutex and release it before the
outer | 387 // readSurfacePixels it will grab fReadPixelsMutex and release it before the
outer |
388 // readSurfacePixels proceeds to grab it. | 388 // readSurfacePixels proceeds to grab it. |
389 // TODO: Stop pretending to make GrContext thread-safe for sw rasterization
and provide | 389 // TODO: Stop pretending to make GrContext thread-safe for sw rasterization
and provide |
390 // a mechanism to make a SkPicture safe for multithreaded sw rasterization. | 390 // a mechanism to make a SkPicture safe for multithreaded sw rasterization. |
391 SkMutex fReadPixelsMutex; | 391 SkMutex fReadPixelsMutex; |
392 SkMutex fTestPMConversionsMutex; | 392 SkMutex fTestPMConversionsMutex; |
393 | 393 |
394 // In debug builds we guard against improper thread handling | 394 // In debug builds we guard against improper thread handling |
395 // This guard is passed to the GrDrawingManager and, from there to all the | 395 SkDEBUGCODE(mutable GrSingleOwner fSingleOwner;) |
396 // GrDrawContexts. It is also passed to the GrTextureProvider and SkGpuDevi
ce. | |
397 mutable GrSingleOwner fSingleOwner; | |
398 | 396 |
399 struct CleanUpData { | 397 struct CleanUpData { |
400 PFCleanUpFunc fFunc; | 398 PFCleanUpFunc fFunc; |
401 void* fInfo; | 399 void* fInfo; |
402 }; | 400 }; |
403 | 401 |
404 SkTDArray<CleanUpData> fCleanUpData; | 402 SkTDArray<CleanUpData> fCleanUpData; |
405 | 403 |
406 const uint32_t fUniqueID; | 404 const uint32_t fUniqueID; |
407 | 405 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 /** | 442 /** |
445 * A callback similar to the above for use by the TextBlobCache | 443 * A callback similar to the above for use by the TextBlobCache |
446 * TODO move textblob draw calls below context so we can use the call above. | 444 * TODO move textblob draw calls below context so we can use the call above. |
447 */ | 445 */ |
448 static void TextBlobCacheOverBudgetCB(void* data); | 446 static void TextBlobCacheOverBudgetCB(void* data); |
449 | 447 |
450 typedef SkRefCnt INHERITED; | 448 typedef SkRefCnt INHERITED; |
451 }; | 449 }; |
452 | 450 |
453 #endif | 451 #endif |
OLD | NEW |