commit | dcceacf57429131b7b4645fadfdb25937bc8ebf5 | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Wed Feb 24 21:55:47 2016 -0500 |
committer | Brian Salomon <bsalomon@google.com> | Wed Feb 24 21:55:47 2016 -0500 |
tree | 608b2e6e7fb9822a74dd90d46c1e63eba4c3200b | |
parent | da884c49e29ab99fcc81e906db1dbce8f34ae008 [diff] |
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 .
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp index 5eca56e..d154463 100644 --- a/src/image/SkSurface_Gpu.cpp +++ b/src/image/SkSurface_Gpu.cpp
@@ -86,7 +86,7 @@ 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;