aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-05-10 10:23:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-10 10:23:50 -0700
commit1e42775df95a6d55634c18a048dbee4379e1f688 (patch)
tree2b9911e7d9927f7fbd573859d161fa8cf806207f
parentd0e36a92de398843cafc3aebef39c863b29c23de (diff)
Remove config range asserts that cause tautological-constant-out-of-range-compare warnings
-rw-r--r--src/gpu/vk/GrVkCaps.h6
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);