aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResource.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-30 12:50:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-30 12:50:52 -0800
commit7775c85611c734a2af709b3a9c127939a4296c48 (patch)
tree5a9b50af9aec7b1b4a03d3162322c51a6eb6bfcc /include/gpu/GrGpuResource.h
parentbe9588ade8e3dac0adc8e038c46de006ca21af48 (diff)
Add a simpler key type for scratch resource keys.
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r--include/gpu/GrGpuResource.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 338e161ac3..8c888410bf 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -228,7 +228,7 @@ protected:
* Optionally called by the GrGpuResource subclass if the resource can be used as scratch.
* By default resources are not usable as scratch. This should only be called once.
**/
- void setScratchKey(const GrResourceKey& scratchKey);
+ void setScratchKey(const GrScratchKey& scratchKey);
private:
/**
@@ -274,9 +274,8 @@ private:
kContentKeySet_Flag = 0x4,
};
- // TODO(bsalomon): Remove GrResourceKey and use different simpler types for content and scratch
- // keys.
- GrResourceKey fScratchKey;
+ GrScratchKey fScratchKey;
+ // TODO(bsalomon): Remove GrResourceKey and use different simpler type for content keys.
GrResourceKey fContentKey;
// This is not ref'ed but abandon() or release() will be called before the GrGpu object