summaryrefslogtreecommitdiffstats
path: root/ppapi/c
diff options
context:
space:
mode:
authorraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 14:46:05 +0000
committerraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 14:46:05 +0000
commit38f428f10f6e3dca2ff875e663f614aa56fc099f (patch)
tree968c95f0c8eb184930f0e9a982020c0285da84e7 /ppapi/c
parent9e7e4122711c551a3885d1b641dcadbfcf31b241 (diff)
downloadchromium_src-38f428f10f6e3dca2ff875e663f614aa56fc099f.zip
chromium_src-38f428f10f6e3dca2ff875e663f614aa56fc099f.tar.gz
chromium_src-38f428f10f6e3dca2ff875e663f614aa56fc099f.tar.bz2
Hookup RawVarData to SerializedVar
This hooks up the rewritten RawVarData implementation with SerializedVar. It also fixes tests to make sure that shmem ArrayBuffers are actually tested. Previously, no testing of shmem ArrayBuffers was happening because OS_LINUX is never defined in ppapi/tests and none of the other ArrayBuffer test sizes were above the threshhold to invoke that code path. This CL adds a PPB_Testing function to set the threshhold to a lower value, which permits this code path to be taken while still having fast tests. BUG= Review URL: https://chromiumcodereview.appspot.com/14208016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r--ppapi/c/dev/ppb_testing_dev.h32
1 files changed, 28 insertions, 4 deletions
diff --git a/ppapi/c/dev/ppb_testing_dev.h b/ppapi/c/dev/ppb_testing_dev.h
index 0567120..e5078e2 100644
--- a/ppapi/c/dev/ppb_testing_dev.h
+++ b/ppapi/c/dev/ppb_testing_dev.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From dev/ppb_testing_dev.idl modified Mon Mar 19 12:02:10 2012. */
+/* From dev/ppb_testing_dev.idl modified Thu Apr 18 13:22:09 2013. */
#ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_
#define PPAPI_C_DEV_PPB_TESTING_DEV_H_
@@ -21,7 +21,8 @@
#define PPB_TESTING_DEV_INTERFACE_0_8 "PPB_Testing(Dev);0.8"
#define PPB_TESTING_DEV_INTERFACE_0_9 "PPB_Testing(Dev);0.9"
#define PPB_TESTING_DEV_INTERFACE_0_91 "PPB_Testing(Dev);0.91"
-#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_91
+#define PPB_TESTING_DEV_INTERFACE_0_92 "PPB_Testing(Dev);0.92"
+#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_92
/**
* @file
@@ -35,7 +36,7 @@
* @addtogroup Interfaces
* @{
*/
-struct PPB_Testing_Dev_0_91 {
+struct PPB_Testing_Dev_0_92 {
/**
* Reads the bitmap data out of the backing store for the given
* DeviceContext2D and into the given image. If the data was successfully
@@ -134,9 +135,18 @@ struct PPB_Testing_Dev_0_91 {
* of the returned PP_Vars will *not* be affected by this call.
*/
uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size);
+ /**
+ * Sets the threshold size at which point we switch from transmitting
+ * array buffers in IPC messages to using shared memory. This is only used
+ * for testing purposes where we need to transmit small buffers using shmem
+ * (in order to have fast tests). Passing a value of 0 resets the threshold
+ * to its default. The threshold is in bytes.
+ */
+ void (*SetMinimumArrayBufferSizeForShmem)(PP_Instance instance,
+ uint32_t threshold);
};
-typedef struct PPB_Testing_Dev_0_91 PPB_Testing_Dev;
+typedef struct PPB_Testing_Dev_0_92 PPB_Testing_Dev;
struct PPB_Testing_Dev_0_7 {
PP_Bool (*ReadImageData)(PP_Resource device_context_2d,
@@ -171,6 +181,20 @@ struct PPB_Testing_Dev_0_9 {
struct PP_Var (*GetDocumentURL)(PP_Instance instance,
struct PP_URLComponents_Dev* components);
};
+
+struct PPB_Testing_Dev_0_91 {
+ PP_Bool (*ReadImageData)(PP_Resource device_context_2d,
+ PP_Resource image,
+ const struct PP_Point* top_left);
+ void (*RunMessageLoop)(PP_Instance instance);
+ void (*QuitMessageLoop)(PP_Instance instance);
+ uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
+ PP_Bool (*IsOutOfProcess)(void);
+ void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
+ struct PP_Var (*GetDocumentURL)(PP_Instance instance,
+ struct PP_URLComponents_Dev* components);
+ uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size);
+};
/**
* @}
*/