graphicshwdrivers/surfacemgr/test/src/tsecondprocess.cpp
branchbug235_bringup_0
changeset 147 af143508cc47
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
--- a/graphicshwdrivers/surfacemgr/test/src/tsecondprocess.cpp	Fri Aug 13 15:11:40 2010 +0100
+++ b/graphicshwdrivers/surfacemgr/test/src/tsecondprocess.cpp	Fri Aug 13 15:24:50 2010 +0100
@@ -20,7 +20,6 @@
  @test
  @internalComponent - Internal Symbian test code
 */
-
 #include <e32base.h>
 #include <e32cons.h>
 #include <e32test.h>
@@ -313,15 +312,15 @@
 	{	
 	// Set attributes for the surface - these are expected attributes in the second process
 	RSurfaceManager::TSurfaceCreationAttributesBuf buf;
-	RSurfaceManager::TSurfaceCreationAttributes& attributes=buf();
-	attributes.iSize = TSize(200,200);
-	attributes.iBuffers = 1;				
-	attributes.iPixelFormat = EUidPixelFormatARGB_1555;		
-	attributes.iStride = 415;				
-	attributes.iOffsetToFirstBuffer = 80;	
-	attributes.iAlignment = 8;			
-	attributes.iContiguous=ETrue;
-	
+	RSurfaceManager::TSurfaceCreationAttributes& attributes=buf();				
+    attributes.iSize = TSize(100,100);
+    attributes.iBuffers = 1;                // number of buffers in the surface
+    attributes.iPixelFormat = EUidPixelFormatYUV_422SemiPlanar;     // 2bpp
+    attributes.iStride = 400;               // Number of bytes between start of one line and start of next
+    attributes.iOffsetToFirstBuffer = 0;    // way of reserving space before the surface pixel data
+    attributes.iAlignment = 2;          // alignment, 1,2,4,8,16,32,64 byte aligned or EPageAligned
+    attributes.iContiguous=ETrue;
+		
 	RSurfaceManager::THintPair hints[2];	// two hint pairs specified
 	attributes.iHintCount = 2;
 	attributes.iSurfaceHints = hints;