| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // Global variables. | 5 // Global variables. |
| 6 var gl_context; | 6 var gl_context; |
| 7 var gl_renderer; | 7 var gl_renderer; |
| 8 | 8 |
| 9 initializeWebGL = function(canvas) { | 9 initializeWebGL = function(canvas) { |
| 10 gl_context = null; | 10 gl_context = null; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 gl_context.clearDepth(1); | 35 gl_context.clearDepth(1); |
| 36 gl_context.clear(gl_context.COLOR_BUFFER_BIT | | 36 gl_context.clear(gl_context.COLOR_BUFFER_BIT | |
| 37 gl_context.DEPTH_BUFFER_BIT); | 37 gl_context.DEPTH_BUFFER_BIT); |
| 38 | 38 |
| 39 // Also fetch the unmasked GL_RENDERER string. | 39 // Also fetch the unmasked GL_RENDERER string. |
| 40 var ext = gl_context.getExtension("WEBGL_debug_renderer_info"); | 40 var ext = gl_context.getExtension("WEBGL_debug_renderer_info"); |
| 41 gl_renderer = gl_context.getParameter(ext.UNMASKED_RENDERER_WEBGL); | 41 gl_renderer = gl_context.getParameter(ext.UNMASKED_RENDERER_WEBGL); |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (window.domAutomationController) { | 44 if (window.domAutomationController) { |
| 45 domAutomationController.setAutomationId(0); | |
| 46 domAutomationController.send("FINISHED"); | 45 domAutomationController.send("FINISHED"); |
| 47 } | 46 } |
| 48 } | 47 } |
| OLD | NEW |