aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureAccess.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-09-16 13:54:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-16 13:54:53 -0700
commitc49233410e7278f0b95b8b0d28a80105a2930a88 (patch)
tree4d452efbda22977c1d752cab94a7ec262cedc4c9 /src/gpu/GrTextureAccess.cpp
parentd664c21a38de98d8db210c46f7a8c4187f1534da (diff)
Make templated GrProgramTResource subclass of GrProgramResource
R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/563963004
Diffstat (limited to 'src/gpu/GrTextureAccess.cpp')
-rw-r--r--src/gpu/GrTextureAccess.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrTextureAccess.cpp b/src/gpu/GrTextureAccess.cpp
index 0886db411a..c4cde3dbaf 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;