Index: src/gpu/GrTextureAccess.cpp |
diff --git a/src/gpu/GrTextureAccess.cpp b/src/gpu/GrTextureAccess.cpp |
index 0886db411ab792c358c16dda957d262d8fb25376..c4cde3dbafdcc23722a0d09af0cd0b60722292f7 100644 |
--- a/src/gpu/GrTextureAccess.cpp |
+++ b/src/gpu/GrTextureAccess.cpp |
@@ -46,7 +46,7 @@ void GrTextureAccess::reset(GrTexture* texture, |
SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); |
fParams = params; |
- fTexture.setResource(SkRef(texture), GrProgramResource::kRead_IOType); |
+ fTexture.set(SkRef(texture), GrProgramResource::kRead_IOType); |
this->setSwizzle(swizzle); |
} |
@@ -58,14 +58,14 @@ void GrTextureAccess::reset(GrTexture* texture, |
SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); |
fParams.reset(tileXAndY, filterMode); |
- fTexture.setResource(SkRef(texture), GrProgramResource::kRead_IOType); |
+ fTexture.set(SkRef(texture), GrProgramResource::kRead_IOType); |
this->setSwizzle(swizzle); |
} |
void GrTextureAccess::reset(GrTexture* texture, |
const GrTextureParams& params) { |
SkASSERT(texture); |
- fTexture.setResource(SkRef(texture), GrProgramResource::kRead_IOType); |
+ fTexture.set(SkRef(texture), GrProgramResource::kRead_IOType); |
fParams = params; |
memcpy(fSwizzle, "rgba", 5); |
fSwizzleMask = kRGBA_GrColorComponentFlags; |
@@ -75,7 +75,7 @@ void GrTextureAccess::reset(GrTexture* texture, |
GrTextureParams::FilterMode filterMode, |
SkShader::TileMode tileXAndY) { |
SkASSERT(texture); |
- fTexture.setResource(SkRef(texture), GrProgramResource::kRead_IOType); |
+ fTexture.set(SkRef(texture), GrProgramResource::kRead_IOType); |
fParams.reset(tileXAndY, filterMode); |
memcpy(fSwizzle, "rgba", 5); |
fSwizzleMask = kRGBA_GrColorComponentFlags; |