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

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

Issue 14208016: Hookup RawVarData to SerializedVar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 /* From dev/ppb_testing_dev.idl modified Mon Mar 19 12:02:10 2012. */ 6 /* From dev/ppb_testing_dev.idl modified Thu Apr 18 13:22:09 2013. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_
9 #define PPAPI_C_DEV_PPB_TESTING_DEV_H_ 9 #define PPAPI_C_DEV_PPB_TESTING_DEV_H_
10 10
11 #include "ppapi/c/dev/ppb_url_util_dev.h" 11 #include "ppapi/c/dev/ppb_url_util_dev.h"
12 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_point.h" 15 #include "ppapi/c/pp_point.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h" 17 #include "ppapi/c/pp_stdint.h"
18 #include "ppapi/c/pp_var.h" 18 #include "ppapi/c/pp_var.h"
19 19
20 #define PPB_TESTING_DEV_INTERFACE_0_7 "PPB_Testing(Dev);0.7" 20 #define PPB_TESTING_DEV_INTERFACE_0_7 "PPB_Testing(Dev);0.7"
21 #define PPB_TESTING_DEV_INTERFACE_0_8 "PPB_Testing(Dev);0.8" 21 #define PPB_TESTING_DEV_INTERFACE_0_8 "PPB_Testing(Dev);0.8"
22 #define PPB_TESTING_DEV_INTERFACE_0_9 "PPB_Testing(Dev);0.9" 22 #define PPB_TESTING_DEV_INTERFACE_0_9 "PPB_Testing(Dev);0.9"
23 #define PPB_TESTING_DEV_INTERFACE_0_91 "PPB_Testing(Dev);0.91" 23 #define PPB_TESTING_DEV_INTERFACE_0_91 "PPB_Testing(Dev);0.91"
24 #define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_91 24 #define PPB_TESTING_DEV_INTERFACE_0_92 "PPB_Testing(Dev);0.92"
25 #define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_92
25 26
26 /** 27 /**
27 * @file 28 * @file
28 * This file contains interface functions used for unit testing. Do not use in 29 * This file contains interface functions used for unit testing. Do not use in
29 * production code. They are not guaranteed to be available in normal plugin 30 * production code. They are not guaranteed to be available in normal plugin
30 * environments so you should not depend on them. 31 * environments so you should not depend on them.
31 */ 32 */
32 33
33 34
34 /** 35 /**
35 * @addtogroup Interfaces 36 * @addtogroup Interfaces
36 * @{ 37 * @{
37 */ 38 */
38 struct PPB_Testing_Dev_0_91 { 39 struct PPB_Testing_Dev_0_92 {
39 /** 40 /**
40 * Reads the bitmap data out of the backing store for the given 41 * Reads the bitmap data out of the backing store for the given
41 * DeviceContext2D and into the given image. If the data was successfully 42 * DeviceContext2D and into the given image. If the data was successfully
42 * read, it will return PP_TRUE. 43 * read, it will return PP_TRUE.
43 * 44 *
44 * This function should not generally be necessary for normal plugin 45 * This function should not generally be necessary for normal plugin
45 * operation. If you want to update portions of a device, the expectation is 46 * operation. If you want to update portions of a device, the expectation is
46 * that you will either regenerate the data, or maintain a backing store 47 * that you will either regenerate the data, or maintain a backing store
47 * pushing updates to the device from your backing store via PaintImageData. 48 * pushing updates to the device from your backing store via PaintImageData.
48 * Using this function will introduce an extra copy which will make your 49 * Using this function will introduce an extra copy which will make your
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 struct PP_URLComponents_Dev* components); 128 struct PP_URLComponents_Dev* components);
128 /** 129 /**
129 * Fetches up to |array_size| active PP_Vars in the tracker. Returns the 130 * Fetches up to |array_size| active PP_Vars in the tracker. Returns the
130 * number of vars in the tracker. The active vars are written to |live_vars| 131 * number of vars in the tracker. The active vars are written to |live_vars|
131 * contiguously starting at index 0. The vars are not in any particular order. 132 * contiguously starting at index 0. The vars are not in any particular order.
132 * If the number of live vars is greater than |array_size|, then an arbitrary 133 * If the number of live vars is greater than |array_size|, then an arbitrary
133 * subset of |array_size| vars is written to |live_vars|. The reference count 134 * subset of |array_size| vars is written to |live_vars|. The reference count
134 * of the returned PP_Vars will *not* be affected by this call. 135 * of the returned PP_Vars will *not* be affected by this call.
135 */ 136 */
136 uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size); 137 uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size);
138 /**
139 * Sets the threshold size at which point we switch from transmitting
140 * array buffers in IPC messages to using shared memory. This is only used
141 * for testing purposes where we need to transmit small buffers using shmem
142 * (in order to have fast tests). Passing a value of 0 resets the threshold
143 * to its default. The threshold is in bytes.
144 */
145 void (*SetMinimumArrayBufferSizeForShmem)(PP_Instance instance,
146 uint32_t threshold);
137 }; 147 };
138 148
139 typedef struct PPB_Testing_Dev_0_91 PPB_Testing_Dev; 149 typedef struct PPB_Testing_Dev_0_92 PPB_Testing_Dev;
140 150
141 struct PPB_Testing_Dev_0_7 { 151 struct PPB_Testing_Dev_0_7 {
142 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, 152 PP_Bool (*ReadImageData)(PP_Resource device_context_2d,
143 PP_Resource image, 153 PP_Resource image,
144 const struct PP_Point* top_left); 154 const struct PP_Point* top_left);
145 void (*RunMessageLoop)(PP_Instance instance); 155 void (*RunMessageLoop)(PP_Instance instance);
146 void (*QuitMessageLoop)(PP_Instance instance); 156 void (*QuitMessageLoop)(PP_Instance instance);
147 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); 157 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
148 PP_Bool (*IsOutOfProcess)(void); 158 PP_Bool (*IsOutOfProcess)(void);
149 }; 159 };
(...skipping 14 matching lines...) Expand all
164 PP_Resource image, 174 PP_Resource image,
165 const struct PP_Point* top_left); 175 const struct PP_Point* top_left);
166 void (*RunMessageLoop)(PP_Instance instance); 176 void (*RunMessageLoop)(PP_Instance instance);
167 void (*QuitMessageLoop)(PP_Instance instance); 177 void (*QuitMessageLoop)(PP_Instance instance);
168 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); 178 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
169 PP_Bool (*IsOutOfProcess)(void); 179 PP_Bool (*IsOutOfProcess)(void);
170 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); 180 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
171 struct PP_Var (*GetDocumentURL)(PP_Instance instance, 181 struct PP_Var (*GetDocumentURL)(PP_Instance instance,
172 struct PP_URLComponents_Dev* components); 182 struct PP_URLComponents_Dev* components);
173 }; 183 };
184
185 struct PPB_Testing_Dev_0_91 {
186 PP_Bool (*ReadImageData)(PP_Resource device_context_2d,
187 PP_Resource image,
188 const struct PP_Point* top_left);
189 void (*RunMessageLoop)(PP_Instance instance);
190 void (*QuitMessageLoop)(PP_Instance instance);
191 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
192 PP_Bool (*IsOutOfProcess)(void);
193 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
194 struct PP_Var (*GetDocumentURL)(PP_Instance instance,
195 struct PP_URLComponents_Dev* components);
196 uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size);
197 };
174 /** 198 /**
175 * @} 199 * @}
176 */ 200 */
177 201
178 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ 202 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */
179 203
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_testing_dev.idl ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698