From ff8d4b30aeb3d4f0d4951590747f83b433d95841 Mon Sep 17 00:00:00 2001 From: Saurabh Shah Date: Mon, 6 Jun 2011 14:55:09 -0700 Subject: [PATCH] Implement ActionSafe ratios in OverlayOrigRes class Implement ActionSafe ratios in OverlayOrigRes class Change class internal design. Change-Id: I42a7f9b00dfd3e760b2162a1f7f36d679440363f CRs-fixed: 285165 --- framebuffer.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/framebuffer.cpp b/framebuffer.cpp index 3537f62..3da31f9 100644 --- a/framebuffer.cpp +++ b/framebuffer.cpp @@ -419,15 +419,10 @@ static int postOrigResHDMI(private_module_t* m) { //Post them to secondary if(m->enableHDMIOutput) { - const bool waitForVsync = true; const int orientation = 0; - const int fbnum = OverlayUI::FB1; - const bool useVGPipe = true; - ret = m->pOrigResTV->setSource(w, h, format, orientation, useVGPipe, - waitForVsync, fbnum); + ret = m->pOrigResTV->setSource(w, h, format, orientation); if(ret == NO_ERROR) { - m->pOrigResTV->setPosition(0, 0, m->pOrigResTV->getFBWidth(), - m->pOrigResTV->getFBHeight()); + m->pOrigResTV->setPosition(); ret = m->pOrigResTV->queueBuffer(buffer); } if(ret != NO_ERROR) @@ -461,11 +456,7 @@ static int fb_postOrigResBuffer(struct framebuffer_device_t* dev, pthread_cond_signal(&m->ts.newBufferCond); pthread_mutex_unlock(&m->ts.newBufferMutex); - const bool useVGPipe = true; - const bool waitForVsync = true; - const int fbnum = OverlayUI::FB0; - ret = m->pOrigResPanel->setSource(w, h, format, orientation, useVGPipe, - waitForVsync, fbnum); + ret = m->pOrigResPanel->setSource(w, h, format, orientation); if(ret == NO_ERROR) { ret = m->pOrigResPanel->queueBuffer(buffer); }