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

Side by Side Diff: third_party/npapi/bindings/npapi_extensions.h

Issue 566021: [GPU] GLES2 lost context recovery (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « gpu/pgl/pgl.cc ('k') | webkit/tools/pepper_test_plugin/plugin_object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 commandBufferSize; 271 int32 commandBufferSize;
272 } NPDeviceContext3DConfig; 272 } NPDeviceContext3DConfig;
273 273
274 typedef enum _NPDeviceContext3DError { 274 typedef enum _NPDeviceContext3DError {
275 // No error has ocurred.
275 NPDeviceContext3DError_NoError, 276 NPDeviceContext3DError_NoError,
277
278 // The size of a command was invalid.
276 NPDeviceContext3DError_InvalidSize, 279 NPDeviceContext3DError_InvalidSize,
280
281 // An offset was out of bounds.
277 NPDeviceContext3DError_OutOfBounds, 282 NPDeviceContext3DError_OutOfBounds,
283
284 // A command was not recognized.
278 NPDeviceContext3DError_UnknownCommand, 285 NPDeviceContext3DError_UnknownCommand,
286
287 // The arguments to a command were invalid.
279 NPDeviceContext3DError_InvalidArguments, 288 NPDeviceContext3DError_InvalidArguments,
289
290 // The 3D context was lost, for example due to a power management event. The
291 // context must be destroyed and a new one created.
292 NPDeviceContext3DError_LostContext,
293
294 // Any other error.
280 NPDeviceContext3DError_GenericError 295 NPDeviceContext3DError_GenericError
281 } NPDeviceContext3DError; 296 } NPDeviceContext3DError;
282 297
283 typedef struct _NPDeviceContext3D 298 typedef struct _NPDeviceContext3D
284 { 299 {
285 void* reserved; 300 void* reserved;
286 301
287 // Buffer in which commands are stored. 302 // Buffer in which commands are stored.
288 void* commandBuffer; 303 void* commandBuffer;
289 int32 commandBufferSize; 304 int32 commandBufferSize;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 } NPDeviceContextAudioConfig; 394 } NPDeviceContextAudioConfig;
380 395
381 struct _NPDeviceContextAudio { 396 struct _NPDeviceContextAudio {
382 NPDeviceContextAudioConfig config; 397 NPDeviceContextAudioConfig config;
383 void *outBuffer; 398 void *outBuffer;
384 void *inBuffer; 399 void *inBuffer;
385 void *reserved; 400 void *reserved;
386 }; 401 };
387 402
388 #endif /* _NP_EXTENSIONS_H_ */ 403 #endif /* _NP_EXTENSIONS_H_ */
OLDNEW
« no previous file with comments | « gpu/pgl/pgl.cc ('k') | webkit/tools/pepper_test_plugin/plugin_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698