equal
deleted
inserted
replaced
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 |