Home | History | Annotate | Download | only in libhwcomposer

Lines Matching refs:mCurrentFrame

66     if(mCurrentFrame.layerCount > MAX_NUM_APP_LAYERS)
73 "fbCount:%2d \n", mCurrentFrame.layerCount,
74 mCurrentFrame.mdpCount, mCurrentFrame.fbCount);
76 (mCurrentFrame.needsRedraw? "YES" : "NO"),
77 mCurrentFrame.mdpCount, sMaxPipesPerMixer);
96 for(int index = 0; index < mCurrentFrame.layerCount; index++ )
99 (mCurrentFrame.isFBComposed[index] ? "YES" : "NO"),
100 mCurrentFrame.layerToMDP[index],
101 (mCurrentFrame.isFBComposed[index] ?
102 (mCurrentFrame.drop[index] ? "DROP" :
103 (mCurrentFrame.needsRedraw ? "GLES" : "CACHE")) : "MDP"),
104 (mCurrentFrame.isFBComposed[index] ? mCurrentFrame.fbZ :
105 mCurrentFrame.mdpToLayer[mCurrentFrame.layerToMDP[index]].pipeInfo->zOrder));
192 mCurrentFrame.reset(numLayers);
196 memset(&mCurrentFrame.drop, 0, sizeof(mCurrentFrame.drop));
197 mCurrentFrame.dropCount = 0;
265 if(!mCurrentFrame.isFBComposed[index]) {
272 if(!mCurrentFrame.needsRedraw || mCurrentFrame.drop[index]) {
281 mCurrentFrame.needsRedraw = false;
282 if(!mCachedFrame.isSameFrame(mCurrentFrame, list) ||
285 mCurrentFrame.needsRedraw = true;
533 mCurrentFrame.drop[i] = true;
534 mCurrentFrame.dropCount++;
543 mCurrentFrame.drop[i] = true;
544 mCurrentFrame.dropCount++;
550 memset(&mCurrentFrame.drop, 0, sizeof(mCurrentFrame.drop));
551 mCurrentFrame.dropCount = 0;
633 mCurrentFrame.drop[i] = true;
634 mCurrentFrame.dropCount++;
646 mCurrentFrame.drop[i] = true;
647 mCurrentFrame.dropCount++;
652 memset(&mCurrentFrame.drop, 0, sizeof(mCurrentFrame.drop));
653 mCurrentFrame.dropCount = 0;
852 if(not mCurrentFrame.drop[i] and
868 mCurrentFrame.fbCount = 0;
869 memcpy(&mCurrentFrame.isFBComposed, &mCurrentFrame.drop,
870 sizeof(mCurrentFrame.isFBComposed));
871 mCurrentFrame.mdpCount = mCurrentFrame.layerCount - mCurrentFrame.fbCount -
872 mCurrentFrame.dropCount;
908 isYuvPresent(ctx, mDpy) || mCurrentFrame.dropCount ||
1079 mCurrentFrame.mdpCount = numAppLayers;
1080 mCurrentFrame.fbCount = 0;
1081 mCurrentFrame.fbZ = -1;
1085 mCurrentFrame.isFBComposed[j] = false;
1087 mCurrentFrame.mdpCount--;
1088 mCurrentFrame.drop[j] = true;
1157 mCurrentFrame.reset(numAppLayers);
1158 updateLayerCache(ctx, list, mCurrentFrame);
1162 if(!mCurrentFrame.isFBComposed[i]) {
1173 updateYUV(ctx, list, false /*secure only*/, mCurrentFrame);
1183 int mdpCount = mCurrentFrame.mdpCount;
1218 const int numNonDroppedLayers = numAppLayers - mCurrentFrame.dropCount;
1229 if(mCurrentFrame.drop[i]) {
1244 mCurrentFrame.dropCount);
1260 mCurrentFrame.reset(numAppLayers);
1267 if(mCurrentFrame.drop[i]) {
1270 mCurrentFrame.isFBComposed[i] = false;
1274 mCurrentFrame.fbZ = mdpBatchSize;
1275 mCurrentFrame.fbCount = fbBatchSize;
1276 mCurrentFrame.mdpCount = mdpBatchSize;
1280 mCurrentFrame.dropCount);
1331 mCurrentFrame.reset(numAppLayers);
1332 mCurrentFrame.fbCount -= mCurrentFrame.dropCount;
1333 updateYUV(ctx, list, secureOnly, mCurrentFrame);
1334 int mdpCount = mCurrentFrame.mdpCount;
1348 if(mCurrentFrame.fbCount)
1349 mCurrentFrame.fbZ = mCurrentFrame.mdpCount;
1396 mCurrentFrame.reset(numAppLayers);
1397 mCurrentFrame.fbCount -= mCurrentFrame.dropCount;
1399 updateYUV(ctx, list, secureOnly, mCurrentFrame);
1403 if(mCurrentFrame.mdpCount == 0) {
1491 if(mCurrentFrame.isFBComposed[i] && !mCurrentFrame.drop[i]) {
1506 if(!mCurrentFrame.isFBComposed[i]) {
1522 while (i < mCurrentFrame.layerCount) {
1530 while(i < mCurrentFrame.layerCount) {
1531 if(!mCurrentFrame.isFBComposed[i]) {
1540 if(mCurrentFrame.drop[i]) {
1610 if(mCurrentFrame.fbCount == 0) {
1615 if(mCurrentFrame.mdpCount == 0) {
1622 for(int i = 0; i < mCurrentFrame.layerCount; i++) {
1625 mCurrentFrame.isFBComposed[i]){
1626 if(!mCurrentFrame.drop[i]){
1632 mCurrentFrame.isFBComposed[i] = false;
1638 mCurrentFrame.fbZ = fbZ;
1639 mCurrentFrame.fbCount = maxBatchCount;
1640 mCurrentFrame.mdpCount = mCurrentFrame.layerCount -
1641 mCurrentFrame.fbCount - mCurrentFrame.dropCount;
1644 mCurrentFrame.fbCount);
1679 mCurrentFrame.dropCount++;
1680 mCurrentFrame.drop[i] = true;
1683 mCurrentFrame.fbCount -= mCurrentFrame.dropCount;
1684 mCurrentFrame.mdpCount = mCurrentFrame.layerCount -
1685 mCurrentFrame.fbCount - mCurrentFrame.dropCount;
1687 __FUNCTION__, mCurrentFrame.fbCount, mCurrentFrame.mdpCount,
1688 mCurrentFrame.dropCount);
1698 if(mCurrentFrame.drop[nYuvIndex]) {
1730 if(!mCurrentFrame.isFBComposed[nSecureRGBIndex]) {
1731 mCurrentFrame.isFBComposed[nSecureRGBIndex] = true;
1732 mCurrentFrame.fbCount++;
1735 if(mCurrentFrame.isFBComposed[nSecureRGBIndex]) {
1736 mCurrentFrame.isFBComposed[nSecureRGBIndex] = false;
1737 mCurrentFrame.fbCount--;
1742 mCurrentFrame.mdpCount = mCurrentFrame.layerCount -
1743 mCurrentFrame.fbCount - mCurrentFrame.dropCount;
1745 mCurrentFrame.fbCount);
1753 for(int i = 0; i < mCurrentFrame.layerCount; i++ ) {
1754 if(mCurrentFrame.isFBComposed[i] && !mCurrentFrame.drop[i]) {
1780 if(mCurrentFrame.fbZ >= 0) {
1782 if(!ctx->mFBUpdate[mDpy]->prepare(ctx, list, fbRect, mCurrentFrame.fbZ))
1790 mCurrentFrame.map();
1797 for (int index = 0, mdpNextZOrder = 0; index < mCurrentFrame.layerCount;
1799 if(!mCurrentFrame.isFBComposed[index]) {
1800 int mdpIndex = mCurrentFrame.layerToMDP[index];
1804 if(mdpNextZOrder == mCurrentFrame.fbZ) {
1807 MdpPipeInfo* cur_pipe = mCurrentFrame.mdpToLayer[mdpIndex].pipeInfo;
1813 mCurrentFrame.mdpToLayer[mdpIndex])
1824 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){
1844 const bool fbUsed = mCurrentFrame.fbCount;
1845 if(mCurrentFrame.mdpCount > sMaxPipesPerMixer - fbUsed) {
1852 for (int index = 0; index < mCurrentFrame.layerCount; index++) {
1853 if(!mCurrentFrame.isFBComposed[index]) {
1876 for(int i = 0; i < mCurrentFrame.layerCount; ++i) {
1877 if(!mCurrentFrame.isFBComposed[i] &&
1890 for(int i = 0; i < mCurrentFrame.layerCount-1; ++i) {
1892 if(!mCurrentFrame.isFBComposed[i] &&
1896 for(int j = i+1; j < mCurrentFrame.layerCount; ++j) {
1898 if(!mCurrentFrame.isFBComposed[j] &&
1917 frame.reset(mCurrentFrame.layerCount);
1966 mCurrentFrame.reset(numLayers);
1967 memset(&mCurrentFrame.drop, 0, sizeof(mCurrentFrame.drop));
1968 mCurrentFrame.dropCount = 0;
1985 mCurrentFrame.needsRedraw = false;
1987 mCurrentFrame.needsRedraw = true;
1991 mCachedFrame.updateCounts(mCurrentFrame);
2006 mCurrentFrame.needsRedraw = false;
2008 mCachedFrame.updateCounts(mCurrentFrame);
2031 memset(&mCurrentFrame.drop, 0, sizeof(mCurrentFrame.drop));
2032 mCurrentFrame.dropCount = 0;
2042 ctx->copybitDrop[i] = mCurrentFrame.drop[i];
2062 mCachedFrame.updateCounts(mCurrentFrame);
2069 int mdpIndex = mCurrentFrame.layerToMDP[index];
2070 PipeLayerPair& info = mCurrentFrame.mdpToLayer[mdpIndex];
2119 if(mCurrentFrame.fbZ >= 0) {
2120 for (int index = 0, mdpNextZOrder = 0; index < mCurrentFrame.layerCount;
2122 if(!mCurrentFrame.isFBComposed[index]) {
2123 if(mdpNextZOrder == mCurrentFrame.fbZ) {
2130 if(mdpNextZOrder <= mCurrentFrame.fbZ)
2131 mCurrentFrame.fbZ += 1;
2135 mCurrentFrame.mdpCount++;
2162 for(int index = 0; index < mCurrentFrame.layerCount; index++) {
2164 if(mCurrentFrame.isFBComposed[index]) continue;
2174 int mdpIndex = mCurrentFrame.layerToMDP[index];
2175 PipeLayerPair& info = mCurrentFrame.mdpToLayer[mdpIndex];
2224 for(int i = 0; i < numHwLayers && mCurrentFrame.mdpCount; i++ )
2226 if(mCurrentFrame.isFBComposed[i]) continue;
2240 int mdpIndex = mCurrentFrame.layerToMDP[i];
2245 *(MdpYUVPipeInfo*)mCurrentFrame.mdpToLayer[mdpIndex].pipeInfo;
2246 Rotator *rot = mCurrentFrame.mdpToLayer[mdpIndex].rot;
2280 *(MdpPipeInfoNonSplit*)mCurrentFrame.mdpToLayer[mdpIndex].pipeInfo;
2304 Rotator *rot = mCurrentFrame.mdpToLayer[mdpIndex].rot;
2331 if(mCurrentFrame.fbZ >= 0) {
2332 for (int index = 0, mdpNextZOrder = 0; index < mCurrentFrame.layerCount;
2334 if(!mCurrentFrame.isFBComposed[index]) {
2335 if(mdpNextZOrder == mCurrentFrame.fbZ) {
2344 mCurrentFrame.mdpCount += 1;
2346 if(mdpNextZOrder <= mCurrentFrame.fbZ)
2347 mCurrentFrame.fbZ += 1;
2394 for(int index = 0 ; index < mCurrentFrame.layerCount; index++) {
2396 if(mCurrentFrame.isFBComposed[index]) continue;
2409 int mdpIndex = mCurrentFrame.layerToMDP[index];
2410 PipeLayerPair& info = mCurrentFrame.mdpToLayer[mdpIndex];
2474 for(int i = 0; i < numHwLayers && mCurrentFrame.mdpCount; i++ )
2476 if(mCurrentFrame.isFBComposed[i]) continue;
2489 int mdpIndex = mCurrentFrame.layerToMDP[i];
2494 *(MdpYUVPipeInfo*)mCurrentFrame.mdpToLayer[mdpIndex].pipeInfo;
2495 Rotator *rot = mCurrentFrame.mdpToLayer[mdpIndex].rot;
2529 *(MdpPipeInfoSplit*)mCurrentFrame.mdpToLayer[mdpIndex].pipeInfo;
2530 Rotator *rot = mCurrentFrame.mdpToLayer[mdpIndex].rot;