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

Side by Side Diff: examples/js/cube.js

Issue 812603003: Fixed cube.js demo imports (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!mojo:js_content_handler 1 #!mojo:js_content_handler
2 2
3 // Copyright 2014 The Chromium Authors. All rights reserved. 3 // Copyright 2014 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be 4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file. 5 // found in the LICENSE file.
6 6
7 define("main", [ 7 define("main", [
8 "console", 8 "console",
9 "mojo/services/public/js/application",
10 "mojo/services/gpu/public/interfaces/command_buffer.mojom",
9 "mojo/services/geometry/public/interfaces/geometry.mojom", 11 "mojo/services/geometry/public/interfaces/geometry.mojom",
10 "mojo/services/gpu/public/interfaces/command_buffer.mojom",
11 "mojo/services/gpu/public/interfaces/gpu.mojom", 12 "mojo/services/gpu/public/interfaces/gpu.mojom",
12 "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom", 13 "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom",
13 "mojo/services/native_viewport/public/interfaces/native_viewport.mojom", 14 "mojo/services/native_viewport/public/interfaces/native_viewport.mojom",
14 "mojo/services/public/js/application",
15 "mojo/public/js/core", 15 "mojo/public/js/core",
16 "services/js/modules/gl", 16 "services/js/modules/gl",
17 "services/js/modules/clock", 17 "services/js/modules/clock",
18 "timer", 18 "timer",
19 ], function(console, 19 ], function(console,
20 appModule, 20 appModule,
21 cbModule, 21 cbModule,
22 geoModule, 22 geoModule,
23 gpuModule, 23 gpuModule,
24 vplModule,
24 nvModule, 25 nvModule,
25 vplModule,
26 coreModule, 26 coreModule,
27 glModule, 27 glModule,
28 clockModule, 28 clockModule,
29 timerModule) { 29 timerModule) {
30 30
31 const VERTEX_SHADER_SOURCE = [ 31 const VERTEX_SHADER_SOURCE = [
32 'uniform mat4 u_mvpMatrix;', 32 'uniform mat4 u_mvpMatrix;',
33 'attribute vec4 a_position;', 33 'attribute vec4 a_position;',
34 'void main()', 34 'void main()',
35 '{', 35 '{',
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 this.gles2_.setDimensions(size); 407 this.gles2_.setDimensions(size);
408 } 408 }
409 409
410 onDestroyed() { 410 onDestroyed() {
411 this.quit(); 411 this.quit();
412 } 412 }
413 } 413 }
414 414
415 return CubeDemo; 415 return CubeDemo;
416 }); 416 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698