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

Unified Diff: include/gpu/GrContext.h

Issue 1555953004: Create debug only SkSingleOwner (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: create SkSingleOwner 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') | no next file with comments »
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..61dab7646fa12ad5f09d7d1f201ea7b88a8a99d9 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
mtklein 2016/01/06 15:08:27 I'd put it right here.
joshualitt 2016/01/06 15:09:47 This will end up being used by a number of Gr* cla
+ SkDEBUGCODE(mutable SkSingleOwner fSingleOwner;)
+
struct CleanUpData {
PFCleanUpFunc fFunc;
void* fInfo;
« no previous file with comments | « no previous file | include/private/SkMutex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698