From 1e42775df95a6d55634c18a048dbee4379e1f688 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Tue, 10 May 2016 10:23:50 -0700 Subject: [PATCH] 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 --- src/gpu/vk/GrVkCaps.h | 6 ------ 1 file changed, 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);