diff options
author | bsalomon <bsalomon@google.com> | 2016-05-10 10:23:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-10 10:23:50 -0700 |
commit | 1e42775df95a6d55634c18a048dbee4379e1f688 (patch) | |
tree | 2b9911e7d9927f7fbd573859d161fa8cf806207f | |
parent | d0e36a92de398843cafc3aebef39c863b29c23de (diff) |
Remove config range asserts that cause tautological-constant-out-of-range-compare warnings
on clang
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1964053002
Review-Url: https://codereview.chromium.org/1964053002
-rw-r--r-- | src/gpu/vk/GrVkCaps.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h index 0bd3801cbd..576972110d 100644 --- a/src/gpu/vk/GrVkCaps.h +++ b/src/gpu/vk/GrVkCaps.h @@ -30,35 +30,29 @@ public: VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionFlags); bool isConfigTexturable(GrPixelConfig config) const override { - SkASSERT(kGrPixelConfigCnt > config); return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fOptimalFlags); } bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override { - SkASSERT(kGrPixelConfigCnt > config); return SkToBool(ConfigInfo::kRenderable_Flag & fConfigTable[config].fOptimalFlags); } bool isConfigTexurableLinearly(GrPixelConfig config) const { - SkASSERT(kGrPixelConfigCnt > config); return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fLinearFlags); } bool isConfigRenderableLinearly(GrPixelConfig config, bool withMSAA) const { - SkASSERT(kGrPixelConfigCnt > config); return !withMSAA && SkToBool(ConfigInfo::kRenderable_Flag & fConfigTable[config].fLinearFlags); } bool configCanBeDstofBlit(GrPixelConfig config, bool linearTiled) const { - SkASSERT(kGrPixelConfigCnt > config); const uint16_t& flags = linearTiled ? fConfigTable[config].fLinearFlags : fConfigTable[config].fOptimalFlags; return SkToBool(ConfigInfo::kBlitDst_Flag & flags); } bool configCanBeSrcofBlit(GrPixelConfig config, bool linearTiled) const { - SkASSERT(kGrPixelConfigCnt > config); const uint16_t& flags = linearTiled ? fConfigTable[config].fLinearFlags : fConfigTable[config].fOptimalFlags; return SkToBool(ConfigInfo::kBlitSrc_Flag & flags); |