From 07ccf5ad7edfeeebb79208ad3e8a52917fe038a8 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 21 Jun 2010 17:45:29 -0700 Subject: remove unused YUV formats Change-Id: Id0ae28b1700cf771cdbe0ca27b139d32cab90b2a --- libs/surfaceflinger/TextureManager.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libs/surfaceflinger/TextureManager.cpp') diff --git a/libs/surfaceflinger/TextureManager.cpp b/libs/surfaceflinger/TextureManager.cpp index 996a683b084e..d9bdc6acec34 100644 --- a/libs/surfaceflinger/TextureManager.cpp +++ b/libs/surfaceflinger/TextureManager.cpp @@ -102,19 +102,6 @@ status_t TextureManager::initTexture(Image* pImage, int32_t format) bool TextureManager::isSupportedYuvFormat(int format) { - // TODO: how to we know which YUV formats are supported by the GPU? - - // Adreno 200 supports these - // YUVY_adreno - // UYVY_adreno - // NV21_adreno - // YV12_adreno - // Adreno 205 adds - // NV12_adreno_tiled - // NV21_adreno_tiled - - // for now pretend we support them all, failure will happen when - // we try to use them. return isYuvFormat(format); } @@ -129,9 +116,7 @@ bool TextureManager::isYuvFormat(int format) case HAL_PIXEL_FORMAT_UYVY: case HAL_PIXEL_FORMAT_NV12: case HAL_PIXEL_FORMAT_NV61: - case HAL_PIXEL_FORMAT_YV12: case HAL_PIXEL_FORMAT_NV12_ADRENO_TILED: - case HAL_PIXEL_FORMAT_NV21_ADRENO_TILED: return true; } return false; -- cgit v1.2.3-59-g8ed1b