Index: src/gpu/GrResourceCache2.h |
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h |
index d48ca0bf6d46bc7290a84f0819ebd681567e2d01..e10b45a2cc137768aae861231d67cd72f4af3c6f 100644 |
--- a/src/gpu/GrResourceCache2.h |
+++ b/src/gpu/GrResourceCache2.h |
@@ -32,8 +32,13 @@ public: |
void releaseAll(); |
- GrGpuResource* findAndRefScratchResource(const GrResourceKey& scratchKey, |
- bool calledDuringFlush); |
+ enum { |
+ /** Preferentially returns scratch resources with no pending IO. */ |
+ kPreferNoPendingIO_ScratchFlag = 0x1, |
+ /** Will not return any resources that match but have pending IO. */ |
+ kRequireNoPendingIO_ScratchFlag = 0x2, |
+ }; |
+ GrGpuResource* findAndRefScratchResource(const GrResourceKey& scratchKey, uint32_t flags = 0); |
private: |
#ifdef SK_DEBUG |