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

Unified Diff: cc/resources/resource_format_utils.cc

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Don't enable on non-ES3 yet Created 3 years, 10 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
« no previous file with comments | « cc/resources/resource_format.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_format_utils.cc
diff --git a/cc/resources/resource_format_utils.cc b/cc/resources/resource_format_utils.cc
index 788f687adfbe81e13d55a96dc4bcefdc10f33682..8118160dcb9da65f72d344d8c66df813983a265d 100644
--- a/cc/resources/resource_format_utils.cc
+++ b/cc/resources/resource_format_utils.cc
@@ -24,6 +24,8 @@ SkColorType ResourceFormatToClosestSkColorType(ResourceFormat format) {
case RED_8:
case LUMINANCE_F16:
return kN32_SkColorType;
+ case RGBA_F16:
+ return kRGBA_F16_SkColorType;
}
NOTREACHED();
return kN32_SkColorType;
« no previous file with comments | « cc/resources/resource_format.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698