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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc

Issue 9107046: PPAPI: Move PPB_ArrayBuffer out of Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor fixes Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.h ('k') | ppapi/ppapi_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
index b642eb0c3d7d1dea3a685d814990cf965bf9ff34..d9700dacbadde5ee73a81cfc6e173a21fc0fa78f 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc
@@ -118,6 +118,8 @@ void* Map(PP_Var var) {
PluginVar::DebugString(var).c_str());
SharedArrayBufferProxyVar buffer_var = ArrayBufferProxyVar::CastFromProxyVar(
ProxyVarCache::GetInstance().SharedProxyVarForVar(var));
+ if (!buffer_var)
+ return NULL;
void* data = buffer_var->buffer();
DebugPrintf("PPB_VarArrayBuffer::Map: buffer=%p\n", data);
return data;
@@ -151,8 +153,8 @@ const PPB_Var_1_0* PluginVar::GetInterface1_0() {
return &var_interface;
}
-const PPB_VarArrayBuffer_Dev* PluginVar::GetArrayBufferInterface() {
- static const PPB_VarArrayBuffer_Dev interface = {
+const PPB_VarArrayBuffer* PluginVar::GetArrayBufferInterface() {
+ static const PPB_VarArrayBuffer interface = {
CreateArrayBuffer,
ByteLength,
Map,
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.h ('k') | ppapi/ppapi_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698