Fix ~,! typo when clearing kRenderTarget flag

TBR=brucedawson@chromium.org,robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1727413004

Review URL: https://codereview.chromium.org/1727413004 .
This commit is contained in:
Brian Salomon 2016-02-24 21:55:47 -05:00
parent da884c49e2
commit dcceacf574

View File

@ -86,7 +86,7 @@ SkImage* SkSurface_Gpu::onNewImageSnapshot(Budgeted budgeted, ForceCopyMode forc
if (kYes_ForceCopyMode == forceCopyMode || !tex) {
GrSurfaceDesc desc = fDevice->accessRenderTarget()->desc();
GrContext* ctx = fDevice->context();
desc.fFlags = desc.fFlags & !kRenderTarget_GrSurfaceFlag;
desc.fFlags = desc.fFlags & ~kRenderTarget_GrSurfaceFlag;
copy.reset(ctx->textureProvider()->createTexture(desc, kYes_Budgeted == budgeted));
if (!copy) {
return nullptr;