Make isFormatTexturable take a GrColorType.
Change-Id: I02db9025c49d9ee2d805dd6b48916bcc4136f9a8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225729
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp
index dd868b6..c2df040 100644
--- a/src/gpu/vk/GrVkCaps.cpp
+++ b/src/gpu/vk/GrVkCaps.cpp
@@ -795,15 +795,15 @@
return format_is_srgb(*format.getVkFormat());
}
-bool GrVkCaps::isFormatTexturable(SkColorType, const GrBackendFormat& format) const {
+bool GrVkCaps::isFormatTexturable(GrColorType, const GrBackendFormat& format) const {
if (!format.getVkFormat()) {
return false;
}
- return this->isFormatTexturable(*format.getVkFormat());
+ return this->isVkFormatTexturable(*format.getVkFormat());
}
-bool GrVkCaps::isFormatTexturable(VkFormat format) const {
+bool GrVkCaps::isVkFormatTexturable(VkFormat format) const {
if (!GrVkFormatIsSupported(format)) {
return false;
}
@@ -817,7 +817,7 @@
if (!GrPixelConfigToVkFormat(config, &format)) {
return false;
}
- return this->isFormatTexturable(format);
+ return this->isVkFormatTexturable(format);
}
bool GrVkCaps::isFormatRenderable(VkFormat format) const {