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

Unified Diff: include/gpu/GrContext.h

Issue 1555953004: Create debug only SkSingleOwner (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « gyp/gpu.gypi ('k') | include/gpu/GrDrawContext.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..39477e0db81fbdc0875aec82f4220664336be11f 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -15,9 +15,10 @@
#include "GrRenderTarget.h"
#include "GrTextureProvider.h"
#include "SkMatrix.h"
-#include "../private/SkMutex.h"
#include "SkPathEffect.h"
#include "SkTypes.h"
+#include "../private/GrSingleOwner.h"
+#include "../private/SkMutex.h"
struct GrBatchAtlasConfig;
class GrBatchFontCache;
@@ -390,6 +391,9 @@ private:
SkMutex fReadPixelsMutex;
SkMutex fTestPMConversionsMutex;
+ // In debug builds we guard against improper thread handling
+ SkDEBUGCODE(mutable GrSingleOwner fSingleOwner;)
+
struct CleanUpData {
PFCleanUpFunc fFunc;
void* fInfo;
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrDrawContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698