summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-26 21:04:10 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-26 21:04:10 +0000
commit47ef6148e87b5410135e35afe4259344a2a458e4 (patch)
treed2361e6c4d07e361aacc0bd3dc3e1195779c9457 /ppapi/proxy
parentb6a415ea6e0ad4751d1a9dca9f99bde727033167 (diff)
downloadchromium_src-47ef6148e87b5410135e35afe4259344a2a458e4.zip
chromium_src-47ef6148e87b5410135e35afe4259344a2a458e4.tar.gz
chromium_src-47ef6148e87b5410135e35afe4259344a2a458e4.tar.bz2
Tweaks to PPB_VarArrayBuffer in preperation for taking out of Dev.
* Add Unmap. * Make ByteLength more consistent with the rest of PPAPI. * Make C++ wrapper not cache the buffer. BUG= TEST= Review URL: http://codereview.chromium.org/9169052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
-rw-r--r--ppapi/proxy/plugin_array_buffer_var.cc6
-rw-r--r--ppapi/proxy/plugin_array_buffer_var.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/ppapi/proxy/plugin_array_buffer_var.cc b/ppapi/proxy/plugin_array_buffer_var.cc
index d88ca7b..6d16cfe 100644
--- a/ppapi/proxy/plugin_array_buffer_var.cc
+++ b/ppapi/proxy/plugin_array_buffer_var.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -23,6 +23,10 @@ void* PluginArrayBufferVar::Map() {
return &(buffer_[0]);
}
+void PluginArrayBufferVar::Unmap() {
+ // We don't actually use shared memory yet, so do nothing.
+}
+
uint32 PluginArrayBufferVar::ByteLength() {
return buffer_.size();
}
diff --git a/ppapi/proxy/plugin_array_buffer_var.h b/ppapi/proxy/plugin_array_buffer_var.h
index 5e4d702..2eed216 100644
--- a/ppapi/proxy/plugin_array_buffer_var.h
+++ b/ppapi/proxy/plugin_array_buffer_var.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -22,6 +22,7 @@ class PluginArrayBufferVar : public ArrayBufferVar {
// ArrayBufferVar implementation.
virtual void* Map() OVERRIDE;
+ virtual void Unmap() OVERRIDE;
virtual uint32 ByteLength() OVERRIDE;
private: