diff options
author | Mathias Agopian <mathias@google.com> | 2010-06-21 17:45:29 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-06-21 18:22:09 -0700 |
commit | 07ccf5ad7edfeeebb79208ad3e8a52917fe038a8 (patch) | |
tree | 9c1f269584648a4c4591ec0b885eb3811952538a | |
parent | 875500b47ac74a164f7792ce89a16d600ea72695 (diff) | |
download | frameworks_base-07ccf5ad7edfeeebb79208ad3e8a52917fe038a8.zip frameworks_base-07ccf5ad7edfeeebb79208ad3e8a52917fe038a8.tar.gz frameworks_base-07ccf5ad7edfeeebb79208ad3e8a52917fe038a8.tar.bz2 |
remove unused YUV formats
Change-Id: Id0ae28b1700cf771cdbe0ca27b139d32cab90b2a
-rw-r--r-- | libs/surfaceflinger/TextureManager.cpp | 15 | ||||
-rw-r--r-- | libs/ui/PixelFormat.cpp | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/libs/surfaceflinger/TextureManager.cpp b/libs/surfaceflinger/TextureManager.cpp index 996a683..d9bdc6a 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; diff --git a/libs/ui/PixelFormat.cpp b/libs/ui/PixelFormat.cpp index 04c4779..c9a5950 100644 --- a/libs/ui/PixelFormat.cpp +++ b/libs/ui/PixelFormat.cpp @@ -68,7 +68,6 @@ status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) case HAL_PIXEL_FORMAT_YCbCr_420_SP: case HAL_PIXEL_FORMAT_YCrCb_420_SP: case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED: - case HAL_PIXEL_FORMAT_YCrCb_420_SP_TILED: case HAL_PIXEL_FORMAT_YCbCr_420_P: info->bitsPerPixel = 12; done: |