hwc: Update to new API
* Updates HWC to use the Jellybean MR1 API
* Remove qcom_ui which was using parts of the old API
Change-Id: I663363547b193d2318aae88f2256a9baed1e3d4b
diff --git a/libhwcomposer/hwc_video.h b/libhwcomposer/hwc_video.h
index 62a32a9..40a7c14 100644
--- a/libhwcomposer/hwc_video.h
+++ b/libhwcomposer/hwc_video.h
@@ -26,9 +26,9 @@
class VideoOverlay {
public:
//Sets up members and prepares overlay if conditions are met
- static bool prepare(hwc_context_t *ctx, hwc_layer_list_t *list);
+ static bool prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list);
//Draws layer if this feature is on
- static bool draw(hwc_context_t *ctx, hwc_layer_list_t *list);
+ static bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list);
//Receives data from hwc
static void setStats(int yuvCount, int yuvLayerIndex, bool isYuvLayerSkip,
int ccLayerIndex);
@@ -38,10 +38,10 @@
//Choose an appropriate overlay state based on conditions
static void chooseState(hwc_context_t *ctx);
//Configures overlay for video prim and ext
- static bool configure(hwc_context_t *ctx, hwc_layer_t *yuvlayer,
- hwc_layer_t *ccLayer);
+ static bool configure(hwc_context_t *ctx, hwc_layer_1_t *yuvlayer,
+ hwc_layer_1_t *ccLayer);
//Marks layer flags if this feature is used
- static void markFlags(hwc_layer_t *layer);
+ static void markFlags(hwc_layer_1_t *layer);
//returns yuv count
static int getYuvCount();