Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: tests/ppapi_example_2d/ppapi_example_2d.stdin

Issue 6452010: Remove the x-ppapi-nacl-srpc and x-nacl-srpc mime types in favor of the singl... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # First register a bunch of dummy replays with zero count 1 # First register a bunch of dummy replays with zero count
2 # so that those signatures will get registered during "install_upcalls" 2 # so that those signatures will get registered during "install_upcalls"
3 # Note: because of the zero count we do not have to get the parameters right 3 # Note: because of the zero count we do not have to get the parameters right
4 # 4 #
5 # Enumerating all known methods ahead of time helps in many ways: 5 # Enumerating all known methods ahead of time helps in many ways:
6 # * we can delay registering non zero count replays till later which help 6 # * we can delay registering non zero count replays till later which help
7 # readability 7 # readability
8 # * we get an error if for some reason the nexe calls one of these functions. 8 # * we get an error if for some reason the nexe calls one of these functions.
9 # Sadly, the nexe usually fails silently when a method is missing from a 9 # Sadly, the nexe usually fails silently when a method is missing from a
10 # service 10 # service
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 echo "*** INIT MODULE" 111 echo "*** INIT MODULE"
112 replay 1 PPB_GetInterface:s:i s("PPB_Core;0.3") * i(1) 112 replay 1 PPB_GetInterface:s:i s("PPB_Core;0.3") * i(1)
113 replay 1 PPB_GetInterface:s:i s("PPB_Instance;0.4") * i(1) 113 replay 1 PPB_GetInterface:s:i s("PPB_Instance;0.4") * i(1)
114 replay 1 PPB_GetInterface:s:i s("PPB_ImageData;0.3") * i(1) 114 replay 1 PPB_GetInterface:s:i s("PPB_ImageData;0.3") * i(1)
115 replay 1 PPB_GetInterface:s:i s("PPB_Graphics2D;0.3") * i(1) 115 replay 1 PPB_GetInterface:s:i s("PPB_Graphics2D;0.3") * i(1)
116 rpc PPP_InitializeModule i(0) ${MODULE} h(pepper_desc) s("${service_string}") * i(0) i(0) 116 rpc PPP_InitializeModule i(0) ${MODULE} h(pepper_desc) s("${service_string}") * i(0) i(0)
117 117
118 echo 118 echo
119 echo "*** INIT INSTANCE" 119 echo "*** INIT INSTANCE"
120 set_variable TAGS C(23,id\000name\000src\000style\000type\000) 120 set_variable TAGS C(23,id\000name\000src\000style\000type\000)
121 set_variable VALUES C(85,naclModule\000naclModule\000ppapi.nexe\000background-co lor:gray\000application/x-ppapi-nacl-srpc\000) 121 set_variable VALUES C(74,naclModule\000naclModule\000ppapi.nexe\000background-co lor:gray\000application/x-nacl\000)
122 122
123 # The PPP_GetInterface() call is probably not necessary, we just emulate what 123 # The PPP_GetInterface() call is probably not necessary, we just emulate what
124 # happens in real life 124 # happens in real life
125 rpc PPP_GetInterface s("PPP_Instance;0.4") * i(0) 125 rpc PPP_GetInterface s("PPP_Instance;0.4") * i(0)
126 rpc PPP_Instance_DidCreate ${INSTANCE} i(5) ${TAGS} ${VALUES} * i(0) 126 rpc PPP_Instance_DidCreate ${INSTANCE} i(5) ${TAGS} ${VALUES} * i(0)
127 127
128 echo 128 echo
129 echo "*** SETTTING UP VIDEO MEMORY" 129 echo "*** SETTTING UP VIDEO MEMORY"
130 sysv video_handle video_address 65536 130 sysv video_handle video_address 65536
131 memset ${video_address} 0 ${IMG_SIZE} 0 131 memset ${video_address} 0 ${IMG_SIZE} 0
132 checksum ${video_address} 0 ${IMG_SIZE} 132 checksum ${video_address} 0 ${IMG_SIZE}
133 133
134 echo 134 echo
135 echo "*** TRIGGER REPAINT" 135 echo "*** TRIGGER REPAINT"
136 replay 1 PPB_ImageData_Create:iiCi:i ${INSTANCE} i(0) ${IMG_FMT} i(1) * ${IMG_HA NDLE} 136 replay 1 PPB_ImageData_Create:iiCi:i ${INSTANCE} i(0) ${IMG_FMT} i(1) * ${IMG_HA NDLE}
137 replay 1 PPB_ImageData_Describe:i:Chii ${IMG_HANDLE} * ${IMG_FMT2} h(video_handl e) i(${IMG_SIZE}) i(1) 137 replay 1 PPB_ImageData_Describe:i:Chii ${IMG_HANDLE} * ${IMG_FMT2} h(video_handl e) i(${IMG_SIZE}) i(1)
138 replay 1 PPB_Graphics2D_Create:iCi:i ${INSTANCE} ${GRAPHICS_FMT} i(0) * ${GRAPHI CS_HANLDE} 138 replay 1 PPB_Graphics2D_Create:iCi:i ${INSTANCE} ${GRAPHICS_FMT} i(0) * ${GRAPHI CS_HANLDE}
139 replay 1 PPB_Instance_BindGraphics:ii:i ${INSTANCE} ${GRAPHICS_HANLDE} * i(1) 139 replay 1 PPB_Instance_BindGraphics:ii:i ${INSTANCE} ${GRAPHICS_HANLDE} * i(1)
140 replay 1 PPB_Graphics2D_ReplaceContents:ii: ${GRAPHICS_HANLDE} ${IMG_HANDLE} * 140 replay 1 PPB_Graphics2D_ReplaceContents:ii: ${GRAPHICS_HANLDE} ${IMG_HANDLE} *
141 replay 1 PPB_Graphics2D_Flush:ii:i ${GRAPHICS_HANLDE} i(1) * i(-1) 141 replay 1 PPB_Graphics2D_Flush:ii:i ${GRAPHICS_HANLDE} i(1) * i(-1)
142 replay 1 ReleaseResourceMultipleTimes:ii: ${IMG_HANDLE} i(1) * 142 replay 1 ReleaseResourceMultipleTimes:ii: ${IMG_HANDLE} i(1) *
143 rpc PPP_Instance_DidChangeView ${INSTANCE} I(4,8,79,400,400) I(4,0,0,400,400) * 143 rpc PPP_Instance_DidChangeView ${INSTANCE} I(4,8,79,400,400) I(4,0,0,400,400) *
144 144
145 echo 145 echo
146 echo "*** CHECKING MEMORY" 146 echo "*** CHECKING MEMORY"
147 checksum ${video_address} 0 ${IMG_SIZE} 147 checksum ${video_address} 0 ${IMG_SIZE}
148 148
149 rpc PPP_ShutdownModule * 149 rpc PPP_ShutdownModule *
OLDNEW
« no previous file with comments | « tests/ppapi_example_2d/ppapi_example_2d.html ('k') | tests/ppapi_example_audio/ppapi_example_audio.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698