Index: src/gpu/vk/GrVkCaps.h |
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h |
index 0bd3801cbdccaba70ec6af216fefd8c73af69649..576972110d50eda4ff403432193c3aa909e55bf3 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); |