diff options
author | Brian Salomon <bsalomon@google.com> | 2017-05-15 13:48:50 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-15 18:19:49 +0000 |
commit | 0ec981ba493e4a1f8d7aad513f3ae9e1f2c14711 (patch) | |
tree | 1c7c6232021a46fccc2c2ab07aca3b9394f68637 /src/gpu/GrTexture.cpp | |
parent | 604b197c6b3262206d99e71030a8071bcc36083d (diff) |
Remove kCheckAllocation_GrSurfaceFlags.
This flags was only specified in one place (per backend). However, it was specified when no allocations occur.
Change-Id: Ic892d3064598519a07fb6773ba626fe022ef2f78
Reviewed-on: https://skia-review.googlesource.com/16904
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrTexture.cpp')
-rw-r--r-- | src/gpu/GrTexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp index ea0ed76517..6609fa61e3 100644 --- a/src/gpu/GrTexture.cpp +++ b/src/gpu/GrTexture.cpp @@ -95,7 +95,7 @@ void GrTexturePriv::ComputeScratchKey(const GrSurfaceDesc& desc, GrScratchKey* k static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); GrSurfaceOrigin origin = resolve_origin(desc); - uint32_t flags = desc.fFlags & ~kCheckAllocation_GrSurfaceFlag; + uint32_t flags = desc.fFlags; // make sure desc.fConfig fits in 5 bits SkASSERT(sk_float_log2(kLast_GrPixelConfig) <= 5); |