holdingarea/serialization/Graphics/KhronosAPIWrapper/src/eglapiwrapper.cpp
branchbug235_bringup_0
changeset 30 f204b762818d
parent 24 a3f46bb01be2
equal deleted inserted replaced
29:2fcf0803a8bd 30:f204b762818d
    32 
    32 
    33 EGLAPIWrapper::EGLAPIWrapper( RemoteFunctionCallData& currentFunctionCallData, 
    33 EGLAPIWrapper::EGLAPIWrapper( RemoteFunctionCallData& currentFunctionCallData, 
    34 	APIWrapperStack* stack, 
    34 	APIWrapperStack* stack, 
    35 	void* result, 
    35 	void* result, 
    36 	MGraphicsVHWCallback* serviceIf, 
    36 	MGraphicsVHWCallback* serviceIf, 
    37 	void* framebuffer,
    37 	void* surfacebuffer,
    38 	KhronosAPIWrapper* aAPIWrapper ):
    38 	KhronosAPIWrapper* aAPIWrapper ):
    39 	APIWrapper( currentFunctionCallData, stack, result, serviceIf ),
    39 	APIWrapper( currentFunctionCallData, stack, result, serviceIf ),
    40 	m_currentFunctionCall( m_currentFunctionCallData ),
    40 	m_currentFunctionCall( m_currentFunctionCallData ),
    41 	m_frameBuffer( framebuffer ),
    41 	m_surfaceBuffer( surfacebuffer ),
    42 	m_APIWrapper( aAPIWrapper )
    42 	m_APIWrapper( aAPIWrapper )
    43 {
    43 {
    44     TRACE("EGLAPIWrapper::EGLAPIWrapper()\n");
    44     TRACE("EGLAPIWrapper::EGLAPIWrapper()\n");
    45 }
    45 }
    46 
    46 
   836     m_currentFunctionCall.GetEGLint( height, 4 );
   836     m_currentFunctionCall.GetEGLint( height, 4 );
   837     m_currentFunctionCall.GetEGLint( stride, 5 );
   837     m_currentFunctionCall.GetEGLint( stride, 5 );
   838     m_currentFunctionCall.GetEGLint( buffer0Offset, 6 );
   838     m_currentFunctionCall.GetEGLint( buffer0Offset, 6 );
   839     m_currentFunctionCall.GetEGLint( buffer1Offset, 7 );
   839     m_currentFunctionCall.GetEGLint( buffer1Offset, 7 );
   840 
   840 
   841     void* buffer0 = (void*)((EGLint)m_frameBuffer + buffer0Offset);
   841     void* buffer0 = (void*)((EGLint)m_surfaceBuffer + buffer0Offset);
   842     void* buffer1 = (void*)((EGLint)m_frameBuffer + buffer1Offset);
   842     void* buffer1 = (void*)((EGLint)m_surfaceBuffer + buffer1Offset);
   843 
   843 
   844 	::eglPlatsimSetSurfaceParams(display, surface, width, height, stride, buffer0, buffer1);
   844 	::eglPlatsimSetSurfaceParams(display, surface, width, height, stride, buffer0, buffer1);
   845 	m_currentFunctionCall.SetReturnValue( 0 );
   845 	m_currentFunctionCall.SetReturnValue( 0 );
   846 	TRACE("EGLAPIWrapper::eglPlatsimSetSurfaceParams() <-\n");
   846 	TRACE("EGLAPIWrapper::eglPlatsimSetSurfaceParams() <-\n");
   847     return WriteReply();
   847     return WriteReply();