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

Unified Diff: include/gpu/GrTextureProvider.h

Issue 1567983002: Add guards to GrTextureProvider (Closed) Base URL: https://skia.googlesource.com/skia.git@gpudeviceguards
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTextureProvider.h
diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h
index 5635583d80fef393a746ae75f32edc0d2a3c8025..b46acff4b1906f3c789bf9a23e5ba6a1b8cd1236 100644
--- a/include/gpu/GrTextureProvider.h
+++ b/include/gpu/GrTextureProvider.h
@@ -11,6 +11,8 @@
#include "GrTexture.h"
#include "SkImageFilter.h"
+class GrSingleOwner;
+
class SK_API GrTextureProvider {
public:
///////////////////////////////////////////////////////////////////////////
@@ -134,7 +136,10 @@ public:
GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc& desc);
protected:
- GrTextureProvider(GrGpu* gpu, GrResourceCache* cache) : fCache(cache), fGpu(gpu) {}
+ GrTextureProvider(GrGpu* gpu, GrResourceCache* cache, GrSingleOwner* singleOwner)
+ : fCache(cache)
+ , fGpu(gpu)
+ , fSingleOwner(singleOwner) {}
/**
* Assigns a unique key to a resource. If the key is associated with another resource that
@@ -186,6 +191,7 @@ protected:
private:
GrResourceCache* fCache;
GrGpu* fGpu;
robertphillips 2016/01/07 19:07:02 // Guard for single-threaded access. Owned by GrCo
+ GrSingleOwner* fSingleOwner;
};
#endif
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698