egl/egltest/src/egltest_image_multiprocess.cpp
changeset 187 9f66f99ee56f
parent 103 2717213c588a
child 160 969102054596
equal deleted inserted replaced
103:2717213c588a 187:9f66f99ee56f
  1466 		TSize bitmapSize = bitmap->SizeInPixels();
  1466 		TSize bitmapSize = bitmap->SizeInPixels();
  1467     	TUint8* address = reinterpret_cast<TUint8*>(bitmap->DataAddress());
  1467     	TUint8* address = reinterpret_cast<TUint8*>(bitmap->DataAddress());
  1468     	TInt stride = bitmap->DataStride();
  1468     	TInt stride = bitmap->DataStride();
  1469     	address += (bitmapSize.iHeight - 1) * stride;
  1469     	address += (bitmapSize.iHeight - 1) * stride;
  1470     	vgWritePixels(address, -stride, iSurfaceFormat, 0,0, bitmapSize.iWidth, bitmapSize.iHeight);
  1470     	vgWritePixels(address, -stride, iSurfaceFormat, 0,0, bitmapSize.iWidth, bitmapSize.iHeight);
       
  1471    	    eglWaitClient();   // wait for writing to finish
  1471 		delete bitmap;
  1472 		delete bitmap;
  1472 		bitmap = NULL;
  1473 		bitmap = NULL;
  1473 		ASSERT_TRUE(vgGetError()==VG_NO_ERROR);
  1474 		ASSERT_TRUE(vgGetError()==VG_NO_ERROR);
  1474 
  1475 
  1475     	// Make no surface current and destroy surface
  1476     	// Make no surface current and destroy surface