diff options
author | PaulK <contact@paulk.fr> | 2011-09-17 16:12:08 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-07-09 12:54:38 +0200 |
commit | a1bf562175b36a4ed8dde24e1ed9ad9a305bde61 (patch) | |
tree | 8f28c12f06a869ce1104773ca8c15e33ca873b33 | |
parent | 127e0263220d969d14ada249e980b96511201731 (diff) | |
download | frameworks_base-a1bf562175b36a4ed8dde24e1ed9ad9a305bde61.zip frameworks_base-a1bf562175b36a4ed8dde24e1ed9ad9a305bde61.tar.gz frameworks_base-a1bf562175b36a4ed8dde24e1ed9ad9a305bde61.tar.bz2 |
Fixed white screen on Nexus S CameraService with liboverlay disabled.
-rw-r--r-- | services/surfaceflinger/TextureManager.cpp | 6 |
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) |