summaryrefslogtreecommitdiff
path: root/libs/gui/CpuConsumer.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2016-12-13 16:51:25 -0800
committer Romain Guy <romainguy@google.com> 2016-12-13 17:02:55 -0800
commitff415149dc5a83a4eb5960daf2cb2c310ef89847 (patch)
tree2f3b04aceccccdfb817a62847d595c7f50d05a43 /libs/gui/CpuConsumer.cpp
parent7969999ddd959a6e5e2fb5842ea0e17ac6bb13a5 (diff)
Add fp16 pixel and window formats
Bug: 32984164 Test: compile Change-Id: I8303afbf857796295a280c0d9438a3c403a11437
Diffstat (limited to 'libs/gui/CpuConsumer.cpp')
-rw-r--r--libs/gui/CpuConsumer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp
index 839316021e..4acf618a63 100644
--- a/libs/gui/CpuConsumer.cpp
+++ b/libs/gui/CpuConsumer.cpp
@@ -64,6 +64,8 @@ static bool isPossiblyYUV(PixelFormat format) {
switch (static_cast<int>(format)) {
case HAL_PIXEL_FORMAT_RGBA_8888:
case HAL_PIXEL_FORMAT_RGBX_8888:
+ case HAL_PIXEL_FORMAT_RGBA_FP16:
+ case HAL_PIXEL_FORMAT_RGBX_FP16:
case HAL_PIXEL_FORMAT_RGB_888:
case HAL_PIXEL_FORMAT_RGB_565:
case HAL_PIXEL_FORMAT_BGRA_8888: