diff options
author | Mathias Agopian <mathias@google.com> | 2012-02-21 18:56:08 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-02-21 18:56:08 -0800 |
commit | 3e3681151a231225b2b25c996bb9e85948a345a8 (patch) | |
tree | 4f22d76c270b119b1bb9399cb524147008e5723f /include | |
parent | edabdcf5acc7d607e74590f9207696702d45bf2f (diff) | |
download | frameworks_base-3e3681151a231225b2b25c996bb9e85948a345a8.zip frameworks_base-3e3681151a231225b2b25c996bb9e85948a345a8.tar.gz frameworks_base-3e3681151a231225b2b25c996bb9e85948a345a8.tar.bz2 |
remove libui's dependency on libpixelflinger
this also remove support for unused pixelformats.
Change-Id: I2c759a6d2daa740f3786ed62095def8047ae933d
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/PixelFormat.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/ui/PixelFormat.h b/include/ui/PixelFormat.h index 848c5a1..fc260c4 100644 --- a/include/ui/PixelFormat.h +++ b/include/ui/PixelFormat.h @@ -21,7 +21,6 @@ // skia or SurfaceFlinger are not required to support all of these formats // (either as source or destination) -// XXX: we should consolidate these formats and skia's #ifndef UI_PIXELFORMAT_H #define UI_PIXELFORMAT_H @@ -29,7 +28,6 @@ #include <stdint.h> #include <sys/types.h> #include <utils/Errors.h> -#include <pixelflinger/format.h> #include <hardware/hardware.h> namespace android { @@ -65,10 +63,7 @@ enum { PIXEL_FORMAT_BGRA_8888 = HAL_PIXEL_FORMAT_BGRA_8888, // 4x8-bit BGRA PIXEL_FORMAT_RGBA_5551 = HAL_PIXEL_FORMAT_RGBA_5551, // 16-bit ARGB PIXEL_FORMAT_RGBA_4444 = HAL_PIXEL_FORMAT_RGBA_4444, // 16-bit ARGB - PIXEL_FORMAT_A_8 = GGL_PIXEL_FORMAT_A_8, // 8-bit A - PIXEL_FORMAT_L_8 = GGL_PIXEL_FORMAT_L_8, // 8-bit L (R=G=B=L) - PIXEL_FORMAT_LA_88 = GGL_PIXEL_FORMAT_LA_88, // 16-bit LA - PIXEL_FORMAT_RGB_332 = GGL_PIXEL_FORMAT_RGB_332, // 8-bit RGB + PIXEL_FORMAT_A_8 = 8, // 8-bit A // New formats can be added if they're also defined in // pixelflinger/format.h @@ -76,8 +71,7 @@ enum { typedef int32_t PixelFormat; -struct PixelFormatInfo -{ +struct PixelFormatInfo { enum { INDEX_ALPHA = 0, INDEX_RED = 1, @@ -89,8 +83,6 @@ struct PixelFormatInfo ALPHA = 1, RGB = 2, RGBA = 3, - LUMINANCE = 4, - LUMINANCE_ALPHA = 5, OTHER = 0xFF }; |