Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 1 | /* |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 2 | * Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions are |
| 6 | * met: |
| 7 | * * Redistributions of source code must retain the above copyright |
| 8 | * notice, this list of conditions and the following disclaimer. |
| 9 | * * Redistributions in binary form must reproduce the above |
| 10 | * copyright notice, this list of conditions and the following |
| 11 | * disclaimer in the documentation and/or other materials provided |
| 12 | * with the distribution. |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 13 | * * Neither the name of The Linux Foundation nor the names of its |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 14 | * contributors may be used to endorse or promote products derived |
| 15 | * from this software without specific prior written permission. |
| 16 | * |
| 17 | * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED |
| 18 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 21 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 24 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 25 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 26 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 27 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | */ |
| 29 | |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 30 | #include "overlay.h" |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 31 | #include "pipes/overlayGenPipe.h" |
| 32 | #include "mdp_version.h" |
Saurabh Shah | 5daeee5 | 2013-01-23 16:52:26 +0800 | [diff] [blame] | 33 | #include "qdMetaData.h" |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 34 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 35 | #define PIPE_DEBUG 0 |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 36 | |
| 37 | namespace overlay { |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 38 | using namespace utils; |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 39 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 40 | Overlay::Overlay() { |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 41 | PipeBook::NUM_PIPES = qdutils::MDPVersion::getInstance().getTotalPipes(); |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 42 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) { |
| 43 | mPipeBook[i].init(); |
Naseer Ahmed | 1ddf366 | 2012-07-31 19:14:18 -0700 | [diff] [blame] | 44 | } |
Naseer Ahmed | 1ddf366 | 2012-07-31 19:14:18 -0700 | [diff] [blame] | 45 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 46 | mDumpStr[0] = '\0'; |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | Overlay::~Overlay() { |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 50 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) { |
| 51 | mPipeBook[i].destroy(); |
| 52 | } |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 55 | void Overlay::configBegin() { |
| 56 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) { |
| 57 | //Mark as available for this round. |
| 58 | PipeBook::resetUse(i); |
| 59 | PipeBook::resetAllocation(i); |
| 60 | } |
| 61 | mDumpStr[0] = '\0'; |
| 62 | } |
| 63 | |
| 64 | void Overlay::configDone() { |
| 65 | if(PipeBook::pipeUsageUnchanged()) return; |
| 66 | |
| 67 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) { |
| 68 | if(PipeBook::isNotUsed(i)) { |
| 69 | //Forces UNSET on pipes, flushes rotator memory and session, closes |
| 70 | //fds |
| 71 | if(mPipeBook[i].valid()) { |
| 72 | char str[32]; |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 73 | sprintf(str, "Unset pipe=%s dpy=%d; ", |
| 74 | PipeBook::getDestStr((eDest)i), mPipeBook[i].mDisplay); |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 75 | strncat(mDumpStr, str, strlen(str)); |
| 76 | } |
| 77 | mPipeBook[i].destroy(); |
Naseer Ahmed | 1ddf366 | 2012-07-31 19:14:18 -0700 | [diff] [blame] | 78 | } |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 79 | } |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 80 | dump(); |
| 81 | PipeBook::save(); |
| 82 | } |
| 83 | |
| 84 | eDest Overlay::nextPipe(eMdpPipeType type, int dpy) { |
| 85 | eDest dest = OV_INVALID; |
| 86 | |
| 87 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) { |
| 88 | //Match requested pipe type |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 89 | if(type == OV_MDP_PIPE_ANY || type == PipeBook::getPipeType((eDest)i)) { |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 90 | //If the pipe is not allocated to any display or used by the |
| 91 | //requesting display already in previous round. |
| 92 | if((mPipeBook[i].mDisplay == PipeBook::DPY_UNUSED || |
| 93 | mPipeBook[i].mDisplay == dpy) && |
| 94 | PipeBook::isNotAllocated(i)) { |
Saurabh Shah | 85234ec | 2013-04-12 17:09:00 -0700 | [diff] [blame] | 95 | //In block mode we don't allow line operations |
| 96 | if(sDMAMode == DMA_BLOCK_MODE && |
| 97 | PipeBook::getPipeType((eDest)i) == OV_MDP_PIPE_DMA) |
| 98 | continue; |
| 99 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 100 | dest = (eDest)i; |
| 101 | PipeBook::setAllocation(i); |
| 102 | break; |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | if(dest != OV_INVALID) { |
| 108 | int index = (int)dest; |
| 109 | //If the pipe is not registered with any display OR if the pipe is |
| 110 | //requested again by the same display using it, then go ahead. |
| 111 | mPipeBook[index].mDisplay = dpy; |
| 112 | if(not mPipeBook[index].valid()) { |
| 113 | mPipeBook[index].mPipe = new GenericPipe(dpy); |
| 114 | char str[32]; |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 115 | snprintf(str, 32, "Set pipe=%s dpy=%d; ", |
| 116 | PipeBook::getDestStr(dest), dpy); |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 117 | strncat(mDumpStr, str, strlen(str)); |
| 118 | } |
| 119 | } else { |
| 120 | ALOGD_IF(PIPE_DEBUG, "Pipe unavailable type=%d display=%d", |
| 121 | (int)type, dpy); |
| 122 | } |
| 123 | |
| 124 | return dest; |
| 125 | } |
| 126 | |
| 127 | bool Overlay::commit(utils::eDest dest) { |
| 128 | bool ret = false; |
| 129 | int index = (int)dest; |
| 130 | validate(index); |
| 131 | |
| 132 | if(mPipeBook[index].mPipe->commit()) { |
| 133 | ret = true; |
| 134 | PipeBook::setUse((int)dest); |
| 135 | } else { |
| 136 | PipeBook::resetUse((int)dest); |
Sushil Chauhan | e0dff93 | 2013-03-01 14:33:18 -0800 | [diff] [blame] | 137 | int dpy = mPipeBook[index].mDisplay; |
| 138 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) |
| 139 | if (mPipeBook[i].mDisplay == dpy) |
| 140 | PipeBook::resetAllocation(i); |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 141 | } |
| 142 | return ret; |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 143 | } |
| 144 | |
Naseer Ahmed | f48aef6 | 2012-07-20 09:05:53 -0700 | [diff] [blame] | 145 | bool Overlay::queueBuffer(int fd, uint32_t offset, |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 146 | utils::eDest dest) { |
| 147 | int index = (int)dest; |
| 148 | bool ret = false; |
| 149 | validate(index); |
| 150 | //Queue only if commit() has succeeded (and the bit set) |
| 151 | if(PipeBook::isUsed((int)dest)) { |
| 152 | ret = mPipeBook[index].mPipe->queueBuffer(fd, offset); |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 153 | } |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 154 | return ret; |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 155 | } |
| 156 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 157 | void Overlay::setCrop(const utils::Dim& d, |
| 158 | utils::eDest dest) { |
| 159 | int index = (int)dest; |
| 160 | validate(index); |
| 161 | mPipeBook[index].mPipe->setCrop(d); |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 162 | } |
Naseer Ahmed | f48aef6 | 2012-07-20 09:05:53 -0700 | [diff] [blame] | 163 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 164 | void Overlay::setPosition(const utils::Dim& d, |
| 165 | utils::eDest dest) { |
| 166 | int index = (int)dest; |
| 167 | validate(index); |
| 168 | mPipeBook[index].mPipe->setPosition(d); |
| 169 | } |
| 170 | |
| 171 | void Overlay::setTransform(const int orient, |
| 172 | utils::eDest dest) { |
| 173 | int index = (int)dest; |
| 174 | validate(index); |
| 175 | |
Naseer Ahmed | f48aef6 | 2012-07-20 09:05:53 -0700 | [diff] [blame] | 176 | utils::eTransform transform = |
| 177 | static_cast<utils::eTransform>(orient); |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 178 | mPipeBook[index].mPipe->setTransform(transform); |
Naseer Ahmed | f48aef6 | 2012-07-20 09:05:53 -0700 | [diff] [blame] | 179 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 180 | } |
| 181 | |
| 182 | void Overlay::setSource(const utils::PipeArgs args, |
| 183 | utils::eDest dest) { |
| 184 | int index = (int)dest; |
| 185 | validate(index); |
| 186 | |
| 187 | PipeArgs newArgs(args); |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 188 | if(PipeBook::getPipeType(dest) == OV_MDP_PIPE_VG) { |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 189 | setMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_SHARE); |
| 190 | } else { |
| 191 | clearMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_SHARE); |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 192 | } |
Jeykumar Sankaran | b551ce4 | 2013-01-10 16:26:48 -0800 | [diff] [blame] | 193 | |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 194 | if(PipeBook::getPipeType(dest) == OV_MDP_PIPE_DMA) { |
Jeykumar Sankaran | b551ce4 | 2013-01-10 16:26:48 -0800 | [diff] [blame] | 195 | setMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_FORCE_DMA); |
| 196 | } else { |
| 197 | clearMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_FORCE_DMA); |
| 198 | } |
| 199 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 200 | mPipeBook[index].mPipe->setSource(newArgs); |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 201 | } |
Naseer Ahmed | f48aef6 | 2012-07-20 09:05:53 -0700 | [diff] [blame] | 202 | |
Saurabh Shah | 5daeee5 | 2013-01-23 16:52:26 +0800 | [diff] [blame] | 203 | void Overlay::setVisualParams(const MetaData_t& metadata, utils::eDest dest) { |
| 204 | int index = (int)dest; |
| 205 | validate(index); |
| 206 | mPipeBook[index].mPipe->setVisualParams(metadata); |
| 207 | } |
| 208 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 209 | Overlay* Overlay::getInstance() { |
| 210 | if(sInstance == NULL) { |
| 211 | sInstance = new Overlay(); |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 212 | } |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 213 | return sInstance; |
Saurabh Shah | c4d034f | 2012-09-27 15:55:15 -0700 | [diff] [blame] | 214 | } |
| 215 | |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 216 | // Clears any VG pipes allocated to the fb devices |
| 217 | // Generates a LUT for pipe types. |
| 218 | int Overlay::initOverlay() { |
| 219 | int mdpVersion = qdutils::MDPVersion::getInstance().getMDPVersion(); |
| 220 | int numPipesXType[OV_MDP_PIPE_ANY] = {0}; |
| 221 | numPipesXType[OV_MDP_PIPE_RGB] = |
| 222 | qdutils::MDPVersion::getInstance().getRGBPipes(); |
| 223 | numPipesXType[OV_MDP_PIPE_VG] = |
| 224 | qdutils::MDPVersion::getInstance().getVGPipes(); |
| 225 | numPipesXType[OV_MDP_PIPE_DMA] = |
| 226 | qdutils::MDPVersion::getInstance().getDMAPipes(); |
| 227 | |
| 228 | int index = 0; |
| 229 | for(int X = 0; X < (int)OV_MDP_PIPE_ANY; X++) { //iterate over types |
| 230 | for(int j = 0; j < numPipesXType[X]; j++) { //iterate over num |
| 231 | PipeBook::pipeTypeLUT[index] = (utils::eMdpPipeType)X; |
| 232 | index++; |
| 233 | } |
Saurabh Shah | c4d034f | 2012-09-27 15:55:15 -0700 | [diff] [blame] | 234 | } |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 235 | |
| 236 | if (mdpVersion < qdutils::MDSS_V5) { |
| 237 | msmfb_mixer_info_req req; |
| 238 | mdp_mixer_info *minfo = NULL; |
| 239 | char name[64]; |
| 240 | int fd = -1; |
| 241 | for(int i = 0; i < NUM_FB_DEVICES; i++) { |
| 242 | snprintf(name, 64, FB_DEVICE_TEMPLATE, i); |
| 243 | ALOGD("initoverlay:: opening the device:: %s", name); |
| 244 | fd = ::open(name, O_RDWR, 0); |
| 245 | if(fd < 0) { |
| 246 | ALOGE("cannot open framebuffer(%d)", i); |
| 247 | return -1; |
| 248 | } |
| 249 | //Get the mixer configuration */ |
| 250 | req.mixer_num = i; |
| 251 | if (ioctl(fd, MSMFB_MIXER_INFO, &req) == -1) { |
| 252 | ALOGE("ERROR: MSMFB_MIXER_INFO ioctl failed"); |
| 253 | close(fd); |
| 254 | return -1; |
| 255 | } |
| 256 | minfo = req.info; |
| 257 | for (int j = 0; j < req.cnt; j++) { |
| 258 | ALOGD("ndx=%d num=%d z_order=%d", minfo->pndx, minfo->pnum, |
| 259 | minfo->z_order); |
| 260 | // except the RGB base layer with z_order of -1, clear any |
| 261 | // other pipes connected to mixer. |
| 262 | if((minfo->z_order) != -1) { |
| 263 | int index = minfo->pndx; |
| 264 | ALOGD("Unset overlay with index: %d at mixer %d", index, i); |
| 265 | if(ioctl(fd, MSMFB_OVERLAY_UNSET, &index) == -1) { |
| 266 | ALOGE("ERROR: MSMFB_OVERLAY_UNSET failed"); |
| 267 | close(fd); |
| 268 | return -1; |
| 269 | } |
| 270 | } |
| 271 | minfo++; |
| 272 | } |
| 273 | close(fd); |
| 274 | fd = -1; |
| 275 | } |
| 276 | } |
| 277 | return 0; |
Naseer Ahmed | 29a2681 | 2012-06-14 00:56:20 -0700 | [diff] [blame] | 278 | } |
| 279 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 280 | void Overlay::dump() const { |
| 281 | if(strlen(mDumpStr)) { //dump only on state change |
Saurabh Shah | 0d0a7cb | 2013-02-12 17:58:19 -0800 | [diff] [blame] | 282 | ALOGD_IF(PIPE_DEBUG, "%s\n", mDumpStr); |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 283 | } |
| 284 | } |
| 285 | |
Saurabh Shah | 0d0a7cb | 2013-02-12 17:58:19 -0800 | [diff] [blame] | 286 | void Overlay::getDump(char *buf, size_t len) { |
| 287 | int totalPipes = 0; |
Saurabh Shah | ae61b2b | 2013-04-10 16:37:25 -0700 | [diff] [blame] | 288 | const char *str = "\nOverlay State\n\n"; |
Saurabh Shah | 0d0a7cb | 2013-02-12 17:58:19 -0800 | [diff] [blame] | 289 | strncat(buf, str, strlen(str)); |
| 290 | for(int i = 0; i < PipeBook::NUM_PIPES; i++) { |
| 291 | if(mPipeBook[i].valid()) { |
| 292 | mPipeBook[i].mPipe->getDump(buf, len); |
| 293 | char str[64] = {'\0'}; |
Saurabh Shah | ae61b2b | 2013-04-10 16:37:25 -0700 | [diff] [blame] | 294 | snprintf(str, 64, "Display=%d\n\n", mPipeBook[i].mDisplay); |
Saurabh Shah | 0d0a7cb | 2013-02-12 17:58:19 -0800 | [diff] [blame] | 295 | strncat(buf, str, strlen(str)); |
| 296 | totalPipes++; |
| 297 | } |
| 298 | } |
| 299 | char str_pipes[64] = {'\0'}; |
Saurabh Shah | ae61b2b | 2013-04-10 16:37:25 -0700 | [diff] [blame] | 300 | snprintf(str_pipes, 64, "Pipes=%d\n\n", totalPipes); |
Saurabh Shah | 0d0a7cb | 2013-02-12 17:58:19 -0800 | [diff] [blame] | 301 | strncat(buf, str_pipes, strlen(str_pipes)); |
| 302 | } |
| 303 | |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 304 | void Overlay::PipeBook::init() { |
| 305 | mPipe = NULL; |
| 306 | mDisplay = DPY_UNUSED; |
| 307 | } |
| 308 | |
| 309 | void Overlay::PipeBook::destroy() { |
| 310 | if(mPipe) { |
| 311 | delete mPipe; |
| 312 | mPipe = NULL; |
| 313 | } |
| 314 | mDisplay = DPY_UNUSED; |
| 315 | } |
| 316 | |
| 317 | Overlay* Overlay::sInstance = 0; |
Amara Venkata Mastan Manoj Kumar | 5182a78 | 2012-12-03 12:08:48 -0800 | [diff] [blame] | 318 | int Overlay::sExtFbIndex = 1; |
Saurabh Shah | 85234ec | 2013-04-12 17:09:00 -0700 | [diff] [blame] | 319 | int Overlay::sDMAMode = DMA_LINE_MODE; |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 320 | int Overlay::PipeBook::NUM_PIPES = 0; |
| 321 | int Overlay::PipeBook::sPipeUsageBitmap = 0; |
| 322 | int Overlay::PipeBook::sLastUsageBitmap = 0; |
| 323 | int Overlay::PipeBook::sAllocatedBitmap = 0; |
Sushil Chauhan | 07a2c76 | 2013-03-06 15:36:49 -0800 | [diff] [blame] | 324 | utils::eMdpPipeType Overlay::PipeBook::pipeTypeLUT[utils::OV_MAX] = |
| 325 | {utils::OV_MDP_PIPE_ANY}; |
Naseer Ahmed | 758bfc5 | 2012-11-28 17:02:08 -0500 | [diff] [blame] | 326 | |
| 327 | }; // namespace overlay |