Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: cc/resources/resource_format.h

Issue 1832573004: Gpu Image Decode Controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small fixes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698