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

Side by Side Diff: mojo/apps/js/bindings/gl/opaque.cc

Issue 114883003: Implement more of the JavaScript GL API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 7 years 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
« no previous file with comments | « mojo/apps/js/bindings/gl/opaque.h ('k') | mojo/apps/js/main.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/apps/js/bindings/gl/opaque.h"
6
7 #include "gin/object_template_builder.h"
8
9 namespace mojo {
10 namespace js {
11 namespace gl {
12
13 gin::WrapperInfo Opaque::kWrapperInfo = { gin::kEmbedderNativeGin };
14
15 gin::Handle<Opaque> Opaque::Create(v8::Isolate* isolate, GLuint value) {
16 return gin::CreateHandle(isolate, new Opaque(value));
17 }
18
19 Opaque::Opaque(GLuint value) : value_(value) {
20 }
21
22 } // namespace gl
23 } // namespace js
24 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/apps/js/bindings/gl/opaque.h ('k') | mojo/apps/js/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698