| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ppapi/proxy/plugin_array_buffer_var.h" | 5 #include "ppapi/proxy/plugin_array_buffer_var.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 if (buffer_.empty()) | 21 if (buffer_.empty()) |
| 22 return NULL; | 22 return NULL; |
| 23 return &(buffer_[0]); | 23 return &(buffer_[0]); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void PluginArrayBufferVar::Unmap() { | 26 void PluginArrayBufferVar::Unmap() { |
| 27 // We don't actually use shared memory yet, so do nothing. | 27 // We don't actually use shared memory yet, so do nothing. |
| 28 } | 28 } |
| 29 | 29 |
| 30 uint32 PluginArrayBufferVar::ByteLength() { | 30 uint32 PluginArrayBufferVar::ByteLength() { |
| 31 return buffer_.size(); | 31 return static_cast<uint32>(buffer_.size()); |
| 32 } | 32 } |
| 33 | 33 |
| 34 } // namespace ppapi | 34 } // namespace ppapi |
| 35 | 35 |
| OLD | NEW |