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

Unified Diff: include/gpu/GrContext.h

Issue 1555953004: Create debug only SkSingleOwner (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add sentinels to GrContext 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/private/SkMutex.h » ('j') | src/gpu/GrContext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index fdc6167b14f346358966e455292c2ffe37cc89e2..81ae45dba1cad49b503cfbfe5346856961b74680 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -390,6 +390,9 @@ private:
SkMutex fReadPixelsMutex;
SkMutex fTestPMConversionsMutex;
+ // In debug builds we take a debug mutex to guard against improper thread handling
+ SkDEBUGCODE(mutable SkRecursiveMutex fSafetyMutex;)
+
struct CleanUpData {
PFCleanUpFunc fFunc;
void* fInfo;
« no previous file with comments | « no previous file | include/private/SkMutex.h » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698