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, making translation time faster.
</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.7x faster, even with older pexes.</li> |
| 32 <li>Intelligent abbreviations in the bitcode: 20% reduction in binary size using |
| 33 the <a class="reference internal" href="/native-client/devguide/devcycle/buildin
g.html#pnacl-compress"><em>pnacl-compress</em></a> tool.</li> |
| 34 </ul> |
| 35 </section></section><section id="chrome-pepper-33-16-dec-2013"> |
| 36 <h2 id="chrome-pepper-33-16-dec-2013">Chrome/Pepper 33 (16 Dec 2013)</h2> |
7 <section id="portable-native-client"> | 37 <section id="portable-native-client"> |
8 <h3 id="portable-native-client">Portable Native Client</h3> | 38 <h3 id="portable-native-client">Portable Native Client</h3> |
9 <ul class="small-gap"> | 39 <ul class="small-gap"> |
10 <li>PNaCl’s default C++ standard library is now LLVM’s own libc++, b
ased on | 40 <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 | 41 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> | 42 handling (see <a class="reference external" href="https://groups.google.com/foru
m/#!topic/native-client-discuss/0spfg6O04FM">announcement</a> |
13 for details).</li> | 43 for details).</li> |
14 </ul> | 44 </ul> |
15 </section><section id="sdk"> | 45 </section><section id="sdk"> |
16 <h3 id="sdk">SDK</h3> | 46 <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 | 158 <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 | 159 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 | 160 for an application can specify a source file to compile such as |
131 <code>../../some/other/place.cpp</code>.</li> | 161 <code>../../some/other/place.cpp</code>.</li> |
132 </ul> | 162 </ul> |
133 </section></section><section id="pepper-26-29-march-2013"> | 163 </section></section><section id="pepper-26-29-march-2013"> |
134 <h2 id="pepper-26-29-march-2013">Pepper 26 (29 March 2013)</h2> | 164 <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 | 165 <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 | 166 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> | 167 simple new 3D example, and a threaded file IO example.</p> |
138 <section id="id1"> | 168 <section id="id2"> |
139 <h3 id="id1">Build tools and toolchains</h3> | 169 <h3 id="id2">Build tools and toolchains</h3> |
140 <ul class="small-gap"> | 170 <ul class="small-gap"> |
141 <li><p class="first">Makefiles have been changed significantly:</p> | 171 <li><p class="first">Makefiles have been changed significantly:</p> |
142 <ul class="small-gap"> | 172 <ul class="small-gap"> |
143 <li>Build commands are now specified in a number of common files | 173 <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> | 174 (<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 | 175 <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. | 176 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> | 177 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 | 178 <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 | 179 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 | 180 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 | 181 <code>CONFIG=<y></code>. You can also run make <code>all_versions</code>
to build an example |
152 with all toolchains.</li> | 182 with all toolchains.</li> |
153 </ul> | 183 </ul> |
154 </li> | 184 </li> |
155 <li>Header files have been moved out of the toolchains. All toolchains now share | 185 <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 | 186 the same set of header files as host builds. Previously host and NaCl builds |
157 used different headers, which could cause build problems.</li> | 187 used different headers, which could cause build problems.</li> |
158 </ul> | 188 </ul> |
159 </section><section id="id2"> | 189 </section><section id="id3"> |
160 <h3 id="id2">Libraries</h3> | 190 <h3 id="id3">Libraries</h3> |
161 <ul class="small-gap"> | 191 <ul class="small-gap"> |
162 <li>The nacl_mounts library has been renamed <strong>nacl_io</strong>, and has b
een expanded | 192 <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. | 193 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 | 194 For details see <code>include/nacl_io/nacl_io.h</code>, as well as the |
165 <code>hello_nacl_io</code> example.</li> | 195 <code>hello_nacl_io</code> example.</li> |
166 </ul> | 196 </ul> |
167 </section><section id="id3"> | 197 </section><section id="id4"> |
168 <h3 id="id3">Examples</h3> | 198 <h3 id="id4">Examples</h3> |
169 <ul class="small-gap"> | 199 <ul class="small-gap"> |
170 <li>A new example, <strong>hello_world_instance3d</strong>, has been added to de
monstrate a | 200 <li>A new example, <strong>hello_world_instance3d</strong>, has been added to de
monstrate a |
171 simplified 3D app.</li> | 201 simplified 3D app.</li> |
172 <li>The <strong>file_io</strong> example has been rewritten to do all file opera
tions on a | 202 <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 | 203 thread. The example demonstrates how to use the MessageLoop API and blocking |
174 callbacks on a thread.</li> | 204 callbacks on a thread.</li> |
175 </ul> | 205 </ul> |
176 </section><section id="general"> | 206 </section><section id="general"> |
177 <h3 id="general">General</h3> | 207 <h3 id="general">General</h3> |
178 <ul class="small-gap"> | 208 <ul class="small-gap"> |
179 <li>Old bundles (<code>pepper_20</code> and earlier) have been removed from the
Native | 209 <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> | 210 Client SDK Manifest, and will no longer be updated by the <code>naclsdk</code> |
181 command.</li> | 211 command.</li> |
182 </ul> | 212 </ul> |
183 </section></section><section id="pepper-25-21-december-2012"> | 213 </section></section><section id="pepper-25-21-december-2012"> |
184 <h2 id="pepper-25-21-december-2012">Pepper 25 (21 December 2012)</h2> | 214 <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 | 215 <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 | 216 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, | 217 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 | 218 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 | 219 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 | 220 using a simple ppapi_main function), and two new examples that demonstrate how |
191 to use the nacl_mounts and ppapi_main libraries.</p> | 221 to use the nacl_mounts and ppapi_main libraries.</p> |
192 <section id="id4"> | 222 <section id="id5"> |
193 <h3 id="id4">Build tools and toolchains</h3> | 223 <h3 id="id5">Build tools and toolchains</h3> |
194 <ul class="small-gap"> | 224 <ul class="small-gap"> |
195 <li><p class="first">The SDK includes a new toolchain to build Native Client exe
cutables (.nexe | 225 <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> | 226 files) for <strong>ARM devices</strong>.</p> |
197 <ul class="small-gap"> | 227 <ul class="small-gap"> |
198 <li>Currently the ARM toolchain can only be used to compile modules that use | 228 <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 | 229 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> | 230 to compile modules that use the glibc library.</li> |
201 <li>The ARM toolchain is in the directory | 231 <li>The ARM toolchain is in the directory |
202 <code>pepper_25/toolchain/<host>_arm_newlib</code>. The bin subdirectory
contains | 232 <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 | 233 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> | 251 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> | 252 <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 | 253 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 | 254 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 | 255 post work to the thread, including completion callbacks for asynchronous |
226 operations. For a C++ example of how to use the MessageLoop API, | 256 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 | 257 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 | 258 you cannot make asynchronous PPAPI calls on a background thread without |
229 creating and using a message loop.</li> | 259 creating and using a message loop.</li> |
230 </ul> | 260 </ul> |
231 </section><section id="id5"> | 261 </section><section id="id6"> |
232 <h3 id="id5">Libraries</h3> | 262 <h3 id="id6">Libraries</h3> |
233 <p>The SDK includes two new libraries:</p> | 263 <p>The SDK includes two new libraries:</p> |
234 <ul class="small-gap"> | 264 <ul class="small-gap"> |
235 <li><p class="first">The <strong>nacl_mounts</strong> library provides a virtual
file system that your module | 265 <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 | 266 can “mount” in a given directory tree. The file system can be one of
several |
237 types:</p> | 267 types:</p> |
238 <ul class="small-gap"> | 268 <ul class="small-gap"> |
239 <li>“memfs” is an in-memory file system,</li> | 269 <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>, | 270 <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> | 271 <code>/dev/console[0-3]</code>, <code>/dev/tty</code>), and</li> |
242 <li>“html5fs” is a persistent file system.</li> | 272 <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 | 286 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 | 287 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. | 288 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 | 289 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 | 290 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> | 291 how to use ppapi_main, see examples/hello_world_stdio.</li> |
262 </ul> | 292 </ul> |
263 <p>Header files for the new libraries are in the <code>include/</code> directory
, source | 293 <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> | 294 files are in the <code>src/</code> directory, and compiled libraries are in the
<code>lib/</code> |
265 directory.</p> | 295 directory.</p> |
266 </section><section id="id6"> | 296 </section><section id="id7"> |
267 <h3 id="id6">Examples</h3> | 297 <h3 id="id7">Examples</h3> |
268 <ul class="small-gap"> | 298 <ul class="small-gap"> |
269 <li><p class="first">The SDK includes two new examples:</p> | 299 <li><p class="first">The SDK includes two new examples:</p> |
270 <ul class="small-gap"> | 300 <ul class="small-gap"> |
271 <li><strong>hello_nacl_mounts</strong> illustrates how to use standard C library
file | 301 <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 | 302 operations in a Native Client module through the use of the nacl_mounts |
273 library.</li> | 303 library.</li> |
274 <li><strong>hello_world_stdio</strong> illustrates how to implement a Native Cli
ent module | 304 <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 | 305 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 | 306 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 | 307 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 | 329 <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 | 330 source dependencies, and invokes the build rules in a separate file |
301 (common.mk).</li> | 331 (common.mk).</li> |
302 </ul> | 332 </ul> |
303 </section></section><section id="pepper-24-5-december-2012"> | 333 </section></section><section id="pepper-24-5-december-2012"> |
304 <h2 id="pepper-24-5-december-2012">Pepper 24 (5 December 2012)</h2> | 334 <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 | 335 <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 | 336 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 | 337 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> | 338 applications specify a GPU preference for low power or performance.</p> |
309 <section id="id7"> | 339 <section id="id8"> |
310 <h3 id="id7">Build tools and toolchains</h3> | 340 <h3 id="id8">Build tools and toolchains</h3> |
311 <ul class="small-gap"> | 341 <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 | 342 <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 | 343 “pinnacle”). The PNaCl toolchain produces architecture-independent e
xecutable |
314 files (.pexe files). Chrome doesn’t yet support .pexe files directly, but
if | 344 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 | 345 you want to experiment with this early preview of PNaCl, the toolchain |
316 includes a tool to translate .pexe files into architecture-specific .nexe | 346 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 | 347 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 | 348 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, | 349 restricted to the newlib C standard library – if your application uses glibc, |
320 you can’t build it with PNaCl.</li> | 350 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 | 351 <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 | 352 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 | 353 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> | 354 generate the appropriate Native Client manifest file for your application.</li> |
325 </ul> | 355 </ul> |
326 </section><section id="id8"> | 356 </section><section id="id10"> |
327 <h3 id="id8">Examples</h3> | 357 <h3 id="id10">Examples</h3> |
328 <ul class="small-gap"> | 358 <ul class="small-gap"> |
329 <li>The SDK examples now build with four toolchains: the glibc and newlib | 359 <li>The SDK examples now build with four toolchains: the glibc and newlib |
330 toolchains, the experimental PNaCl toolchain, and the hosted toolchain on | 360 toolchains, the experimental PNaCl toolchain, and the hosted toolchain on |
331 your development machine. Within each toolchain build, each example also | 361 your development machine. Within each toolchain build, each example also |
332 builds both a debug and a release version.</li> | 362 builds both a debug and a release version.</li> |
333 <li>The example Makefiles use dependency (.d) files to enable incremental builds
.</li> | 363 <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 | 364 <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 | 365 drawing function is now set up as the Flush() callback, which allows 2D |
336 drawing to occur as quickly as possible.</li> | 366 drawing to occur as quickly as possible.</li> |
337 </ul> | 367 </ul> |
338 </section><section id="id9"> | 368 </section><section id="id11"> |
339 <h3 id="id9">PPAPI</h3> | 369 <h3 id="id11">PPAPI</h3> |
340 <ul class="small-gap"> | 370 <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> | 371 <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 | 372 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 | 373 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> | 374 GPU; contexts with a performance preference may be created on a discrete GPU.</l
i> |
345 </ul> | 375 </ul> |
346 </section><section id="windows-sdk"> | 376 </section><section id="windows-sdk"> |
347 <h3 id="windows-sdk">Windows SDK</h3> | 377 <h3 id="windows-sdk">Windows SDK</h3> |
348 <ul class="small-gap"> | 378 <ul class="small-gap"> |
349 <li>The Windows SDK includes the pthreads-win32 library to assist in porting fro
m | 379 <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"> | 435 <ul class="small-gap"> |
406 <li>Look at the example Makefiles or run <code>make</code> in the example direct
ories to | 436 <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> | 437 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 | 438 <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. | 439 <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 | 440 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> | 441 <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> | 442 </ul> |
413 </li> | 443 </li> |
414 </ul> | 444 </ul> |
415 </section><section id="id10"> | 445 </section><section id="id12"> |
416 <h3 id="id10">Examples</h3> | 446 <h3 id="id12">Examples</h3> |
417 <ul class="small-gap"> | 447 <ul class="small-gap"> |
418 <li>On Linux and Windows systems, most of the examples now build with three | 448 <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 | 449 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 | 450 toolchain on the host system. Modules built with the native toolchain on the |
421 host system can only run as Pepper plugins.</li> | 451 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 | 452 <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, | 453 <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 | 454 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 | 455 <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 | 456 includes a restriction against inline JavaScript. This restriction prohibits |
427 both inline <code><script></code> blocks and inline event handlers (e.g.,
<code><button | 457 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 | 458 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 | 459 changes between version 1 and version 2 of the manifest file format, and a |
430 support schedule for applications that use version 1.</li> | 460 support schedule for applications that use version 1.</li> |
431 </ul> | 461 </ul> |
432 </section><section id="id11"> | 462 </section><section id="id13"> |
433 <h3 id="id11">PPAPI</h3> | 463 <h3 id="id13">PPAPI</h3> |
434 <ul class="small-gap"> | 464 <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> | 465 <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> | 466 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> | 467 <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> | 468 API has been fixed.</li> |
439 </ul> | 469 </ul> |
440 </section></section><section id="pepper-22-22-august-2012"> | 470 </section></section><section id="pepper-22-22-august-2012"> |
441 <h2 id="pepper-22-22-august-2012">Pepper 22 (22 August 2012)</h2> | 471 <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 | 472 <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 | 473 <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> | 474 example now builds both a debug and a release version).</p> |
445 <section id="id12"> | 475 <section id="id14"> |
446 <h3 id="id12">Tools</h3> | 476 <h3 id="id14">Tools</h3> |
447 <ul class="small-gap"> | 477 <ul class="small-gap"> |
448 <li>The SDK now includes a <strong>command-line debugger</strong> that you can u
se to debug | 478 <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, | 479 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 | 480 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> | 481 systems. Support for Mac and 32-bit Windows systems will be added soon.</li> |
452 </ul> | 482 </ul> |
453 </section><section id="id13"> | 483 </section><section id="id15"> |
454 <h3 id="id13">Windows SDK</h3> | 484 <h3 id="id15">Windows SDK</h3> |
455 <ul class="small-gap"> | 485 <ul class="small-gap"> |
456 <li><p class="first">Developers using the Windows SDK can now <strong>build a mo
dule as a Pepper | 486 <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 | 487 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 | 488 native C/C++ compiler on their development system. In essence this makes |
459 developing a Native Client module a two-step process:</p> | 489 developing a Native Client module a two-step process:</p> |
460 <ol class="arabic simple"> | 490 <ol class="arabic simple"> |
461 <li>Build the module into a DLL using your system’s C/C++ compiler. Test a
nd | 491 <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> | 492 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 | 493 <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 | 494 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 | 522 <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 | 523 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) | 524 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 | 525 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 | 526 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> | 527 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>. | 528 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 | 529 In the future, the SDK will include resources for hosted development on Mac |
500 and Linux as well as Windows. | 530 and Linux as well as Windows. |
501 </aside> | 531 </aside> |
502 </section><section id="id14"> | 532 </section><section id="id16"> |
503 <h3 id="id14">Examples</h3> | 533 <h3 id="id16">Examples</h3> |
504 <ul class="small-gap"> | 534 <ul class="small-gap"> |
505 <li>Each example in the SDK now builds both a debug and a release version. As | 535 <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 | 536 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 | 537 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 | 538 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 | 539 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> | 540 different development scenarios</em></a>.</li> |
511 <li>Comments have been added to common.js, which is used in all the examples. Th
e | 541 <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 | 542 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 | 543 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 | 544 of the module, and implements handleMessage() to respond to messages sent |
515 from the NaCl module to the JavaScript side of the application</li> | 545 from the NaCl module to the JavaScript side of the application</li> |
516 </ul> | 546 </ul> |
517 </section><section id="id15"> | 547 </section><section id="id17"> |
518 <h3 id="id15">PPAPI</h3> | 548 <h3 id="id17">PPAPI</h3> |
519 <ul class="small-gap"> | 549 <ul class="small-gap"> |
520 <li>The <code>CompletionCallbackFactory</code> class template now takes a thread
traits | 550 <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 | 551 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> | 552 class template reference</a>.</li> |
523 </ul> | 553 </ul> |
524 </section></section></section> | 554 </section></section></section> |
525 | 555 |
526 {{/partials.standard_nacl_article}} | 556 {{/partials.standard_nacl_article}} |
OLD | NEW |