rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags
Review URL: https://codereview.chromium.org/682223002
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h
index a2da946..d6c2dc2 100644
--- a/src/gpu/GrTexturePriv.h
+++ b/src/gpu/GrTexturePriv.h
@@ -17,15 +17,15 @@
implemented privately in GrTexture with a inline public method here). */
class GrTexturePriv {
public:
- void setFlag(GrTextureFlags flags) {
+ void setFlag(GrSurfaceFlags flags) {
fTexture->fDesc.fFlags = fTexture->fDesc.fFlags | flags;
}
- void resetFlag(GrTextureFlags flags) {
+ void resetFlag(GrSurfaceFlags flags) {
fTexture->fDesc.fFlags = fTexture->fDesc.fFlags & ~flags;
}
- bool isSetFlag(GrTextureFlags flags) const {
+ bool isSetFlag(GrSurfaceFlags flags) const {
return 0 != (fTexture->fDesc.fFlags & flags);
}
@@ -46,9 +46,9 @@
static GrResourceKey ComputeKey(const GrGpu* gpu,
const GrTextureParams* params,
- const GrTextureDesc& desc,
+ const GrSurfaceDesc& desc,
const GrCacheID& cacheID);
- static GrResourceKey ComputeScratchKey(const GrTextureDesc& desc);
+ static GrResourceKey ComputeScratchKey(const GrSurfaceDesc& desc);
static bool NeedsResizing(const GrResourceKey& key);
static bool NeedsBilerp(const GrResourceKey& key);