- Timestamp:
- Nov 18, 2019 9:35:57 PM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r81964 r81971 276 276 ULONG mMemoryBalloonSize; 277 277 BOOL mPageFusionEnabled; 278 GraphicsControllerType_T mGraphicsControllerType;279 ULONG mVRAMSize;280 278 settings::RecordingSettings mRecordSettings; 281 ULONG mMonitorCount;282 279 BOOL mHWVirtExEnabled; 283 280 BOOL mHWVirtExNestedPagingEnabled; … … 287 284 BOOL mHWVirtExForceEnabled; 288 285 BOOL mHWVirtExUseNativeApi; 289 BOOL mAccelerate2DVideoEnabled;290 286 BOOL mPAEEnabled; 291 287 settings::Hardware::LongModeType mLongMode; … … 307 303 uint32_t mCpuIdPortabilityLevel; 308 304 Utf8Str mCpuProfile; 309 BOOL mAccelerate3DEnabled;310 305 BOOL mHPETEnabled; 311 306 … … 495 490 IsModified_Snapshots = 0x0800, 496 491 IsModified_BandwidthControl = 0x1000, 497 IsModified_Recording = 0x2000 492 IsModified_Recording = 0x2000, 493 IsModified_GraphicsAdapter = 0x4000, 498 494 }; 499 495 … … 508 504 ChipsetType_T i_getChipsetType() const { return mHWData->mChipsetType; } 509 505 FirmwareType_T i_getFirmwareType() const { return mHWData->mFirmwareType; } 510 ULONG i_getMonitorCount() const { return mHWData->mMonitorCount; }511 506 ParavirtProvider_T i_getParavirtProvider() const { return mHWData->mParavirtProvider; } 512 507 Utf8Str i_getParavirtDebug() const { return mHWData->mParavirtDebug; } -
trunk/src/VBox/Main/src-server/GraphicsAdapterImpl.cpp
r81970 r81971 200 200 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 201 201 202 mParent->i_setModified(Machine::IsModified_ MachineData);202 mParent->i_setModified(Machine::IsModified_GraphicsAdapter); 203 203 mData.backup(); 204 204 mData->graphicsControllerType = aGraphicsControllerType; … … 230 230 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 231 231 232 mParent->i_setModified(Machine::IsModified_ MachineData);232 mParent->i_setModified(Machine::IsModified_GraphicsAdapter); 233 233 mData.backup(); 234 234 mData->ulVRAMSizeMB = aVRAMSize; … … 256 256 /** @todo check validity! */ 257 257 258 mParent->i_setModified(Machine::IsModified_ MachineData);258 mParent->i_setModified(Machine::IsModified_GraphicsAdapter); 259 259 mData.backup(); 260 260 mData->fAccelerate3D = !!aAccelerate3DEnabled; … … 288 288 /** @todo check validity! */ 289 289 290 mParent->i_setModified(Machine::IsModified_ MachineData);290 mParent->i_setModified(Machine::IsModified_GraphicsAdapter); 291 291 mData.backup(); 292 292 mData->fAccelerate2DVideo = !!aAccelerate2DVideoEnabled; … … 318 318 if (FAILED(adep.rc())) return adep.rc(); 319 319 320 mParent->i_setModified(Machine::IsModified_ MachineData);320 mParent->i_setModified(Machine::IsModified_GraphicsAdapter); 321 321 mData.backup(); 322 322 mData->cMonitors = aMonitorCount; -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r81964 r81971 175 175 mMemoryBalloonSize = 0; 176 176 mPageFusionEnabled = false; 177 mGraphicsControllerType = GraphicsControllerType_VBoxVGA;178 mVRAMSize = 8;179 mAccelerate3DEnabled = false;180 mAccelerate2DVideoEnabled = false;181 mMonitorCount = 1;182 177 mHWVirtExEnabled = true; 183 178 mHWVirtExNestedPagingEnabled = true; … … 11724 11719 mRecordingSettings->i_rollback(); 11725 11720 11726 if (mGraphicsAdapter )11721 if (mGraphicsAdapter && (mData->flModifications & IsModified_GraphicsAdapter)) 11727 11722 mGraphicsAdapter->i_rollback(); 11728 11723 … … 11730 11725 mVRDEServer->i_rollback(); 11731 11726 11732 if (mAudioAdapter )11727 if (mAudioAdapter && (mData->flModifications & IsModified_AudioAdapter)) 11733 11728 mAudioAdapter->i_rollback(); 11734 11729 … … 15265 15260 if (FAILED(rc)) return rc; 15266 15261 15267 rc = osType->COMGETTER(RecommendedGraphicsController)(&mHWData->mGraphicsControllerType); 15262 /* Graphics stuff. */ 15263 GraphicsControllerType_T graphicsController; 15264 rc = osType->COMGETTER(RecommendedGraphicsController)(&graphicsController); 15268 15265 if (FAILED(rc)) return rc; 15269 15266 15270 rc = osType->COMGETTER(RecommendedVRAM)(&mHWData->mVRAMSize);15267 rc = mGraphicsAdapter->COMSETTER(GraphicsControllerType)(graphicsController); 15271 15268 if (FAILED(rc)) return rc; 15272 15269 15273 rc = osType->COMGETTER(Recommended2DVideoAcceleration)(&mHWData->mAccelerate2DVideoEnabled); 15270 ULONG vramSize; 15271 rc = osType->COMGETTER(RecommendedVRAM)(&vramSize); 15274 15272 if (FAILED(rc)) return rc; 15275 15273 15276 rc = osType->COMGETTER(Recommended3DAcceleration)(&mHWData->mAccelerate3DEnabled); 15274 rc = mGraphicsAdapter->COMSETTER(VRAMSize)(vramSize); 15275 if (FAILED(rc)) return rc; 15276 15277 BOOL fAccelerate2DVideoEnabled; 15278 rc = osType->COMGETTER(Recommended2DVideoAcceleration)(&fAccelerate2DVideoEnabled); 15279 if (FAILED(rc)) return rc; 15280 15281 rc = mGraphicsAdapter->COMSETTER(Accelerate2DVideoEnabled)(fAccelerate2DVideoEnabled); 15282 if (FAILED(rc)) return rc; 15283 15284 BOOL fAccelerate3DEnabled; 15285 rc = osType->COMGETTER(Recommended3DAcceleration)(&fAccelerate3DEnabled); 15286 if (FAILED(rc)) return rc; 15287 15288 rc = mGraphicsAdapter->COMSETTER(Accelerate3DEnabled)(fAccelerate3DEnabled); 15277 15289 if (FAILED(rc)) return rc; 15278 15290 -
trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
r78072 r81971 636 636 int RecordingSettings::i_syncToMachineDisplays(void) 637 637 { 638 AssertPtr(m->pMachine); 639 ComPtr<IGraphicsAdapter> pGraphicsAdapter; 640 m->pMachine->COMGETTER(GraphicsAdapter)(pGraphicsAdapter.asOutParam()); 641 ULONG cMonitors = 0; 642 if (!pGraphicsAdapter.isNull()) 643 pGraphicsAdapter->COMGETTER(MonitorCount)(&cMonitors); 644 638 645 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 639 640 AssertPtr(m->pMachine);641 const ULONG cMonitors = m->pMachine->i_getMonitorCount();642 646 643 647 LogFlowThisFunc(("cMonitors=%RU32\n", cMonitors));
Note:
See TracChangeset
for help on using the changeset viewer.