summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/TextureManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/TextureManager.cpp')
-rw-r--r--services/surfaceflinger/TextureManager.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/services/surfaceflinger/TextureManager.cpp b/services/surfaceflinger/TextureManager.cpp
index 9e24f90..643d085 100644
--- a/services/surfaceflinger/TextureManager.cpp
+++ b/services/surfaceflinger/TextureManager.cpp
@@ -105,11 +105,7 @@ status_t TextureManager::initTexture(Image* pImage, int32_t format)
bool TextureManager::isSupportedYuvFormat(int format)
{
- switch (format) {
- case HAL_PIXEL_FORMAT_YV12:
- return true;
- }
- return false;
+ return isYuvFormat(format);
}
bool TextureManager::isYuvFormat(int format)