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 |