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

Unified Diff: cc/resources/resource_format.h

Issue 1379783002: Allow one-copy task tile worker pool to use compressed textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace memory_efficient_format* with preferred_tile_format Created 5 years 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 79b815fcd297c73c1b922c98b608c2397c0be87e..bbe9327ac76a179e3bdd7f0dc700219b6696d8e6 100644
--- a/cc/resources/resource_format.h
+++ b/cc/resources/resource_format.h
@@ -31,12 +31,17 @@ enum ResourceFormat {
};
SkColorType ResourceFormatToSkColorType(ResourceFormat format);
+ResourceFormat SkColorTypeToResourceFormat(SkColorType color_type);
CC_EXPORT int BitsPerPixel(ResourceFormat format);
CC_EXPORT GLenum GLDataType(ResourceFormat format);
CC_EXPORT GLenum GLDataFormat(ResourceFormat format);
CC_EXPORT GLenum GLInternalFormat(ResourceFormat format);
CC_EXPORT gfx::BufferFormat BufferFormat(ResourceFormat format);
+CC_EXPORT ResourceFormat BufferFormatToResourceFormat(gfx::BufferFormat format);
reveman 2015/12/02 18:27:18 nit: is this still needed?
christiank 2015/12/03 12:57:59 No it's not, good catch!
+
+bool IsResourceFormatCompressed(ResourceFormat format);
+bool DoesResourceFormatSupportAlpha(ResourceFormat format);
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698