remove premature discard optimization
BUG=skia:
Review URL: https://codereview.chromium.org/1212613005
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index 34532f7..71bed3a 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -33,13 +33,11 @@
rt->prepareForExternalRead(); // todo: rename to prepareForExternalAccess()
break;
case kFlushWrite_TextureHandleAccess:
+ case kDiscardWrite_TextureHandleAccess:
+ // for now we don't special-case on Discard, but we may in the future.
this->notifyContentWillChange(kRetain_ContentChangeMode);
rt->flushWrites();
break;
- case kDiscardWrite_TextureHandleAccess:
- this->notifyContentWillChange(kDiscard_ContentChangeMode);
- rt->discard();
- break;
}
return rt->asTexture()->getTextureHandle();
}