Remove the option of disabling explicit resource allocation
We're burning our boats behind us. Succeed or die trying!
Change-Id: I6a9f71b758a6ae7b090c5221ab12a5ab4d166b47
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209647
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h
index 1a9924b..2d4ef92 100644
--- a/src/gpu/GrResourceProvider.h
+++ b/src/gpu/GrResourceProvider.h
@@ -53,8 +53,7 @@
kNoPendingIO = 0x1,
};
- GrResourceProvider(GrGpu*, GrResourceCache*, GrSingleOwner*,
- bool explicitlyAllocateGPUResources);
+ GrResourceProvider(GrGpu*, GrResourceCache*, GrSingleOwner*);
/**
* Finds a resource in the cache, based on the specified key. Prior to calling this, the caller
@@ -252,10 +251,6 @@
inline GrResourceProviderPriv priv();
inline const GrResourceProviderPriv priv() const;
- bool explicitlyAllocateGPUResources() const { return fExplicitlyAllocateGPUResources; }
-
- bool testingOnly_setExplicitlyAllocateGPUResources(bool newValue);
-
private:
sk_sp<GrGpuResource> findResourceByUniqueKey(const GrUniqueKey&);
@@ -295,7 +290,6 @@
GrGpu* fGpu;
sk_sp<const GrCaps> fCaps;
sk_sp<const GrGpuBuffer> fQuadIndexBuffer;
- bool fExplicitlyAllocateGPUResources;
// In debug builds we guard against improper thread handling
SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)