| OLD | NEW |
| 1 /* Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 #ifndef _NP_EXTENSIONS_H_ | 6 #ifndef _NP_EXTENSIONS_H_ |
| 7 #define _NP_EXTENSIONS_H_ | 7 #define _NP_EXTENSIONS_H_ |
| 8 | 8 |
| 9 #include "third_party/npapi/bindings/npapi.h" | 9 #include "third_party/npapi/bindings/npapi.h" |
| 10 | 10 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } NPDeviceContext2D; | 264 } NPDeviceContext2D; |
| 265 | 265 |
| 266 /* 3D -----------------------------------------------------------------------*/ | 266 /* 3D -----------------------------------------------------------------------*/ |
| 267 | 267 |
| 268 #define NPPepper3DDevice 2 | 268 #define NPPepper3DDevice 2 |
| 269 | 269 |
| 270 typedef struct _NPDeviceContext3DConfig { | 270 typedef struct _NPDeviceContext3DConfig { |
| 271 int32 commandBufferEntries; | 271 int32 commandBufferEntries; |
| 272 } NPDeviceContext3DConfig; | 272 } NPDeviceContext3DConfig; |
| 273 | 273 |
| 274 typedef enum { | |
| 275 // The offset the command buffer service has read to. | |
| 276 NPDeviceContext3DState_GetOffset, | |
| 277 // The offset the plugin instance has written to. | |
| 278 NPDeviceContext3DState_PutOffset, | |
| 279 // The last token processed by the command buffer service. | |
| 280 NPDeviceContext3DState_Token, | |
| 281 // The most recent parse error. Getting this value resets the parse error | |
| 282 // if it recoverable. | |
| 283 NPDeviceContext3DState_ParseError, | |
| 284 // Wether the command buffer has encountered an unrecoverable error. | |
| 285 NPDeviceContext3DState_ErrorStatus | |
| 286 } NPDeviceContext3DState; | |
| 287 | |
| 288 typedef struct _NPDeviceContext3D | 274 typedef struct _NPDeviceContext3D |
| 289 { | 275 { |
| 290 void* reserved; | 276 void* reserved; |
| 291 | 277 |
| 292 // Buffer in which commands are stored. | 278 // Buffer in which commands are stored. |
| 293 void* commandBuffer; | 279 void* commandBuffer; |
| 294 int32 commandBufferEntries; | 280 int32 commandBufferEntries; |
| 295 | 281 |
| 296 // Offset in command buffer reader has reached. Synchronized on flush. | 282 // Offset in command buffer reader has reached. Synchronized on flush. |
| 297 int32 getOffset; | 283 int32 getOffset; |
| 298 | 284 |
| 299 // Offset in command buffer writer has reached. Synchronized on flush. | 285 // Offset in command buffer writer has reached. Synchronized on flush. |
| 300 int32 putOffset; | 286 int32 putOffset; |
| 287 |
| 288 // Last processed token. Synchronized on flush. |
| 289 int32 token; |
| 290 |
| 291 // Error status. Synchronized on flush. |
| 292 int32 error; |
| 301 } NPDeviceContext3D; | 293 } NPDeviceContext3D; |
| 302 | 294 |
| 303 /* Audio --------------------------------------------------------------------*/ | 295 /* Audio --------------------------------------------------------------------*/ |
| 304 | 296 |
| 305 #define NPPepperAudioDevice 3 | 297 #define NPPepperAudioDevice 3 |
| 306 | 298 |
| 307 /* min & max sample frame count */ | 299 /* min & max sample frame count */ |
| 308 typedef enum { | 300 typedef enum { |
| 309 NPAudioMinSampleFrameCount = 64, | 301 NPAudioMinSampleFrameCount = 64, |
| 310 NPAudioMaxSampleFrameCount = 32768 | 302 NPAudioMaxSampleFrameCount = 32768 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } NPDeviceContextAudioConfig; | 370 } NPDeviceContextAudioConfig; |
| 379 | 371 |
| 380 struct _NPDeviceContextAudio { | 372 struct _NPDeviceContextAudio { |
| 381 NPDeviceContextAudioConfig config; | 373 NPDeviceContextAudioConfig config; |
| 382 void *outBuffer; | 374 void *outBuffer; |
| 383 void *inBuffer; | 375 void *inBuffer; |
| 384 void *reserved; | 376 void *reserved; |
| 385 }; | 377 }; |
| 386 | 378 |
| 387 #endif /* _NP_EXTENSIONS_H_ */ | 379 #endif /* _NP_EXTENSIONS_H_ */ |
| OLD | NEW |