- Timestamp:
- Dec 16, 2013 6:16:26 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r49535 r49940 212 212 }; 213 213 214 static VBoxVHWAEntriesCache g_VBoxCmdEntriesCache;215 216 214 static struct VBOXVHWACMD * vhwaHHCmdCreate(VBOXVHWACMD_TYPE type, size_t size) 217 215 { … … 312 310 { 313 311 /* @todo: resize */ 314 Assert (0);312 AssertFailed(); 315 313 } 316 314 … … 334 332 } 335 333 336 Assert (0);334 AssertFailed(); 337 335 return VBOXVHWA_SURFHANDLE_INVALID; 338 336 } … … 486 484 if (!fi.open(QIODevice::ReadOnly)) 487 485 { 488 Assert (0);486 AssertFailed(); 489 487 return VERR_GENERAL_FAILURE; 490 488 } … … 920 918 break; 921 919 default: 922 Assert (0);920 AssertFailed(); 923 921 break; 924 922 } … … 958 956 return VINF_SUCCESS; 959 957 960 Assert (0);958 AssertFailed(); 961 959 VBoxVHWAGlProgram::uninit(); 962 960 return VERR_GENERAL_FAILURE; … … 1107 1105 if(type & VBOXVHWA_PROGRAM_SRCCOLORKEY) 1108 1106 { 1109 Assert (0);1107 AssertFailed(); 1110 1108 /* disabled for now, not really necessary for video overlaying */ 1111 1109 } … … 1360 1358 break; 1361 1359 default: 1362 Assert (0);1360 AssertFailed(); 1363 1361 break; 1364 1362 } … … 1382 1380 break; 1383 1381 default: 1384 Assert (0);1382 AssertFailed(); 1385 1383 break; 1386 1384 } … … 1566 1564 VBOXQGLDBGPRINT(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d\">texture info</exec>\n", 1567 1565 pvBuf, mRect.width(), mRect.height())); 1568 Assert (0);1566 AssertFailed(); 1569 1567 1570 1568 free(pvBuf); … … 2205 2203 if(!(pCmd->SurfInfo.flags & VBOXVHWA_SD_CAPS)) 2206 2204 { 2207 Assert (0);2205 AssertFailed(); 2208 2206 pCmd->u.out.ErrInfo = -1; 2209 2207 return VINF_SUCCESS; … … 2213 2211 { 2214 2212 #ifdef DEBUGVHWASTRICT 2215 Assert (0);2213 AssertFailed(); 2216 2214 #endif 2217 2215 pCmd->u.out.ErrInfo = -1; … … 2225 2223 { 2226 2224 #ifdef DEBUG_misha 2227 Assert (0);2225 AssertFailed(); 2228 2226 #endif 2229 2227 pCmd->u.out.ErrInfo = -1; … … 2240 2238 { 2241 2239 #ifdef DEBUGVHWASTRICT 2242 Assert (0);2240 AssertFailed(); 2243 2241 #endif 2244 2242 pCmd->u.out.ErrInfo = -1; … … 2251 2249 if (!(pCmd->SurfInfo.flags & VBOXVHWA_SD_PIXELFORMAT)) 2252 2250 { 2253 Assert (0);2251 AssertFailed(); 2254 2252 pCmd->u.out.ErrInfo = -1; 2255 2253 return VINF_SUCCESS; … … 2261 2259 || pCmd->SurfInfo.PixelFormat.c.rgbBitCount != 24) 2262 2260 { 2263 Assert (0);2261 AssertFailed(); 2264 2262 pCmd->u.out.ErrInfo = -1; 2265 2263 return VINF_SUCCESS; … … 2285 2283 else 2286 2284 { 2287 Assert (0);2285 AssertFailed(); 2288 2286 pCmd->u.out.ErrInfo = -1; 2289 2287 return VINF_SUCCESS; … … 2305 2303 if(mSurfHandleTable.get(handle)) 2306 2304 { 2307 Assert (0);2305 AssertFailed(); 2308 2306 return VERR_GENERAL_FAILURE; 2309 2307 } … … 3231 3229 else 3232 3230 { 3233 Assert (0);3231 AssertFailed(); 3234 3232 } 3235 3233 … … 3791 3789 case 24: 3792 3790 #ifdef DEBUG_misha 3793 Assert (0);3791 AssertFailed(); 3794 3792 #endif 3795 3793 break; 3796 3794 case 8: 3797 3795 #ifdef DEBUG_misha 3798 Assert (0);3796 AssertFailed(); 3799 3797 #endif 3800 3798 g = b = 0; … … 3803 3801 case 1: 3804 3802 #ifdef DEBUG_misha 3805 Assert (0);3803 AssertFailed(); 3806 3804 #endif 3807 3805 r = 1; … … 3811 3809 default: 3812 3810 #ifdef DEBUG_misha 3813 Assert (0);3811 AssertFailed(); 3814 3812 #endif 3815 3813 remind = true; … … 4027 4025 break; 4028 4026 default: 4029 Assert (0);4027 AssertFailed(); 4030 4028 mBitsPerPixel = 0; 4031 4029 mBitsPerPixelTex = 0; … … 4052 4050 case 24: 4053 4051 #ifdef DEBUG_misha 4054 Assert (0);4052 AssertFailed(); 4055 4053 #endif 4056 4054 mInternalFormat = 3;//GL_RGB; … … 4063 4061 case 16: 4064 4062 #ifdef DEBUG_misha 4065 Assert (0);4063 AssertFailed(); 4066 4064 #endif 4067 4065 mInternalFormat = GL_RGB5; … … 4074 4072 case 8: 4075 4073 #ifdef DEBUG_misha 4076 Assert (0);4074 AssertFailed(); 4077 4075 #endif 4078 4076 mInternalFormat = 1;//GL_RGB; … … 4083 4081 case 1: 4084 4082 #ifdef DEBUG_misha 4085 Assert (0);4083 AssertFailed(); 4086 4084 #endif 4087 4085 mInternalFormat = 1; … … 4092 4090 default: 4093 4091 #ifdef DEBUG_misha 4094 Assert (0);4092 AssertFailed(); 4095 4093 #endif 4096 4094 mBitsPerPixel = 0; … … 4824 4822 #endif 4825 4823 default: 4826 Assert (0);4824 AssertFailed(); 4827 4825 pCmd->rc = VERR_NOT_IMPLEMENTED; 4828 4826 break; … … 4945 4943 #endif 4946 4944 default: 4947 Assert (0);4945 AssertFailed(); 4948 4946 } 4949 4947 } … … 4959 4957 4960 4958 RTListInit(&mCommandList); 4959 4960 m_pCmdEntryCache = new VBoxVHWAEntriesCache; 4961 4961 } 4962 4962 … … 4967 4967 4968 4968 RTCritSectDelete(&mCritSect); 4969 4970 delete m_pCmdEntryCache; 4969 4971 } 4970 4972 … … 4978 4980 RTCritSectEnter(&mCritSect); 4979 4981 4980 VBoxVHWACommandElement * pCmd = g_VBoxCmdEntriesCache.alloc();4982 VBoxVHWACommandElement * pCmd = m_pCmdEntryCache->alloc(); 4981 4983 if(!pCmd) 4982 4984 { … … 5079 5081 5080 5082 if (pEl) 5081 g_VBoxCmdEntriesCache.free(pEl);5083 m_pCmdEntryCache->free(pEl); 5082 5084 } 5083 5085 … … 5173 5175 case VBOXVHWA_PIPECMD_FUNC: 5174 5176 /* should not happen, don't handle this for now */ 5175 Assert (0);5177 AssertFailed(); 5176 5178 break; 5177 5179 #endif … … 5180 5182 default: 5181 5183 /* should not happen, don't handle this for now */ 5182 Assert (0);5184 AssertFailed(); 5183 5185 break; 5184 5186 } 5185 5187 5186 5188 RTListNodeRemove(&pCur->ListNode); 5187 g_VBoxCmdEntriesCache.free(pCur);5189 m_pCmdEntryCache->free(pCur); 5188 5190 } 5189 5191 … … 5260 5262 } 5261 5263 default: 5262 Assert (0);5264 AssertFailed(); 5263 5265 break; 5264 5266 } … … 5306 5308 } 5307 5309 default: 5308 Assert (0);5310 AssertFailed(); 5309 5311 break; 5310 5312 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r49535 r49940 1307 1307 }; 1308 1308 1309 class VBoxVHWAEntriesCache; 1309 1310 class VBoxVHWACommandElementProcessor 1310 1311 { … … 1331 1332 bool mbResetting; 1332 1333 uint32_t mcDisabled; 1334 VBoxVHWAEntriesCache *m_pCmdEntryCache; 1333 1335 }; 1334 1336
Note:
See TracChangeset
for help on using the changeset viewer.