blob: 2ec6019e6e6ce7f5898574d4764d4ecd832c1edb [file] [log] [blame]
Naseer Ahmed758bfc52012-11-28 17:02:08 -05001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 * Copyright (C) 2012, The Linux Foundation. All rights reserved.
4 *
5 * Not a Contribution, Apache license notifications and license are
6 * retained for attribution purposes only.
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
Saurabh Shahcf053c62012-12-13 12:32:55 -080021#define DEBUG_FBUPDATE 0
Arun Kumar K.Rffef7482013-04-10 14:17:22 -070022#include <cutils/properties.h>
Naseer Ahmed758bfc52012-11-28 17:02:08 -050023#include <gralloc_priv.h>
Arun Kumar K.Rffef7482013-04-10 14:17:22 -070024#include <overlayRotator.h>
Naseer Ahmed758bfc52012-11-28 17:02:08 -050025#include "hwc_fbupdate.h"
Saurabh Shahbd2d0832013-04-04 14:33:08 -070026#include "mdp_version.h"
Arun Kumar K.Rffef7482013-04-10 14:17:22 -070027#include "external.h"
Saurabh Shahbd2d0832013-04-04 14:33:08 -070028
29using namespace qdutils;
Naseer Ahmed758bfc52012-11-28 17:02:08 -050030
Arun Kumar K.Rffef7482013-04-10 14:17:22 -070031using overlay::Rotator;
32
Naseer Ahmed758bfc52012-11-28 17:02:08 -050033namespace qhwc {
34
35namespace ovutils = overlay::utils;
36
Saurabh Shah67a38c32013-06-10 16:23:15 -070037IFBUpdate* IFBUpdate::getObject(const int& width, const int& rightSplit,
38 const int& dpy) {
39 if(width > MAX_DISPLAY_DIM || rightSplit) {
Saurabh Shahcf053c62012-12-13 12:32:55 -080040 return new FBUpdateHighRes(dpy);
41 }
42 return new FBUpdateLowRes(dpy);
Naseer Ahmed758bfc52012-11-28 17:02:08 -050043}
44
Saurabh Shahcf053c62012-12-13 12:32:55 -080045inline void IFBUpdate::reset() {
46 mModeOn = false;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -070047 mRot = NULL;
Saurabh Shahcf053c62012-12-13 12:32:55 -080048}
49
50//================= Low res====================================
51FBUpdateLowRes::FBUpdateLowRes(const int& dpy): IFBUpdate(dpy) {}
52
53inline void FBUpdateLowRes::reset() {
54 IFBUpdate::reset();
55 mDest = ovutils::OV_INVALID;
56}
57
Jeykumar Sankaran85977e32013-02-25 17:06:08 -080058bool FBUpdateLowRes::prepare(hwc_context_t *ctx, hwc_display_contents_1 *list,
59 int fbZorder) {
Naseer Ahmed758bfc52012-11-28 17:02:08 -050060 if(!ctx->mMDP.hasOverlay) {
Saurabh Shahcf053c62012-12-13 12:32:55 -080061 ALOGD_IF(DEBUG_FBUPDATE, "%s, this hw doesnt support overlays",
Jeykumar Sankaran85977e32013-02-25 17:06:08 -080062 __FUNCTION__);
63 return false;
Naseer Ahmed758bfc52012-11-28 17:02:08 -050064 }
Jeykumar Sankaran85977e32013-02-25 17:06:08 -080065 mModeOn = configure(ctx, list, fbZorder);
Saurabh Shahcf053c62012-12-13 12:32:55 -080066 return mModeOn;
Naseer Ahmed758bfc52012-11-28 17:02:08 -050067}
68
69// Configure
Jeykumar Sankaran85977e32013-02-25 17:06:08 -080070bool FBUpdateLowRes::configure(hwc_context_t *ctx, hwc_display_contents_1 *list,
71 int fbZorder) {
Naseer Ahmed758bfc52012-11-28 17:02:08 -050072 bool ret = false;
Naseer Ahmed64b81212013-02-14 10:29:47 -050073 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1];
Naseer Ahmed758bfc52012-11-28 17:02:08 -050074 if (LIKELY(ctx->mOverlay)) {
Arun Kumar K.Ra2978452013-02-07 01:34:24 -080075 int extOnlyLayerIndex = ctx->listStats[mDpy].extOnlyLayerIndex;
76 // ext only layer present..
77 if(extOnlyLayerIndex != -1) {
78 layer = &list->hwLayers[extOnlyLayerIndex];
79 layer->compositionType = HWC_OVERLAY;
80 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -050081 overlay::Overlay& ov = *(ctx->mOverlay);
82 private_handle_t *hnd = (private_handle_t *)layer->handle;
Saurabh Shahacf10202013-02-26 10:15:15 -080083 ovutils::Whf info(hnd->width, hnd->height,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -080084 ovutils::getMdpFormat(hnd->format), hnd->size);
Naseer Ahmed758bfc52012-11-28 17:02:08 -050085
Saurabh Shahd4e65852013-06-17 11:33:53 -070086 //Request a pipe
87 ovutils::eMdpPipeType type = ovutils::OV_MDP_PIPE_ANY;
88 if(qdutils::MDPVersion::getInstance().is8x26() && mDpy) {
89 //For 8x26 external always use DMA pipe
90 type = ovutils::OV_MDP_PIPE_DMA;
91 }
92 ovutils::eDest dest = ov.nextPipe(type, mDpy);
Naseer Ahmed758bfc52012-11-28 17:02:08 -050093 if(dest == ovutils::OV_INVALID) { //None available
Saurabh Shahaa236822013-04-24 18:07:26 -070094 ALOGE("%s: No pipes available to configure fb for dpy %d",
95 __FUNCTION__, mDpy);
Naseer Ahmed758bfc52012-11-28 17:02:08 -050096 return false;
97 }
98
Saurabh Shahcf053c62012-12-13 12:32:55 -080099 mDest = dest;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500100
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800101 ovutils::eMdpFlags mdpFlags = ovutils::OV_MDP_BLEND_FG_PREMULT;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700102 ovutils::eIsFg isFg = ovutils::IS_FG_OFF;
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800103 ovutils::eZorder zOrder = static_cast<ovutils::eZorder>(fbZorder);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500104
Arun Kumar K.Ra2978452013-02-07 01:34:24 -0800105 hwc_rect_t sourceCrop = layer->sourceCrop;
106 hwc_rect_t displayFrame = layer->displayFrame;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700107 int transform = layer->transform;
108 int fbWidth = ctx->dpyAttr[mDpy].xres;
109 int fbHeight = ctx->dpyAttr[mDpy].yres;
110 int rotFlags = ovutils::ROT_FLAGS_NONE;
111
112 ovutils::eTransform orient =
113 static_cast<ovutils::eTransform>(transform);
114 if(mDpy && ctx->mExtOrientation) {
115 // If there is a external orientation set, use that
116 transform = ctx->mExtOrientation;
117 orient = static_cast<ovutils::eTransform >(ctx->mExtOrientation);
118 }
119
Ramkumar Radhakrishnan59a11072013-04-15 16:14:49 -0700120 // Do not use getNonWormholeRegion() function to calculate the
121 // sourceCrop during animation on external display and
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700122 // Dont do wormhole calculation when extorientation is set on External
Ramkumar Radhakrishnan59a11072013-04-15 16:14:49 -0700123 if(ctx->listStats[mDpy].isDisplayAnimating && mDpy) {
124 sourceCrop = layer->displayFrame;
125 displayFrame = sourceCrop;
126 } else if((!mDpy || (mDpy && !ctx->mExtOrientation))
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700127 && extOnlyLayerIndex == -1) {
Saurabh Shahd4e65852013-06-17 11:33:53 -0700128 if(!qdutils::MDPVersion::getInstance().is8x26()) {
129 getNonWormholeRegion(list, sourceCrop);
130 displayFrame = sourceCrop;
131 }
Arun Kumar K.Ra2978452013-02-07 01:34:24 -0800132 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500133 ovutils::Dim dpos(displayFrame.left,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800134 displayFrame.top,
135 displayFrame.right - displayFrame.left,
136 displayFrame.bottom - displayFrame.top);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500137
Saurabh Shahd4e65852013-06-17 11:33:53 -0700138 if(mDpy && !qdutils::MDPVersion::getInstance().is8x26()) {
Arun Kumar K.R82f1d282013-05-17 15:37:31 -0700139 // Get Aspect Ratio for external
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700140 getAspectRatioPosition(ctx, mDpy, ctx->mExtOrientation, dpos.x,
141 dpos.y, dpos.w, dpos.h);
Arun Kumar K.R82f1d282013-05-17 15:37:31 -0700142 // Calculate the actionsafe dimensions for External(dpy = 1 or 2)
143 getActionSafePosition(ctx, mDpy, dpos.x, dpos.y, dpos.w, dpos.h);
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700144 // Convert dim to hwc_rect_t
145 displayFrame.left = dpos.x;
146 displayFrame.top = dpos.y;
147 displayFrame.right = dpos.w + displayFrame.left;
148 displayFrame.bottom = dpos.h + displayFrame.top;
149 }
Ramkumar Radhakrishnan9d52f432013-05-14 14:46:59 -0700150 setMdpFlags(layer, mdpFlags, 0, transform);
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700151 // For External use rotator if there is a rotation value set
152 if(mDpy && (ctx->mExtOrientation & HWC_TRANSFORM_ROT_90)) {
153 mRot = ctx->mRotMgr->getNext();
154 if(mRot == NULL) return -1;
155 //Configure rotator for pre-rotation
156 if(configRotator(mRot, info, sourceCrop, mdpFlags, orient, 0) < 0) {
157 ALOGE("%s: configRotator Failed!", __FUNCTION__);
158 mRot = NULL;
159 return -1;
160 }
161 info.format = (mRot)->getDstFormat();
162 updateSource(orient, info, sourceCrop);
163 rotFlags |= ovutils::ROT_PREROTATED;
164 }
165 //For the mdp, since either we are pre-rotating or MDP does flips
166 orient = ovutils::OVERLAY_TRANSFORM_0;
167 transform = 0;
168 ovutils::PipeArgs parg(mdpFlags, info, zOrder, isFg,
169 static_cast<ovutils::eRotFlags>(rotFlags));
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500170 ret = true;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700171 if(configMdp(ctx->mOverlay, parg, orient, sourceCrop, displayFrame,
172 NULL, mDest) < 0) {
Saurabh Shahe2474082013-05-15 16:32:13 -0700173 ALOGE("%s: configMdp failed for dpy %d", __FUNCTION__, mDpy);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500174 ret = false;
175 }
176 }
177 return ret;
178}
179
Naseer Ahmed64b81212013-02-14 10:29:47 -0500180bool FBUpdateLowRes::draw(hwc_context_t *ctx, private_handle_t *hnd)
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500181{
Saurabh Shahcf053c62012-12-13 12:32:55 -0800182 if(!mModeOn) {
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500183 return true;
184 }
185 bool ret = true;
186 overlay::Overlay& ov = *(ctx->mOverlay);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800187 ovutils::eDest dest = mDest;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700188 int fd = hnd->fd;
189 uint32_t offset = hnd->offset;
190 if(mRot) {
191 if(!mRot->queueBuffer(fd, offset))
192 return false;
193 fd = mRot->getDstMemId();
194 offset = mRot->getDstOffset();
195 }
196 if (!ov.queueBuffer(fd, offset, dest)) {
Amara Venkata Mastan Manoj Kumardc01a532013-01-30 18:34:56 -0800197 ALOGE("%s: queueBuffer failed for FBUpdate", __FUNCTION__);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500198 ret = false;
199 }
200 return ret;
201}
202
Saurabh Shahcf053c62012-12-13 12:32:55 -0800203//================= High res====================================
204FBUpdateHighRes::FBUpdateHighRes(const int& dpy): IFBUpdate(dpy) {}
205
206inline void FBUpdateHighRes::reset() {
207 IFBUpdate::reset();
208 mDestLeft = ovutils::OV_INVALID;
209 mDestRight = ovutils::OV_INVALID;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700210 mRot = NULL;
Saurabh Shahcf053c62012-12-13 12:32:55 -0800211}
212
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800213bool FBUpdateHighRes::prepare(hwc_context_t *ctx, hwc_display_contents_1 *list,
214 int fbZorder) {
Saurabh Shahcf053c62012-12-13 12:32:55 -0800215 if(!ctx->mMDP.hasOverlay) {
216 ALOGD_IF(DEBUG_FBUPDATE, "%s, this hw doesnt support overlays",
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800217 __FUNCTION__);
218 return false;
Saurabh Shahcf053c62012-12-13 12:32:55 -0800219 }
220 ALOGD_IF(DEBUG_FBUPDATE, "%s, mModeOn = %d", __FUNCTION__, mModeOn);
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800221 mModeOn = configure(ctx, list, fbZorder);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800222 return mModeOn;
223}
224
225// Configure
Naseer Ahmed64b81212013-02-14 10:29:47 -0500226bool FBUpdateHighRes::configure(hwc_context_t *ctx,
Saurabh Shah67a38c32013-06-10 16:23:15 -0700227 hwc_display_contents_1 *list, int fbZorder) {
Saurabh Shahcf053c62012-12-13 12:32:55 -0800228 bool ret = false;
Naseer Ahmed64b81212013-02-14 10:29:47 -0500229 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1];
Saurabh Shahcf053c62012-12-13 12:32:55 -0800230 if (LIKELY(ctx->mOverlay)) {
Arun Kumar K.Ra2978452013-02-07 01:34:24 -0800231 int extOnlyLayerIndex = ctx->listStats[mDpy].extOnlyLayerIndex;
232 // ext only layer present..
233 if(extOnlyLayerIndex != -1) {
234 layer = &list->hwLayers[extOnlyLayerIndex];
235 layer->compositionType = HWC_OVERLAY;
236 }
Saurabh Shahcf053c62012-12-13 12:32:55 -0800237 overlay::Overlay& ov = *(ctx->mOverlay);
238 private_handle_t *hnd = (private_handle_t *)layer->handle;
Saurabh Shahacf10202013-02-26 10:15:15 -0800239 ovutils::Whf info(hnd->width, hnd->height,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800240 ovutils::getMdpFormat(hnd->format), hnd->size);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800241
Saurabh Shahc66f54d2013-06-12 15:45:59 -0700242 //Request left pipe
243 ovutils::eDest destL = ov.nextPipe(ovutils::OV_MDP_PIPE_ANY, mDpy);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800244 if(destL == ovutils::OV_INVALID) { //None available
Saurabh Shahaa236822013-04-24 18:07:26 -0700245 ALOGE("%s: No pipes available to configure fb for dpy %d's left"
246 " mixer", __FUNCTION__, mDpy);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800247 return false;
248 }
Saurabh Shahc66f54d2013-06-12 15:45:59 -0700249 //Request right pipe
250 ovutils::eDest destR = ov.nextPipe(ovutils::OV_MDP_PIPE_ANY, mDpy);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800251 if(destR == ovutils::OV_INVALID) { //None available
Saurabh Shahaa236822013-04-24 18:07:26 -0700252 ALOGE("%s: No pipes available to configure fb for dpy %d's right"
253 " mixer", __FUNCTION__, mDpy);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800254 return false;
255 }
256
257 mDestLeft = destL;
258 mDestRight = destR;
259
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800260 ovutils::eMdpFlags mdpFlagsL = ovutils::OV_MDP_BLEND_FG_PREMULT;
Sravan Kumar D.V.Nb5ed0292013-03-15 08:51:16 +0530261
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800262 ovutils::eZorder zOrder = static_cast<ovutils::eZorder>(fbZorder);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800263
264 ovutils::PipeArgs pargL(mdpFlagsL,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800265 info,
266 zOrder,
267 ovutils::IS_FG_OFF,
268 ovutils::ROT_FLAGS_NONE);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800269 ov.setSource(pargL, destL);
270
271 ovutils::eMdpFlags mdpFlagsR = mdpFlagsL;
272 ovutils::setMdpFlags(mdpFlagsR, ovutils::OV_MDSS_MDP_RIGHT_MIXER);
273 ovutils::PipeArgs pargR(mdpFlagsR,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800274 info,
275 zOrder,
276 ovutils::IS_FG_OFF,
277 ovutils::ROT_FLAGS_NONE);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800278 ov.setSource(pargR, destR);
279
Arun Kumar K.Ra2978452013-02-07 01:34:24 -0800280 hwc_rect_t sourceCrop = layer->sourceCrop;
281 hwc_rect_t displayFrame = layer->displayFrame;
Ramkumar Radhakrishnan59a11072013-04-15 16:14:49 -0700282 // Do not use getNonWormholeRegion() function to calculate the
283 // sourceCrop during animation on external display.
284 if(ctx->listStats[mDpy].isDisplayAnimating && mDpy) {
285 sourceCrop = layer->displayFrame;
286 displayFrame = sourceCrop;
287 } else if(extOnlyLayerIndex == -1) {
Arun Kumar K.Ra2978452013-02-07 01:34:24 -0800288 getNonWormholeRegion(list, sourceCrop);
289 displayFrame = sourceCrop;
290 }
Saurabh Shah67a38c32013-06-10 16:23:15 -0700291
292 const float xres = ctx->dpyAttr[mDpy].xres;
293 //Default even split for all displays with high res
294 float lSplit = xres / 2;
295 if(mDpy == HWC_DISPLAY_PRIMARY &&
296 qdutils::MDPVersion::getInstance().getLeftSplit()) {
297 //Override if split published by driver for primary
298 lSplit = qdutils::MDPVersion::getInstance().getLeftSplit();
299 }
300
301 const float lSplitRatio = lSplit / xres;
302
303 const float lCropWidth =
304 (sourceCrop.right - sourceCrop.left) * lSplitRatio;
305
306 ovutils::Dim dcropL(
307 sourceCrop.left,
308 sourceCrop.top,
309 lCropWidth,
310 sourceCrop.bottom - sourceCrop.top);
311
Saurabh Shahcf053c62012-12-13 12:32:55 -0800312 ovutils::Dim dcropR(
Saurabh Shah67a38c32013-06-10 16:23:15 -0700313 sourceCrop.left + lCropWidth,
314 sourceCrop.top,
315 (sourceCrop.right - sourceCrop.left) - lCropWidth,
316 sourceCrop.bottom - sourceCrop.top);
317
Saurabh Shahcf053c62012-12-13 12:32:55 -0800318 ov.setCrop(dcropL, destL);
319 ov.setCrop(dcropR, destR);
320
321 int transform = layer->transform;
322 ovutils::eTransform orient =
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800323 static_cast<ovutils::eTransform>(transform);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800324 ov.setTransform(orient, destL);
325 ov.setTransform(orient, destR);
326
Saurabh Shah67a38c32013-06-10 16:23:15 -0700327 const int lWidth = (lSplit - displayFrame.left);
328 const int rWidth = (displayFrame.right - lSplit);
Saurabh Shahce416f02013-04-10 13:33:09 -0700329 const int height = displayFrame.bottom - displayFrame.top;
330
Saurabh Shah67a38c32013-06-10 16:23:15 -0700331 ovutils::Dim dposL(displayFrame.left,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800332 displayFrame.top,
Saurabh Shah67a38c32013-06-10 16:23:15 -0700333 lWidth,
Saurabh Shahce416f02013-04-10 13:33:09 -0700334 height);
Arun Kumar K.R0e8efb82013-03-18 17:31:50 -0700335 ov.setPosition(dposL, destL);
Saurabh Shahce416f02013-04-10 13:33:09 -0700336
Arun Kumar K.R0e8efb82013-03-18 17:31:50 -0700337 ovutils::Dim dposR(0,
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800338 displayFrame.top,
Saurabh Shah67a38c32013-06-10 16:23:15 -0700339 rWidth,
Saurabh Shahce416f02013-04-10 13:33:09 -0700340 height);
Arun Kumar K.R0e8efb82013-03-18 17:31:50 -0700341 ov.setPosition(dposR, destR);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800342
343 ret = true;
344 if (!ov.commit(destL)) {
345 ALOGE("%s: commit fails for left", __FUNCTION__);
346 ret = false;
347 }
348 if (!ov.commit(destR)) {
349 ALOGE("%s: commit fails for right", __FUNCTION__);
350 ret = false;
351 }
352 }
353 return ret;
354}
355
Naseer Ahmed64b81212013-02-14 10:29:47 -0500356bool FBUpdateHighRes::draw(hwc_context_t *ctx, private_handle_t *hnd)
Saurabh Shahcf053c62012-12-13 12:32:55 -0800357{
358 if(!mModeOn) {
359 return true;
360 }
361 bool ret = true;
362 overlay::Overlay& ov = *(ctx->mOverlay);
363 ovutils::eDest destL = mDestLeft;
364 ovutils::eDest destR = mDestRight;
Saurabh Shahcf053c62012-12-13 12:32:55 -0800365 if (!ov.queueBuffer(hnd->fd, hnd->offset, destL)) {
366 ALOGE("%s: queue failed for left of dpy = %d",
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800367 __FUNCTION__, mDpy);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800368 ret = false;
369 }
370 if (!ov.queueBuffer(hnd->fd, hnd->offset, destR)) {
371 ALOGE("%s: queue failed for right of dpy = %d",
Jeykumar Sankaran85977e32013-02-25 17:06:08 -0800372 __FUNCTION__, mDpy);
Saurabh Shahcf053c62012-12-13 12:32:55 -0800373 ret = false;
374 }
375 return ret;
376}
377
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500378//---------------------------------------------------------------------
379}; //namespace qhwc