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

Unified Diff: webkit/glue/plugins/pepper_buffer.cc

Issue 5410001: Change trusted shared memory interface to match audio.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « webkit/glue/plugins/pepper_buffer.h ('k') | webkit/glue/plugins/pepper_image_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_buffer.cc
===================================================================
--- webkit/glue/plugins/pepper_buffer.cc (revision 67614)
+++ webkit/glue/plugins/pepper_buffer.cc (working copy)
@@ -20,7 +20,7 @@
namespace {
-PP_Resource Create(PP_Module module_id, int32_t size) {
+PP_Resource Create(PP_Module module_id, uint32_t size) {
PluginModule* module = ResourceTracker::Get()->GetModule(module_id);
if (!module)
return 0;
@@ -36,7 +36,7 @@
return BoolToPPBool(!!Resource::GetAs<Buffer>(resource));
}
-PP_Bool Describe(PP_Resource resource, int32_t* size_in_bytes) {
+PP_Bool Describe(PP_Resource resource, uint32_t* size_in_bytes) {
scoped_refptr<Buffer> buffer(Resource::GetAs<Buffer>(resource));
if (!buffer)
return PP_FALSE;
@@ -81,7 +81,7 @@
return &ppb_buffer;
}
-bool Buffer::Init(int size) {
+bool Buffer::Init(uint32_t size) {
if (size == 0)
return false;
Unmap();
@@ -89,7 +89,7 @@
return true;
}
-void Buffer::Describe(int* size_in_bytes) const {
+void Buffer::Describe(uint32_t* size_in_bytes) const {
*size_in_bytes = size_;
}
« no previous file with comments | « webkit/glue/plugins/pepper_buffer.h ('k') | webkit/glue/plugins/pepper_image_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698