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 --------------- libs/ui/PixelFormat.cpp | 1 - 2 files changed, 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: -- cgit v1.1