guestrendering/vghwutils/src/vghwutils.cpp
branchbug235_bringup_0
changeset 30 f204b762818d
parent 9 0af9dd6c2c3a
equal deleted inserted replaced
29:2fcf0803a8bd 30:f204b762818d
   798 	{
   798 	{
   799 	return iGlesEglContext;
   799 	return iGlesEglContext;
   800 	}
   800 	}
   801 
   801 
   802 // -----------------------------------------------------------------------------
   802 // -----------------------------------------------------------------------------
   803 // Use driver to discover base address of the frame memory.
   803 // Use driver to discover base address of the surface memory.
   804 // -----------------------------------------------------------------------------
   804 // -----------------------------------------------------------------------------
   805 //	  
   805 //	  
   806 EXPORT_C TInt CVghwUtils::GetFrameBufferBaseAddress( TUint32& aHWAddress )
   806 EXPORT_C TInt CVghwUtils::GetSurfaceBufferBaseAddress( TUint32& aHWAddress )
   807 	{
   807 	{
   808 	UTIL_TRACE("TVghwUtils::GetFrameBufferBaseAddress");
   808 	UTIL_TRACE("CVghwUtils::GetSurfaceBufferBaseAddress");
   809 	if (!iInitialized || !iDriver)
   809 	if (!iInitialized || !iDriver)
   810 		{
   810 		{
   811 		UTIL_TRACE("CVghwUtils::GetFrameBufferBaseAddress called before initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
   811 		UTIL_TRACE("CVghwUtils::GetSurfaceBufferBaseAddress called before initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
   812 		InitStatics();
   812 		InitStatics();
   813 		}
   813 		}
   814 	VGHWPANIC_ASSERT(iInitialized && iDriver, EVghwPanicGraphicsDriverNotOpen);
   814 	VGHWPANIC_ASSERT(iInitialized && iDriver, EVghwPanicGraphicsDriverNotOpen);
   815 	return iDriver->GetFrameBufferBaseAddress( aHWAddress );
   815 	return iDriver->GetSurfaceBufferBaseAddress( aHWAddress );
   816 	}
   816 	}
   817 
   817 
   818 #ifdef _DEBUG
   818 #ifdef _DEBUG
   819 static void EglErrorPrint(char* aTitle, EGLint aEglError)
   819 static void EglErrorPrint(char* aTitle, EGLint aEglError)
   820 	{
   820 	{