Index: src/gpu/GrResourceCache2.h |
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h |
index d48ca0bf6d46bc7290a84f0819ebd681567e2d01..0e178f19e18d7cfa0ce48f7246489ebdd3d41f84 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, |
robertphillips
2014/10/15 20:06:13
has -> have ?
bsalomon
2014/10/16 01:51:14
Done.
|
+ /** Will not return any resources that match but has pending IO. */ |
+ kRequireNoPendingIO_ScratchFlag = 0x2, |
+ }; |
+ GrGpuResource* findAndRefScratchResource(const GrResourceKey& scratchKey, uint32_t flags = 0); |
private: |
#ifdef SK_DEBUG |