equal
deleted
inserted
replaced
170 } |
170 } |
171 User::SwitchHeap(threadHeap); // switch back to client Heap |
171 User::SwitchHeap(threadHeap); // switch back to client Heap |
172 } |
172 } |
173 break; |
173 break; |
174 case 2: |
174 case 2: |
175 creationError = User::LoadLogicalDevice(_L("platsimvideohw")); |
175 creationError = User::LoadLogicalDevice(_L("guestvideohw")); |
176 if ( (KErrNone == creationError) || (KErrAlreadyExists == creationError) ) |
176 if ( (KErrNone == creationError) || (KErrAlreadyExists == creationError) ) |
177 { |
177 { |
178 creationError = iDriver->Open(); |
178 creationError = iDriver->Open(); |
179 } |
179 } |
180 break; |
180 break; |
801 |
801 |
802 // ----------------------------------------------------------------------------- |
802 // ----------------------------------------------------------------------------- |
803 // Use driver to discover base address of the frame memory. |
803 // Use driver to discover base address of the frame memory. |
804 // ----------------------------------------------------------------------------- |
804 // ----------------------------------------------------------------------------- |
805 // |
805 // |
806 EXPORT_C TInt TVghwUtils::GetFrameBufferBaseAddress( TUint32& aHWAddress ) |
806 EXPORT_C TInt CVghwUtils::GetFrameBufferBaseAddress( TUint32& aHWAddress ) |
807 { |
807 { |
808 UTIL_TRACE("TVghwUtils::GetFrameBufferBaseAddress"); |
808 UTIL_TRACE("TVghwUtils::GetFrameBufferBaseAddress"); |
809 return VghwSingleton.Driver().GetFrameBufferBaseAddress( aHWAddress ); |
809 if (!iInitialized || !iDriver) |
|
810 { |
|
811 UTIL_TRACE("CVghwUtils::GetFrameBufferBaseAddress called before initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver); |
|
812 InitStatics(); |
|
813 } |
|
814 VGHWPANIC_ASSERT(iInitialized && iDriver, EVghwPanicGraphicsDriverNotOpen); |
|
815 return iDriver->GetFrameBufferBaseAddress( aHWAddress ); |
810 } |
816 } |
811 |
817 |
812 #ifdef _DEBUG |
818 #ifdef _DEBUG |
813 static void EglErrorPrint(char* aTitle, EGLint aEglError) |
819 static void EglErrorPrint(char* aTitle, EGLint aEglError) |
814 { |
820 { |