diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 21:04:10 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 21:04:10 +0000 |
commit | 47ef6148e87b5410135e35afe4259344a2a458e4 (patch) | |
tree | d2361e6c4d07e361aacc0bd3dc3e1195779c9457 /webkit | |
parent | b6a415ea6e0ad4751d1a9dca9f99bde727033167 (diff) | |
download | chromium_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 'webkit')
-rw-r--r-- | webkit/plugins/ppapi/host_array_buffer_var.cc | 6 | ||||
-rw-r--r-- | webkit/plugins/ppapi/host_array_buffer_var.h | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/host_array_buffer_var.cc b/webkit/plugins/ppapi/host_array_buffer_var.cc index 248ff85..c8266df 100644 --- a/webkit/plugins/ppapi/host_array_buffer_var.cc +++ b/webkit/plugins/ppapi/host_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. @@ -25,6 +25,10 @@ void* HostArrayBufferVar::Map() { return buffer_.data(); } +void HostArrayBufferVar::Unmap() { + // We do not used shared memory on the host side. Nothing to do. +} + uint32 HostArrayBufferVar::ByteLength() { return buffer_.byteLength(); } diff --git a/webkit/plugins/ppapi/host_array_buffer_var.h b/webkit/plugins/ppapi/host_array_buffer_var.h index aaccb34..803069a 100644 --- a/webkit/plugins/ppapi/host_array_buffer_var.h +++ b/webkit/plugins/ppapi/host_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. @@ -20,6 +20,7 @@ class HostArrayBufferVar : public ::ppapi::ArrayBufferVar { // ArrayBufferVar implementation. virtual void* Map() OVERRIDE; + virtual void Unmap() OVERRIDE; virtual uint32 ByteLength() OVERRIDE; WebKit::WebArrayBuffer& webkit_buffer() { return buffer_; } |