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

Unified Diff: ppapi/proxy/ppb_buffer_proxy.cc

Issue 7601005: PPB/PPP_VideoCapture_Dev proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove bogus ; Created 9 years, 4 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698