OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="release-notes"> | 3 <section id="release-notes"> |
4 <span id="sdk-release-notes"></span><h1 id="release-notes"><span id="sdk-release
-notes"></span>Release Notes</h1> | 4 <span id="sdk-release-notes"></span><h1 id="release-notes"><span id="sdk-release
-notes"></span>Release Notes</h1> |
5 <section id="chrome-pepper-33-branched-on-16-december-2013"> | 5 <section id="chrome-pepper-35-31-mar-2014"> |
6 <h2 id="chrome-pepper-33-branched-on-16-december-2013">Chrome/Pepper 33 (branche
d on 16 December 2013)</h2> | 6 <h2 id="chrome-pepper-35-31-mar-2014">Chrome/Pepper 35 (31 Mar 2014)</h2> |
| 7 <section id="pnacl"> |
| 8 <h3 id="pnacl">PNaCl</h3> |
| 9 <ul class="small-gap"> |
| 10 <li>Upgraded LLVM to version 3.4.</li> |
| 11 <li>Translation now uses dynamic load balancing.</li> |
| 12 <li>Unstable pexes (i.e. non-finalized) with debug information can be loaded by |
| 13 Chrome, simplifying debugging with PNaCl. See <a class="reference internal" href
="/native-client/devguide/devcycle/debugging.html#debugging-pnacl-pexes"><em>Deb
ugging PNaCl pexes</em></a></li> |
| 14 </ul> |
| 15 </section></section><section id="chrome-pepper-34-20-feb-2014"> |
| 16 <h2 id="chrome-pepper-34-20-feb-2014">Chrome/Pepper 34 (20 Feb 2014)</h2> |
| 17 <section id="pepper"> |
| 18 <h3 id="pepper">Pepper</h3> |
| 19 <ul class="small-gap"> |
| 20 <li>Filesystems can now be passed from JavaScript to NaCl. The resulting |
| 21 <code>pp::Var</code> will contain a <code>pp::Resource</code> that can be given
to the |
| 22 <code>pp::FileSystem</code> constructor.</li> |
| 23 <li>New Audio and Video input APIs have been added as dev interfaces. See |
| 24 <a class="reference external" href="/native-client/pepper_dev/cpp/classpp_1_1_me
dia_stream_audio_track">pp::MediaStreamAudioTrack</a> and |
| 25 <a class="reference external" href="/native-client/pepper_dev/cpp/classpp_1_1_me
dia_stream_video_track">pp::MediaStreamVideoTrack</a> for |
| 26 more details.</li> |
| 27 </ul> |
| 28 </section><section id="id1"> |
| 29 <h3 id="id1">PNaCl</h3> |
| 30 <ul class="small-gap"> |
| 31 <li>Parallel translation: at least 1.6x faster, even with older pexes.</li> |
| 32 <li>Intelligent abbreviations in the bitcode: 20% reduction in binary size.</li> |
| 33 </ul> |
| 34 </section></section><section id="chrome-pepper-33-16-dec-2013"> |
| 35 <h2 id="chrome-pepper-33-16-dec-2013">Chrome/Pepper 33 (16 Dec 2013)</h2> |
7 <section id="portable-native-client"> | 36 <section id="portable-native-client"> |
8 <h3 id="portable-native-client">Portable Native Client</h3> | 37 <h3 id="portable-native-client">Portable Native Client</h3> |
9 <ul class="small-gap"> | 38 <ul class="small-gap"> |
10 <li>PNaCl’s default C++ standard library is now LLVM’s own libc++, b
ased on | 39 <li>PNaCl’s default C++ standard library is now LLVM’s own libc++, b
ased on |
11 LLVM 3.3. This library now supports optional <code>setjmp</code>/<code>longjmp</
code> exception | 40 LLVM 3.3. This library now supports optional <code>setjmp</code>/<code>longjmp</
code> exception |
12 handling (see <a class="reference external" href="https://groups.google.com/foru
m/#!topic/native-client-discuss/0spfg6O04FM">announcement</a> | 41 handling (see <a class="reference external" href="https://groups.google.com/foru
m/#!topic/native-client-discuss/0spfg6O04FM">announcement</a> |
13 for details).</li> | 42 for details).</li> |
14 </ul> | 43 </ul> |
15 </section><section id="sdk"> | 44 </section><section id="sdk"> |
16 <h3 id="sdk">SDK</h3> | 45 <h3 id="sdk">SDK</h3> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 <li>Common makefiles, including <code>tools/common.mk</code>, can now handle sou
rce files | 157 <li>Common makefiles, including <code>tools/common.mk</code>, can now handle sou
rce files |
129 located outside of an application’s root directory. For example, a Makefil
e | 158 located outside of an application’s root directory. For example, a Makefil
e |
130 for an application can specify a source file to compile such as | 159 for an application can specify a source file to compile such as |
131 <code>../../some/other/place.cpp</code>.</li> | 160 <code>../../some/other/place.cpp</code>.</li> |
132 </ul> | 161 </ul> |
133 </section></section><section id="pepper-26-29-march-2013"> | 162 </section></section><section id="pepper-26-29-march-2013"> |
134 <h2 id="pepper-26-29-march-2013">Pepper 26 (29 March 2013)</h2> | 163 <h2 id="pepper-26-29-march-2013">Pepper 26 (29 March 2013)</h2> |
135 <p>The Pepper 26 bundle includes a new HTTP filesystem type in the nacl_mounts | 164 <p>The Pepper 26 bundle includes a new HTTP filesystem type in the nacl_mounts |
136 library (which has been renamed nacl_io), changes to the example Makefiles, a | 165 library (which has been renamed nacl_io), changes to the example Makefiles, a |
137 simple new 3D example, and a threaded file IO example.</p> | 166 simple new 3D example, and a threaded file IO example.</p> |
138 <section id="id1"> | 167 <section id="id2"> |
139 <h3 id="id1">Build tools and toolchains</h3> | 168 <h3 id="id2">Build tools and toolchains</h3> |
140 <ul class="small-gap"> | 169 <ul class="small-gap"> |
141 <li><p class="first">Makefiles have been changed significantly:</p> | 170 <li><p class="first">Makefiles have been changed significantly:</p> |
142 <ul class="small-gap"> | 171 <ul class="small-gap"> |
143 <li>Build commands are now specified in a number of common files | 172 <li>Build commands are now specified in a number of common files |
144 (<code>tools/*.mk</code>), which are included in the Makefiles in the examples.<
/li> | 173 (<code>tools/*.mk</code>), which are included in the Makefiles in the examples.<
/li> |
145 <li>By default, make displays a simplified list of build steps (e.g., <code>CC | 174 <li>By default, make displays a simplified list of build steps (e.g., <code>CC |
146 newlib/Debug/hello_world_x86_32.o</code>) rather than the actual build commands. | 175 newlib/Debug/hello_world_x86_32.o</code>) rather than the actual build commands. |
147 To see the actual build commands, run <code>make V=1</code>.</li> | 176 To see the actual build commands, run <code>make V=1</code>.</li> |
148 <li>By default, most examples are built using one toolchain (newlib) and one | 177 <li>By default, most examples are built using one toolchain (newlib) and one |
149 configuration (Debug). To build an example using a different toolchain or | 178 configuration (Debug). To build an example using a different toolchain or |
150 configuration, run <code>make</code> with the parameters <code>TOOLCHAIN=<x&g
t;</code> or | 179 configuration, run <code>make</code> with the parameters <code>TOOLCHAIN=<x&g
t;</code> or |
151 <code>CONFIG=<y></code>. You can also run make <code>all_versions</code>
to build an example | 180 <code>CONFIG=<y></code>. You can also run make <code>all_versions</code>
to build an example |
152 with all toolchains.</li> | 181 with all toolchains.</li> |
153 </ul> | 182 </ul> |
154 </li> | 183 </li> |
155 <li>Header files have been moved out of the toolchains. All toolchains now share | 184 <li>Header files have been moved out of the toolchains. All toolchains now share |
156 the same set of header files as host builds. Previously host and NaCl builds | 185 the same set of header files as host builds. Previously host and NaCl builds |
157 used different headers, which could cause build problems.</li> | 186 used different headers, which could cause build problems.</li> |
158 </ul> | 187 </ul> |
159 </section><section id="id2"> | 188 </section><section id="id3"> |
160 <h3 id="id2">Libraries</h3> | 189 <h3 id="id3">Libraries</h3> |
161 <ul class="small-gap"> | 190 <ul class="small-gap"> |
162 <li>The nacl_mounts library has been renamed <strong>nacl_io</strong>, and has b
een expanded | 191 <li>The nacl_mounts library has been renamed <strong>nacl_io</strong>, and has b
een expanded |
163 with a new type of mount, httpfs, which can be used to read URLs via HTTP. | 192 with a new type of mount, httpfs, which can be used to read URLs via HTTP. |
164 For details see <code>include/nacl_io/nacl_io.h</code>, as well as the | 193 For details see <code>include/nacl_io/nacl_io.h</code>, as well as the |
165 <code>hello_nacl_io</code> example.</li> | 194 <code>hello_nacl_io</code> example.</li> |
166 </ul> | 195 </ul> |
167 </section><section id="id3"> | 196 </section><section id="id4"> |
168 <h3 id="id3">Examples</h3> | 197 <h3 id="id4">Examples</h3> |
169 <ul class="small-gap"> | 198 <ul class="small-gap"> |
170 <li>A new example, <strong>hello_world_instance3d</strong>, has been added to de
monstrate a | 199 <li>A new example, <strong>hello_world_instance3d</strong>, has been added to de
monstrate a |
171 simplified 3D app.</li> | 200 simplified 3D app.</li> |
172 <li>The <strong>file_io</strong> example has been rewritten to do all file opera
tions on a | 201 <li>The <strong>file_io</strong> example has been rewritten to do all file opera
tions on a |
173 thread. The example demonstrates how to use the MessageLoop API and blocking | 202 thread. The example demonstrates how to use the MessageLoop API and blocking |
174 callbacks on a thread.</li> | 203 callbacks on a thread.</li> |
175 </ul> | 204 </ul> |
176 </section><section id="general"> | 205 </section><section id="general"> |
177 <h3 id="general">General</h3> | 206 <h3 id="general">General</h3> |
178 <ul class="small-gap"> | 207 <ul class="small-gap"> |
179 <li>Old bundles (<code>pepper_20</code> and earlier) have been removed from the
Native | 208 <li>Old bundles (<code>pepper_20</code> and earlier) have been removed from the
Native |
180 Client SDK Manifest, and will no longer be updated by the <code>naclsdk</code> | 209 Client SDK Manifest, and will no longer be updated by the <code>naclsdk</code> |
181 command.</li> | 210 command.</li> |
182 </ul> | 211 </ul> |
183 </section></section><section id="pepper-25-21-december-2012"> | 212 </section></section><section id="pepper-25-21-december-2012"> |
184 <h2 id="pepper-25-21-december-2012">Pepper 25 (21 December 2012)</h2> | 213 <h2 id="pepper-25-21-december-2012">Pepper 25 (21 December 2012)</h2> |
185 <p>The Pepper 25 bundle features an ARM toolchain to build Native Client modules | 214 <p>The Pepper 25 bundle features an ARM toolchain to build Native Client modules |
186 for ARM devices, two new Pepper APIs (including the MessageLoop API, which lets | 215 for ARM devices, two new Pepper APIs (including the MessageLoop API, which lets |
187 you make Pepper calls on background threads), two new libraries (nacl_mounts, | 216 you make Pepper calls on background threads), two new libraries (nacl_mounts, |
188 which provides a virtual file system that you can use with standard C file | 217 which provides a virtual file system that you can use with standard C file |
189 operations, and ppapi_main, which lets you implement a Native Client module | 218 operations, and ppapi_main, which lets you implement a Native Client module |
190 using a simple ppapi_main function), and two new examples that demonstrate how | 219 using a simple ppapi_main function), and two new examples that demonstrate how |
191 to use the nacl_mounts and ppapi_main libraries.</p> | 220 to use the nacl_mounts and ppapi_main libraries.</p> |
192 <section id="id4"> | 221 <section id="id5"> |
193 <h3 id="id4">Build tools and toolchains</h3> | 222 <h3 id="id5">Build tools and toolchains</h3> |
194 <ul class="small-gap"> | 223 <ul class="small-gap"> |
195 <li><p class="first">The SDK includes a new toolchain to build Native Client exe
cutables (.nexe | 224 <li><p class="first">The SDK includes a new toolchain to build Native Client exe
cutables (.nexe |
196 files) for <strong>ARM devices</strong>.</p> | 225 files) for <strong>ARM devices</strong>.</p> |
197 <ul class="small-gap"> | 226 <ul class="small-gap"> |
198 <li>Currently the ARM toolchain can only be used to compile modules that use | 227 <li>Currently the ARM toolchain can only be used to compile modules that use |
199 the <a class="reference internal" href="/native-client/devguide/devcycle/dynamic
-loading.html#c-libraries"><em>newlib C library</em></a>. You cannot use the ARM
toolchain | 228 the <a class="reference internal" href="/native-client/devguide/devcycle/dynamic
-loading.html#c-libraries"><em>newlib C library</em></a>. You cannot use the ARM
toolchain |
200 to compile modules that use the glibc library.</li> | 229 to compile modules that use the glibc library.</li> |
201 <li>The ARM toolchain is in the directory | 230 <li>The ARM toolchain is in the directory |
202 <code>pepper_25/toolchain/<host>_arm_newlib</code>. The bin subdirectory
contains | 231 <code>pepper_25/toolchain/<host>_arm_newlib</code>. The bin subdirectory
contains |
203 the compiler (<code>arm-nacl-gcc</code>), the linker (<code>arm-nacl-g++</code>)
, and the | 232 the compiler (<code>arm-nacl-gcc</code>), the linker (<code>arm-nacl-g++</code>)
, and the |
(...skipping 17 matching lines...) Expand all Loading... |
221 lets your module log messages to the JavaScript console in the Chrome browser.</
li> | 250 lets your module log messages to the JavaScript console in the Chrome browser.</
li> |
222 <li>The <a class="reference external" href="https://developers.google.com/native
-client/dev/peppercpp/classpp_1_1_message_loop">MessageLoop</a> | 251 <li>The <a class="reference external" href="https://developers.google.com/native
-client/dev/peppercpp/classpp_1_1_message_loop">MessageLoop</a> |
223 API lets your module make PPAPI calls on a background thread. Once you’ve | 252 API lets your module make PPAPI calls on a background thread. Once you’ve |
224 created a message loop resource, attached it to a thread, and run it, you can | 253 created a message loop resource, attached it to a thread, and run it, you can |
225 post work to the thread, including completion callbacks for asynchronous | 254 post work to the thread, including completion callbacks for asynchronous |
226 operations. For a C++ example of how to use the MessageLoop API, | 255 operations. For a C++ example of how to use the MessageLoop API, |
227 see <code>pepper_25/include/ppapi/utility/threading/simple_thread.h</code>. Note
that | 256 see <code>pepper_25/include/ppapi/utility/threading/simple_thread.h</code>. Note
that |
228 you cannot make asynchronous PPAPI calls on a background thread without | 257 you cannot make asynchronous PPAPI calls on a background thread without |
229 creating and using a message loop.</li> | 258 creating and using a message loop.</li> |
230 </ul> | 259 </ul> |
231 </section><section id="id5"> | 260 </section><section id="id6"> |
232 <h3 id="id5">Libraries</h3> | 261 <h3 id="id6">Libraries</h3> |
233 <p>The SDK includes two new libraries:</p> | 262 <p>The SDK includes two new libraries:</p> |
234 <ul class="small-gap"> | 263 <ul class="small-gap"> |
235 <li><p class="first">The <strong>nacl_mounts</strong> library provides a virtual
file system that your module | 264 <li><p class="first">The <strong>nacl_mounts</strong> library provides a virtual
file system that your module |
236 can “mount” in a given directory tree. The file system can be one of
several | 265 can “mount” in a given directory tree. The file system can be one of
several |
237 types:</p> | 266 types:</p> |
238 <ul class="small-gap"> | 267 <ul class="small-gap"> |
239 <li>“memfs” is an in-memory file system,</li> | 268 <li>“memfs” is an in-memory file system,</li> |
240 <li>“dev” is a file system with various utility nodes (e.g., <code>/
dev/null</code>, | 269 <li>“dev” is a file system with various utility nodes (e.g., <code>/
dev/null</code>, |
241 <code>/dev/console[0-3]</code>, <code>/dev/tty</code>), and</li> | 270 <code>/dev/console[0-3]</code>, <code>/dev/tty</code>), and</li> |
242 <li>“html5fs” is a persistent file system.</li> | 271 <li>“html5fs” is a persistent file system.</li> |
(...skipping 13 matching lines...) Expand all Loading... |
256 providing a familiar C programming environment. With this library, your | 285 providing a familiar C programming environment. With this library, your |
257 module can have a simple entry point called ppapi_main(), which is similar to | 286 module can have a simple entry point called ppapi_main(), which is similar to |
258 the standard C main() function, complete with argc and argv[] parameters. | 287 the standard C main() function, complete with argc and argv[] parameters. |
259 Your module can also use standard C functions such as printf(), fopen(), and | 288 Your module can also use standard C functions such as printf(), fopen(), and |
260 fwrite(). For details see include/ppapi_main/ppapi_main.h. For an example of | 289 fwrite(). For details see include/ppapi_main/ppapi_main.h. For an example of |
261 how to use ppapi_main, see examples/hello_world_stdio.</li> | 290 how to use ppapi_main, see examples/hello_world_stdio.</li> |
262 </ul> | 291 </ul> |
263 <p>Header files for the new libraries are in the <code>include/</code> directory
, source | 292 <p>Header files for the new libraries are in the <code>include/</code> directory
, source |
264 files are in the <code>src/</code> directory, and compiled libraries are in the
<code>lib/</code> | 293 files are in the <code>src/</code> directory, and compiled libraries are in the
<code>lib/</code> |
265 directory.</p> | 294 directory.</p> |
266 </section><section id="id6"> | 295 </section><section id="id7"> |
267 <h3 id="id6">Examples</h3> | 296 <h3 id="id7">Examples</h3> |
268 <ul class="small-gap"> | 297 <ul class="small-gap"> |
269 <li><p class="first">The SDK includes two new examples:</p> | 298 <li><p class="first">The SDK includes two new examples:</p> |
270 <ul class="small-gap"> | 299 <ul class="small-gap"> |
271 <li><strong>hello_nacl_mounts</strong> illustrates how to use standard C library
file | 300 <li><strong>hello_nacl_mounts</strong> illustrates how to use standard C library
file |
272 operations in a Native Client module through the use of the nacl_mounts | 301 operations in a Native Client module through the use of the nacl_mounts |
273 library.</li> | 302 library.</li> |
274 <li><strong>hello_world_stdio</strong> illustrates how to implement a Native Cli
ent module | 303 <li><strong>hello_world_stdio</strong> illustrates how to implement a Native Cli
ent module |
275 with a ppapi_main() function, and how to write to STDOUT and STDERR in a | 304 with a ppapi_main() function, and how to write to STDOUT and STDERR in a |
276 module, through the use of the nacl_mounts and ppapi_main libraries. This | 305 module, through the use of the nacl_mounts and ppapi_main libraries. This |
277 example makes it easy for new users to get started with Native Client by | 306 example makes it easy for new users to get started with Native Client by |
(...skipping 21 matching lines...) Expand all Loading... |
299 <li>The hello_world_stdio example includes a simplified Makefile that only lists | 328 <li>The hello_world_stdio example includes a simplified Makefile that only lists |
300 source dependencies, and invokes the build rules in a separate file | 329 source dependencies, and invokes the build rules in a separate file |
301 (common.mk).</li> | 330 (common.mk).</li> |
302 </ul> | 331 </ul> |
303 </section></section><section id="pepper-24-5-december-2012"> | 332 </section></section><section id="pepper-24-5-december-2012"> |
304 <h2 id="pepper-24-5-december-2012">Pepper 24 (5 December 2012)</h2> | 333 <h2 id="pepper-24-5-december-2012">Pepper 24 (5 December 2012)</h2> |
305 <p>The Pepper 24 bundle features a new, experimental toolchain called PNaCl (sho
rt | 334 <p>The Pepper 24 bundle features a new, experimental toolchain called PNaCl (sho
rt |
306 for “Portable Native Client”), a new library (pthreads-win32) for th
e Windows | 335 for “Portable Native Client”), a new library (pthreads-win32) for th
e Windows |
307 SDK, and an expanded list of attributes for Pepper 3D contexts that lets | 336 SDK, and an expanded list of attributes for Pepper 3D contexts that lets |
308 applications specify a GPU preference for low power or performance.</p> | 337 applications specify a GPU preference for low power or performance.</p> |
309 <section id="id7"> | 338 <section id="id8"> |
310 <h3 id="id7">Build tools and toolchains</h3> | 339 <h3 id="id8">Build tools and toolchains</h3> |
311 <ul class="small-gap"> | 340 <ul class="small-gap"> |
312 <li>The SDK includes a new, experimental toolchain called <a class="reference ex
ternal" href="http://nativeclient.googlecode.com/svn/data/site/pnacl.pdf">PNaCl<
/a> (pronounced | 341 <li>The SDK includes a new, experimental toolchain called <a class="reference ex
ternal" href="http://nativeclient.googlecode.com/svn/data/site/pnacl.pdf">PNaCl<
/a> (pronounced |
313 “pinnacle”). The PNaCl toolchain produces architecture-independent e
xecutable | 342 “pinnacle”). The PNaCl toolchain produces architecture-independent e
xecutable |
314 files (.pexe files). Chrome doesn’t yet support .pexe files directly, but
if | 343 files (.pexe files). Chrome doesn’t yet support .pexe files directly, but
if |
315 you want to experiment with this early preview of PNaCl, the toolchain | 344 you want to experiment with this early preview of PNaCl, the toolchain |
316 includes a tool to translate .pexe files into architecture-specific .nexe | 345 includes a tool to translate .pexe files into architecture-specific .nexe |
317 files. Take a look at the <code>hello_world</code> example to see how to build a
.pexe | 346 files. Take a look at the <code>hello_world</code> example to see how to build a
.pexe |
318 file and translate it into multiple .nexe files. Note that PNaCl is currently | 347 file and translate it into multiple .nexe files. Note that PNaCl is currently |
319 restricted to the newlib C standard library – if your application uses glibc, | 348 restricted to the newlib C standard library – if your application uses glibc, |
320 you can’t build it with PNaCl.</li> | 349 you can’t build it with PNaCl.</li> |
321 <li>The <code>create_nmf.py</code> script uses ELF headers (rather than file nam
es) to | 350 <li>The <code>create_nmf.py</code> script uses ELF headers (rather than file nam
es) to |
322 determine the architecture of .nexe files. That means you can change the | 351 determine the architecture of .nexe files. That means you can change the |
323 names of your .nexe files and <code>create_nmf.py</code> will still be able to | 352 names of your .nexe files and <code>create_nmf.py</code> will still be able to |
324 generate the appropriate Native Client manifest file for your application.</li> | 353 generate the appropriate Native Client manifest file for your application.</li> |
325 </ul> | 354 </ul> |
326 </section><section id="id8"> | 355 </section><section id="id10"> |
327 <h3 id="id8">Examples</h3> | 356 <h3 id="id10">Examples</h3> |
328 <ul class="small-gap"> | 357 <ul class="small-gap"> |
329 <li>The SDK examples now build with four toolchains: the glibc and newlib | 358 <li>The SDK examples now build with four toolchains: the glibc and newlib |
330 toolchains, the experimental PNaCl toolchain, and the hosted toolchain on | 359 toolchains, the experimental PNaCl toolchain, and the hosted toolchain on |
331 your development machine. Within each toolchain build, each example also | 360 your development machine. Within each toolchain build, each example also |
332 builds both a debug and a release version.</li> | 361 builds both a debug and a release version.</li> |
333 <li>The example Makefiles use dependency (.d) files to enable incremental builds
.</li> | 362 <li>The example Makefiles use dependency (.d) files to enable incremental builds
.</li> |
334 <li>The pong example has been cleaned up and modified to run more smoothly. The | 363 <li>The pong example has been cleaned up and modified to run more smoothly. The |
335 drawing function is now set up as the Flush() callback, which allows 2D | 364 drawing function is now set up as the Flush() callback, which allows 2D |
336 drawing to occur as quickly as possible.</li> | 365 drawing to occur as quickly as possible.</li> |
337 </ul> | 366 </ul> |
338 </section><section id="id9"> | 367 </section><section id="id11"> |
339 <h3 id="id9">PPAPI</h3> | 368 <h3 id="id11">PPAPI</h3> |
340 <ul class="small-gap"> | 369 <ul class="small-gap"> |
341 <li>When creating a 3D rendering context, the <a class="reference external" href
="https://developers.google.com/native-client/dev/pepperc/group___enums#ga7df48e
1c55f6401beea2a1b9c07967e8">attribute list</a> | 370 <li>When creating a 3D rendering context, the <a class="reference external" href
="https://developers.google.com/native-client/dev/pepperc/group___enums#ga7df48e
1c55f6401beea2a1b9c07967e8">attribute list</a> |
342 for the context can specify whether to prefer low power or performance for | 371 for the context can specify whether to prefer low power or performance for |
343 the GPU. Contexts with a low power preference may be created on an integrated | 372 the GPU. Contexts with a low power preference may be created on an integrated |
344 GPU; contexts with a performance preference may be created on a discrete GPU.</l
i> | 373 GPU; contexts with a performance preference may be created on a discrete GPU.</l
i> |
345 </ul> | 374 </ul> |
346 </section><section id="windows-sdk"> | 375 </section><section id="windows-sdk"> |
347 <h3 id="windows-sdk">Windows SDK</h3> | 376 <h3 id="windows-sdk">Windows SDK</h3> |
348 <ul class="small-gap"> | 377 <ul class="small-gap"> |
349 <li>The Windows SDK includes the pthreads-win32 library to assist in porting fro
m | 378 <li>The Windows SDK includes the pthreads-win32 library to assist in porting fro
m |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 <ul class="small-gap"> | 434 <ul class="small-gap"> |
406 <li>Look at the example Makefiles or run <code>make</code> in the example direct
ories to | 435 <li>Look at the example Makefiles or run <code>make</code> in the example direct
ories to |
407 see the commands and flags used to build modules as Pepper plugins.</li> | 436 see the commands and flags used to build modules as Pepper plugins.</li> |
408 <li>Run <code>make LAUNCH</code> in the example directories to see how to use th
e | 437 <li>Run <code>make LAUNCH</code> in the example directories to see how to use th
e |
409 <code>--register-pepper-plugins</code> argument to load a Pepper plugin in Chrom
e. | 438 <code>--register-pepper-plugins</code> argument to load a Pepper plugin in Chrom
e. |
410 Note that you must set the <code>CHROME_PATH</code> environment variable and sta
rt a | 439 Note that you must set the <code>CHROME_PATH</code> environment variable and sta
rt a |
411 <a class="reference internal" href="/native-client/devguide/devcycle/running.htm
l#web-server"><em>local server</em></a> prior to running this command.</li> | 440 <a class="reference internal" href="/native-client/devguide/devcycle/running.htm
l#web-server"><em>local server</em></a> prior to running this command.</li> |
412 </ul> | 441 </ul> |
413 </li> | 442 </li> |
414 </ul> | 443 </ul> |
415 </section><section id="id10"> | 444 </section><section id="id12"> |
416 <h3 id="id10">Examples</h3> | 445 <h3 id="id12">Examples</h3> |
417 <ul class="small-gap"> | 446 <ul class="small-gap"> |
418 <li>On Linux and Windows systems, most of the examples now build with three | 447 <li>On Linux and Windows systems, most of the examples now build with three |
419 toolchains: the Native Client glibc and newlib toolchains, and the native | 448 toolchains: the Native Client glibc and newlib toolchains, and the native |
420 toolchain on the host system. Modules built with the native toolchain on the | 449 toolchain on the host system. Modules built with the native toolchain on the |
421 host system can only run as Pepper plugins.</li> | 450 host system can only run as Pepper plugins.</li> |
422 <li>All examples in the SDK now comply with version 2 of the Chrome Web Store | 451 <li>All examples in the SDK now comply with version 2 of the Chrome Web Store |
423 <a class="reference external" href="http://developer.chrome.com/extensions/manif
est.html">manifest file format</a>. By default, | 452 <a class="reference external" href="http://developer.chrome.com/extensions/manif
est.html">manifest file format</a>. By default, |
424 applications that use version 2 of the manifest file format apply a strict | 453 applications that use version 2 of the manifest file format apply a strict |
425 <a class="reference external" href="http://developer.chrome.com/extensions/conte
ntSecurityPolicy.html">content security policy</a>, which | 454 <a class="reference external" href="http://developer.chrome.com/extensions/conte
ntSecurityPolicy.html">content security policy</a>, which |
426 includes a restriction against inline JavaScript. This restriction prohibits | 455 includes a restriction against inline JavaScript. This restriction prohibits |
427 both inline <code><script></code> blocks and inline event handlers (e.g.,
<code><button | 456 both inline <code><script></code> blocks and inline event handlers (e.g.,
<code><button |
428 onclick="..."></code>). See <a class="reference external" href="ht
tp://developer.chrome.com/extensions/manifestVersion.html">Manifest Version</a>
for a list of | 457 onclick="..."></code>). See <a class="reference external" href="ht
tp://developer.chrome.com/extensions/manifestVersion.html">Manifest Version</a>
for a list of |
429 changes between version 1 and version 2 of the manifest file format, and a | 458 changes between version 1 and version 2 of the manifest file format, and a |
430 support schedule for applications that use version 1.</li> | 459 support schedule for applications that use version 1.</li> |
431 </ul> | 460 </ul> |
432 </section><section id="id11"> | 461 </section><section id="id13"> |
433 <h3 id="id11">PPAPI</h3> | 462 <h3 id="id13">PPAPI</h3> |
434 <ul class="small-gap"> | 463 <ul class="small-gap"> |
435 <li><a class="reference external" href="https://developers.google.com/native-cli
ent/pepper23/pepperc/group___enums#ga21b811ac0484a214a8751aa3e1c959d9">PP_InputE
vent_Modifier</a> | 464 <li><a class="reference external" href="https://developers.google.com/native-cli
ent/pepper23/pepperc/group___enums#ga21b811ac0484a214a8751aa3e1c959d9">PP_InputE
vent_Modifier</a> |
436 has two new enum values (_ISLEFT and _ISRIGHT).</li> | 465 has two new enum values (_ISLEFT and _ISRIGHT).</li> |
437 <li>The memory leak in the <a class="reference external" href="https://developer
s.google.com/native-client/pepper23/pepperc/struct_p_p_b___web_socket__1__0">Web
Socket</a> | 466 <li>The memory leak in the <a class="reference external" href="https://developer
s.google.com/native-client/pepper23/pepperc/struct_p_p_b___web_socket__1__0">Web
Socket</a> |
438 API has been fixed.</li> | 467 API has been fixed.</li> |
439 </ul> | 468 </ul> |
440 </section></section><section id="pepper-22-22-august-2012"> | 469 </section></section><section id="pepper-22-22-august-2012"> |
441 <h2 id="pepper-22-22-august-2012">Pepper 22 (22 August 2012)</h2> | 470 <h2 id="pepper-22-22-august-2012">Pepper 22 (22 August 2012)</h2> |
442 <p>The Pepper 22 bundle includes a <strong>command-line debugger</strong>, resou
rces to enable | 471 <p>The Pepper 22 bundle includes a <strong>command-line debugger</strong>, resou
rces to enable |
443 <strong>hosted development on Windows</strong>, and changes to the example Makef
iles (each | 472 <strong>hosted development on Windows</strong>, and changes to the example Makef
iles (each |
444 example now builds both a debug and a release version).</p> | 473 example now builds both a debug and a release version).</p> |
445 <section id="id12"> | 474 <section id="id14"> |
446 <h3 id="id12">Tools</h3> | 475 <h3 id="id14">Tools</h3> |
447 <ul class="small-gap"> | 476 <ul class="small-gap"> |
448 <li>The SDK now includes a <strong>command-line debugger</strong> that you can u
se to debug | 477 <li>The SDK now includes a <strong>command-line debugger</strong> that you can u
se to debug |
449 Native Client modules. See <a class="reference internal" href="/native-client/de
vguide/devcycle/debugging.html#devcycle-debugging"><em>Debugging with nacl-gdb</
em></a> for instructions on how to use this debugger. For now, | 478 Native Client modules. See <a class="reference internal" href="/native-client/de
vguide/devcycle/debugging.html#devcycle-debugging"><em>Debugging with nacl-gdb</
em></a> for instructions on how to use this debugger. For now, |
450 nacl-gdb only works on 64-bit Windows, 64-bit Linux, and 32-bit Linux | 479 nacl-gdb only works on 64-bit Windows, 64-bit Linux, and 32-bit Linux |
451 systems. Support for Mac and 32-bit Windows systems will be added soon.</li> | 480 systems. Support for Mac and 32-bit Windows systems will be added soon.</li> |
452 </ul> | 481 </ul> |
453 </section><section id="id13"> | 482 </section><section id="id15"> |
454 <h3 id="id13">Windows SDK</h3> | 483 <h3 id="id15">Windows SDK</h3> |
455 <ul class="small-gap"> | 484 <ul class="small-gap"> |
456 <li><p class="first">Developers using the Windows SDK can now <strong>build a mo
dule as a Pepper | 485 <li><p class="first">Developers using the Windows SDK can now <strong>build a mo
dule as a Pepper |
457 plugin</strong> (sometimes called a “trusted” or “in-process&#
8221; plugin) using the | 486 plugin</strong> (sometimes called a “trusted” or “in-process&#
8221; plugin) using the |
458 native C/C++ compiler on their development system. In essence this makes | 487 native C/C++ compiler on their development system. In essence this makes |
459 developing a Native Client module a two-step process:</p> | 488 developing a Native Client module a two-step process:</p> |
460 <ol class="arabic simple"> | 489 <ol class="arabic simple"> |
461 <li>Build the module into a DLL using your system’s C/C++ compiler. Test a
nd | 490 <li>Build the module into a DLL using your system’s C/C++ compiler. Test a
nd |
462 debug the DLL using the tools in your normal development environment.</li> | 491 debug the DLL using the tools in your normal development environment.</li> |
463 <li>Build the module into a .nexe using the compiler from one of the Native | 492 <li>Build the module into a .nexe using the compiler from one of the Native |
464 Client toolchains in the SDK (nacl-gcc or nacl-g++). Test and debug the | 493 Client toolchains in the SDK (nacl-gcc or nacl-g++). Test and debug the |
(...skipping 27 matching lines...) Expand all Loading... |
492 <strong>Note:</strong> It’s also possible to build a module as a trusted p
lugin on Mac and | 521 <strong>Note:</strong> It’s also possible to build a module as a trusted p
lugin on Mac and |
493 Linux systems, but doing so requires more work because the SDK does not yet | 522 Linux systems, but doing so requires more work because the SDK does not yet |
494 include the above resources (library source files and pre-built libraries) | 523 include the above resources (library source files and pre-built libraries) |
495 for Mac and Linux systems. To build and debug a trusted plugin on Mac and | 524 for Mac and Linux systems. To build and debug a trusted plugin on Mac and |
496 Linux systems, you need to <a class="reference external" href="http://dev.chromi
um.org/developers/how-tos/get-the-code">get the Chromium code</a> and then follo
w | 525 Linux systems, you need to <a class="reference external" href="http://dev.chromi
um.org/developers/how-tos/get-the-code">get the Chromium code</a> and then follo
w |
497 the <a class="reference external" href="http://www.chromium.org/nativeclient/how
-tos/debugging-documentation/debugging-a-trusted-plugin/trusted-debugging-on-mac
">Mac instructions</a> | 526 the <a class="reference external" href="http://www.chromium.org/nativeclient/how
-tos/debugging-documentation/debugging-a-trusted-plugin/trusted-debugging-on-mac
">Mac instructions</a> |
498 or <a class="reference external" href="http://www.chromium.org/nativeclient/how-
tos/debugging-documentation/debugging-a-trusted-plugin/debugging-a-trusted-plugi
n-on-linux">Linux instructions</a>. | 527 or <a class="reference external" href="http://www.chromium.org/nativeclient/how-
tos/debugging-documentation/debugging-a-trusted-plugin/debugging-a-trusted-plugi
n-on-linux">Linux instructions</a>. |
499 In the future, the SDK will include resources for hosted development on Mac | 528 In the future, the SDK will include resources for hosted development on Mac |
500 and Linux as well as Windows. | 529 and Linux as well as Windows. |
501 </aside> | 530 </aside> |
502 </section><section id="id14"> | 531 </section><section id="id16"> |
503 <h3 id="id14">Examples</h3> | 532 <h3 id="id16">Examples</h3> |
504 <ul class="small-gap"> | 533 <ul class="small-gap"> |
505 <li>Each example in the SDK now builds both a debug and a release version. As | 534 <li>Each example in the SDK now builds both a debug and a release version. As |
506 before, most examples also build newlib and glibc versions, which means that | 535 before, most examples also build newlib and glibc versions, which means that |
507 there are now four versions for each example. Take a look at the Makefiles in | 536 there are now four versions for each example. Take a look at the Makefiles in |
508 the examples to see the compiler flags that are used for debug and release | 537 the examples to see the compiler flags that are used for debug and release |
509 versions. For a description of those flags, see <a class="reference internal" hr
ef="/native-client/devguide/devcycle/building.html#compile-flags"><em>Compile fl
ags for | 538 versions. For a description of those flags, see <a class="reference internal" hr
ef="/native-client/devguide/devcycle/building.html#compile-flags"><em>Compile fl
ags for |
510 different development scenarios</em></a>.</li> | 539 different development scenarios</em></a>.</li> |
511 <li>Comments have been added to common.js, which is used in all the examples. Th
e | 540 <li>Comments have been added to common.js, which is used in all the examples. Th
e |
512 JavaScript in common.js inserts an <embed> element that loads the NaCl mod
ule | 541 JavaScript in common.js inserts an <embed> element that loads the NaCl mod
ule |
513 in each example’s web page, attaches event listeners to monitor the loadin
g | 542 in each example’s web page, attaches event listeners to monitor the loadin
g |
514 of the module, and implements handleMessage() to respond to messages sent | 543 of the module, and implements handleMessage() to respond to messages sent |
515 from the NaCl module to the JavaScript side of the application</li> | 544 from the NaCl module to the JavaScript side of the application</li> |
516 </ul> | 545 </ul> |
517 </section><section id="id15"> | 546 </section><section id="id17"> |
518 <h3 id="id15">PPAPI</h3> | 547 <h3 id="id17">PPAPI</h3> |
519 <ul class="small-gap"> | 548 <ul class="small-gap"> |
520 <li>The <code>CompletionCallbackFactory</code> class template now takes a thread
traits | 549 <li>The <code>CompletionCallbackFactory</code> class template now takes a thread
traits |
521 class as its second parameter. For details see the <a class="reference external"
href="https://developers.google.com/native-client/pepper22/peppercpp/classpp_1_
1_completion_callback_factory#details">CompletionCallbackFactory | 550 class as its second parameter. For details see the <a class="reference external"
href="https://developers.google.com/native-client/pepper22/peppercpp/classpp_1_
1_completion_callback_factory#details">CompletionCallbackFactory |
522 class template reference</a>.</li> | 551 class template reference</a>.</li> |
523 </ul> | 552 </ul> |
524 </section></section></section> | 553 </section></section></section> |
525 | 554 |
526 {{/partials.standard_nacl_article}} | 555 {{/partials.standard_nacl_article}} |
OLD | NEW |