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

Side by Side Diff: ppapi/c/dev/ppb_context_3d_trusted_dev.h

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static_cast and header order Created 9 years, 9 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 | « no previous file | ppapi/c/pp_stdint.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_
6 #define PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ 6 #define PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_context_3d_dev.h" 8 #include "ppapi/c/dev/ppb_context_3d_dev.h"
9 #include "ppapi/c/pp_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
13 13
14 #define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE "PPB_Context3DTrusted(Dev);0.2" 14 #define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE "PPB_Context3DTrusted(Dev);0.3"
15 15
16 typedef enum { 16 typedef enum {
17 kNoError, 17 kNoError,
18 kInvalidSize, 18 kInvalidSize,
19 kOutOfBounds, 19 kOutOfBounds,
20 kUnknownCommand, 20 kUnknownCommand,
21 kInvalidArguments, 21 kInvalidArguments,
22 kLostContext, 22 kLostContext,
23 kGenericError 23 kGenericError
24 } PPB_Context3DTrustedError; 24 } PPB_Context3DTrustedError;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 71
72 // The writer calls this to update its put offset. This function returns the 72 // The writer calls this to update its put offset. This function returns the
73 // reader's most recent get offset. Does not return until after the put offset 73 // reader's most recent get offset. Does not return until after the put offset
74 // change callback has been invoked. 74 // change callback has been invoked.
75 struct PP_Context3DTrustedState (*FlushSync)(PP_Resource context, 75 struct PP_Context3DTrustedState (*FlushSync)(PP_Resource context,
76 int32_t put_offset); 76 int32_t put_offset);
77 77
78 // Create a transfer buffer and return a handle that uniquely 78 // Create a transfer buffer and return a handle that uniquely
79 // identifies it or -1 on error. 79 // identifies it or -1 on error.
80 int32_t (*CreateTransferBuffer)(PP_Resource context, size_t size); 80 int32_t (*CreateTransferBuffer)(PP_Resource context, uint32_t size);
81 81
82 // Destroy a transfer buffer and recycle the handle. 82 // Destroy a transfer buffer and recycle the handle.
83 PP_Bool (*DestroyTransferBuffer)(PP_Resource context, int32_t id); 83 PP_Bool (*DestroyTransferBuffer)(PP_Resource context, int32_t id);
84 84
85 // Get the transfer buffer associated with a handle. 85 // Get the transfer buffer associated with a handle.
86 PP_Bool (*GetTransferBuffer)(PP_Resource context, 86 PP_Bool (*GetTransferBuffer)(PP_Resource context,
87 int32_t id, 87 int32_t id,
88 int* shm_handle, 88 int* shm_handle,
89 uint32_t* shm_size); 89 uint32_t* shm_size);
90 }; 90 };
91 91
92 #endif // PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_ 92 #endif // PPAPI_C_DEV_PPB_CONTEXT_3D_TRUSTED_DEV_H_
93 93
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/pp_stdint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698