aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-06-16 08:07:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-16 08:07:16 -0700
commit7a61793d9603f07a9039b5abf814eb25842e211b (patch)
tree21dad12f27ace73ab02006a12c80fa3d7d59077e /src/image
parent1e7951ffdb28e2991930cc47b4c99b2c17c19196 (diff)
Don't clear in SkSurface::NewWrappedRenderTarget
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkSurface_Gpu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index ff18a04754..20fcbf333e 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -113,8 +113,7 @@ SkSurface* SkSurface::NewWrappedRenderTarget(GrContext* context, GrBackendTextur
if (!surface) {
return NULL;
}
- SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(surface->asRenderTarget(), props,
- SkGpuDevice::kNeedClear_Flag));
+ SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(surface->asRenderTarget(), props));
if (!device) {
return NULL;
}