| OLD | NEW |
| 1 // Copyright 2011, Google Inc. | 1 // Copyright 2011, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 Dart_Handle toDartValue(Int8Array* value) | 37 Dart_Handle toDartValue(Int8Array* value) |
| 38 { | 38 { |
| 39 // We may have to customize it, once typed arrays are in the VM. | 39 // We may have to customize it, once typed arrays are in the VM. |
| 40 return DartDOMWrapper::toDart<DartInt8Array>(value); | 40 return DartDOMWrapper::toDart<DartInt8Array>(value); |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace DartInt8ArrayInternal { | 43 namespace DartInt8ArrayInternal { |
| 44 | 44 |
| 45 void constructorCallback(Dart_NativeArguments args) | 45 void constructorCallback(Dart_NativeArguments args) |
| 46 { | 46 { |
| 47 WebCore::DartArrayBufferViewInternal::constructWebGLArray<Int8Array, int8_t>
(args); | 47 WebCore::DartArrayBufferViewInternal::createWebGLArray<Int8Array, int8_t>(ar
gs); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void numericIndexSetterCallback(Dart_NativeArguments args) | 50 void numericIndexSetterCallback(Dart_NativeArguments args) |
| 51 { | 51 { |
| 52 WebCore::DartArrayBufferViewInternal::indexSetter<Int8Array, int>(args); | 52 WebCore::DartArrayBufferViewInternal::indexSetter<Int8Array, int>(args); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void numericIndexGetterCallback(Dart_NativeArguments args) | 55 void numericIndexGetterCallback(Dart_NativeArguments args) |
| 56 { | 56 { |
| 57 WebCore::DartArrayBufferViewInternal::indexGetter<Int8Array, int>(args); | 57 WebCore::DartArrayBufferViewInternal::indexGetter<Int8Array, int>(args); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void setElementsCallback(Dart_NativeArguments args) | 60 void setElementsCallback(Dart_NativeArguments args) |
| 61 { | 61 { |
| 62 WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Int8Array, DartInt
8Array>(args); | 62 WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Int8Array, DartInt
8Array>(args); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } | 65 } |
| 66 | 66 |
| 67 } | 67 } |
| OLD | NEW |