OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
30 #include "core/html/canvas/WebGLRenderingContextBase.h" | 30 #include "core/html/canvas/WebGLRenderingContextBase.h" |
31 #include "core/html/canvas/WebGLShader.h" | 31 #include "core/html/canvas/WebGLShader.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 WebGLDebugShaders::WebGLDebugShaders(WebGLRenderingContextBase* context) | 35 WebGLDebugShaders::WebGLDebugShaders(WebGLRenderingContextBase* context) |
36 : WebGLExtension(context) | 36 : WebGLExtension(context) |
37 { | 37 { |
38 ScriptWrappable::init(this); | |
39 } | 38 } |
40 | 39 |
41 WebGLDebugShaders::~WebGLDebugShaders() | 40 WebGLDebugShaders::~WebGLDebugShaders() |
42 { | 41 { |
43 } | 42 } |
44 | 43 |
45 WebGLExtensionName WebGLDebugShaders::name() const | 44 WebGLExtensionName WebGLDebugShaders::name() const |
46 { | 45 { |
47 return WebGLDebugShadersName; | 46 return WebGLDebugShadersName; |
48 } | 47 } |
(...skipping 16 matching lines...) Expand all Loading... |
65 { | 64 { |
66 return context->extensionsUtil()->supportsExtension("GL_ANGLE_translated_sha
der_source"); | 65 return context->extensionsUtil()->supportsExtension("GL_ANGLE_translated_sha
der_source"); |
67 } | 66 } |
68 | 67 |
69 const char* WebGLDebugShaders::extensionName() | 68 const char* WebGLDebugShaders::extensionName() |
70 { | 69 { |
71 return "WEBGL_debug_shaders"; | 70 return "WEBGL_debug_shaders"; |
72 } | 71 } |
73 | 72 |
74 } // namespace blink | 73 } // namespace blink |
OLD | NEW |