aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTarget.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-28 14:33:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-28 14:33:06 -0700
commitf2703d83da3ab2ae18b45231fd4f11e16cce3184 (patch)
tree296ec36a08899623dc5808190600f14e08c24107 /src/gpu/GrDrawTarget.cpp
parent0ec28af1a7259ef0deec44bd3cba74aafc3c2ad1 (diff)
rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r--src/gpu/GrDrawTarget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index e830145cfb..0d3a2390d5 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -450,7 +450,7 @@ bool GrDrawTarget::setupDstReadIfNecessary(GrDeviceCoordTexture* dstCopy, const
// MSAA consideration: When there is support for reading MSAA samples in the shader we could
// have per-sample dst values by making the copy multisampled.
- GrTextureDesc desc;
+ GrSurfaceDesc desc;
this->initCopySurfaceDstDesc(rt, &desc);
desc.fWidth = copyRect.width();
desc.fHeight = copyRect.height();
@@ -995,10 +995,10 @@ bool GrDrawTarget::onCopySurface(GrSurface* dst,
return true;
}
-void GrDrawTarget::initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* desc) {
+void GrDrawTarget::initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) {
// Make the dst of the copy be a render target because the default copySurface draws to the dst.
desc->fOrigin = kDefault_GrSurfaceOrigin;
- desc->fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit;
+ desc->fFlags = kRenderTarget_GrSurfaceFlag | kNoStencil_GrSurfaceFlag;
desc->fConfig = src->config();
}