aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r--src/gpu/GrGpu.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index 40988c3922..b1560f9a2d 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -188,14 +188,6 @@ GrTexture* GrGpu::createTexture(const GrSurfaceDesc& origDesc, SkBudgeted budget
fStats.incTextureUploads();
}
}
- // This is a current work around to get discards into newly created textures. Once we are in
- // MDB world, we should remove this code a rely on the draw target having specified load
- // operations.
- if (isRT && texels.empty()) {
- GrRenderTarget* rt = tex->asRenderTarget();
- SkASSERT(rt);
- rt->discard();
- }
}
return tex;
}