Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1022)

Side by Side Diff: include/gpu/GrContext.h

Issue 1565303003: Revert of Make a single GrSingleOwner in GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/gpu/GrDrawContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrDrawContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698