diff options
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_; } |