Cleanup after removal of IORefs from GrSurface
The removal of IORefs from GrSurface makes a lot of other cruft obsolete.
Change-Id: I0e02d680a17dc4f4ec705cb6ee4c294738271e28
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/239919
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index 1b800bf..efbdb49 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -116,19 +116,10 @@
*/
void releaseAll();
- enum class ScratchFlags {
- kNone = 0,
- /** Preferentially returns scratch resources with no pending IO. */
- kPreferNoPendingIO = 0x1,
- /** Will not return any resources that match but have pending IO. */
- kRequireNoPendingIO = 0x2,
- };
-
/**
* Find a resource that matches a scratch key.
*/
- GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, size_t resourceSize,
- ScratchFlags);
+ GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey);
#ifdef SK_DEBUG
// This is not particularly fast and only used for validation, so debug only.
@@ -377,8 +368,6 @@
bool fPreferVRAMUseOverFlushes = false;
};
-GR_MAKE_BITFIELD_CLASS_OPS(GrResourceCache::ScratchFlags);
-
class GrResourceCache::ResourceAccess {
private:
ResourceAccess(GrResourceCache* cache) : fCache(cache) { }