Index: cc/resources/resource_format.h |
diff --git a/cc/resources/resource_format.h b/cc/resources/resource_format.h |
index 5266f31fe72197fdebce541d1eb2659729d6153a..1042751a09af044c09161554e08a8cc2b4ef639e 100644 |
--- a/cc/resources/resource_format.h |
+++ b/cc/resources/resource_format.h |
@@ -33,6 +33,10 @@ enum ResourceFormat { |
SkColorType ResourceFormatToSkColorType(ResourceFormat format); |
+// Like ResourceFormatToSkColorType, but returns kN32_SkColorType if no exact |
+// match exists. |
+SkColorType ResourceFormatToClosestSkColorType(ResourceFormat format); |
+ |
CC_EXPORT int BitsPerPixel(ResourceFormat format); |
CC_EXPORT GLenum GLDataType(ResourceFormat format); |
CC_EXPORT GLenum GLDataFormat(ResourceFormat format); |