aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrResourceCache2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrResourceCache2.h')
-rw-r--r--src/gpu/GrResourceCache2.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h
index d48ca0bf6d..e10b45a2cc 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