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
This commit is contained in:
parent
d0e36a92de
commit
1e42775df9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user