diff options
author | 2014-12-30 12:50:52 -0800 | |
---|---|---|
committer | 2014-12-30 12:50:52 -0800 | |
commit | 7775c85611c734a2af709b3a9c127939a4296c48 (patch) | |
tree | 5a9b50af9aec7b1b4a03d3162322c51a6eb6bfcc /include/gpu/GrGpuResource.h | |
parent | be9588ade8e3dac0adc8e038c46de006ca21af48 (diff) |
Add a simpler key type for scratch resource keys.
BUG=skia:2889
Review URL: https://codereview.chromium.org/815833004
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r-- | include/gpu/GrGpuResource.h | 7 |
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 |