diff options
author | 2010-06-21 17:45:29 -0700 | |
---|---|---|
committer | 2010-06-21 18:22:09 -0700 | |
commit | 3f3a74a53af9401ee3812e0faa37189467d81af8 (patch) | |
tree | b4c8893c9e891c8b5c0ecaa619a8df0ca23fb2b6 /libs/surfaceflinger/TextureManager.cpp | |
parent | 0ed252d4f49042e480a97f5f706f932fcfffc12b (diff) |
remove unused YUV formats
Change-Id: Id0ae28b1700cf771cdbe0ca27b139d32cab90b2a
Diffstat (limited to 'libs/surfaceflinger/TextureManager.cpp')
-rw-r--r-- | libs/surfaceflinger/TextureManager.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libs/surfaceflinger/TextureManager.cpp b/libs/surfaceflinger/TextureManager.cpp index 996a683b08..d9bdc6acec 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; |