| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "mojo/apps/js/bindings/gl/module.h" | 5 #include "mojo/apps/js/bindings/gl/module.h" |
| 6 | 6 |
| 7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
| 8 #include <GLES2/gl2ext.h> | 8 #include <GLES2/gl2ext.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 if (templ.IsEmpty()) { | 38 if (templ.IsEmpty()) { |
| 39 templ = gin::ObjectTemplateBuilder(isolate) | 39 templ = gin::ObjectTemplateBuilder(isolate) |
| 40 .SetMethod("Context", CreateContext) | 40 .SetMethod("Context", CreateContext) |
| 41 .Build(); | 41 .Build(); |
| 42 templ->SetInternalFieldCount(gin::kNumberOfInternalFields); | 42 templ->SetInternalFieldCount(gin::kNumberOfInternalFields); |
| 43 data->SetObjectTemplate(&kWrapperInfo, templ); | 43 data->SetObjectTemplate(&kWrapperInfo, templ); |
| 44 } | 44 } |
| 45 | 45 |
| 46 Context::GetObjectTemplate(isolate); | 46 Context::GetObjectTemplate(isolate); |
| 47 Opaque::GetObjectTemplate(isolate); | |
| 48 | 47 |
| 49 return templ; | 48 return templ; |
| 50 } | 49 } |
| 51 | 50 |
| 52 } // namespace gl | 51 } // namespace gl |
| 53 } // namespace js | 52 } // namespace js |
| 54 } // namespace mojo | 53 } // namespace mojo |
| OLD | NEW |