Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: Source/WebCore/bindings/dart/custom/DartUint8ArrayCustom.cpp

Issue 9231022: WebGL support. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 12 matching lines...) Expand all
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "DartUint8Array.h" 31 #include "DartUint8Array.h"
32 32
33 #include "DartArrayBufferViewCustom.h"
34
33 namespace WebCore { 35 namespace WebCore {
34 36
35 Dart_Handle toDartValue(Uint8Array*) 37 Dart_Handle toDartValue(Uint8Array* value)
36 { 38 {
37 DART_UNIMPLEMENTED(); 39 // We may have to customize it, once typed arrays are in the VM.
38 return 0; 40 return DartDOMWrapper::toDart<DartUint8Array>(value);
39 } 41 }
40 42
41 namespace DartUint8ArrayInternal { 43 namespace DartUint8ArrayInternal {
42 44
43 void setElementsCallback(Dart_NativeArguments) 45 void constructorCallback(Dart_NativeArguments args)
44 { 46 {
45 // FIXME: proper implementation. 47 WebCore::DartArrayBufferViewInternal::constructWebGLArray<Uint8Array, uint8_ t>(args);
46 DART_UNIMPLEMENTED(); 48 }
49
50 void numericIndexSetterCallback(Dart_NativeArguments args)
51 {
52 WebCore::DartArrayBufferViewInternal::indexSetter<Uint8Array, uint8_t>(args) ;
53 }
54
55 void numericIndexGetterCallback(Dart_NativeArguments args)
56 {
57 WebCore::DartArrayBufferViewInternal::indexGetter<Uint8Array, int>(args);
58 }
59
60 void setElementsCallback(Dart_NativeArguments args)
61 {
62 WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Uint8Array, DartUi nt8Array>(args);
47 } 63 }
48 64
49 } 65 }
50 66
51 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698