Index: ppapi/proxy/ppb_buffer_proxy.cc |
diff --git a/ppapi/proxy/ppb_buffer_proxy.cc b/ppapi/proxy/ppb_buffer_proxy.cc |
index 2e782acb9a0de8bf05fa34e4f18757c4c5bc7535..e44f214e63008b967d69b8a22376298c969a2fdf 100644 |
--- a/ppapi/proxy/ppb_buffer_proxy.cc |
+++ b/ppapi/proxy/ppb_buffer_proxy.cc |
@@ -108,7 +108,14 @@ PP_Resource PPB_Buffer_Proxy::CreateProxyResource(PP_Instance instance, |
if (result.is_null() || !base::SharedMemory::IsHandleValid(shm_handle)) |
return 0; |
- linked_ptr<Buffer> object(new Buffer(result, shm_handle, size)); |
+ return AddProxyResource(result, shm_handle, size); |
+} |
+// static |
brettw
2011/08/08 22:42:17
Blank line before this.
piman
2011/08/09 02:31:39
Done.
|
+PP_Resource PPB_Buffer_Proxy::AddProxyResource( |
+ const HostResource& resource, |
+ base::SharedMemoryHandle shm_handle, |
+ uint32_t size) { |
+ linked_ptr<Buffer> object(new Buffer(resource, shm_handle, size)); |
return PluginResourceTracker::GetInstance()->AddResource(object); |
} |