| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "modules/webgl/WebGLDebugRendererInfo.h" | 26 #include "modules/webgl/WebGLDebugRendererInfo.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 WebGLDebugRendererInfo::WebGLDebugRendererInfo( | 30 WebGLDebugRendererInfo::WebGLDebugRendererInfo( |
| 31 WebGLRenderingContextBase* context) | 31 WebGLRenderingContextBase* context) |
| 32 : WebGLExtension(context) {} | 32 : WebGLExtension(context) {} |
| 33 | 33 |
| 34 WebGLDebugRendererInfo::~WebGLDebugRendererInfo() {} | |
| 35 | |
| 36 WebGLExtensionName WebGLDebugRendererInfo::name() const { | 34 WebGLExtensionName WebGLDebugRendererInfo::name() const { |
| 37 return WebGLDebugRendererInfoName; | 35 return WebGLDebugRendererInfoName; |
| 38 } | 36 } |
| 39 | 37 |
| 40 WebGLDebugRendererInfo* WebGLDebugRendererInfo::create( | 38 WebGLDebugRendererInfo* WebGLDebugRendererInfo::create( |
| 41 WebGLRenderingContextBase* context) { | 39 WebGLRenderingContextBase* context) { |
| 42 return new WebGLDebugRendererInfo(context); | 40 return new WebGLDebugRendererInfo(context); |
| 43 } | 41 } |
| 44 | 42 |
| 45 bool WebGLDebugRendererInfo::supported(WebGLRenderingContextBase*) { | 43 bool WebGLDebugRendererInfo::supported(WebGLRenderingContextBase*) { |
| 46 return true; | 44 return true; |
| 47 } | 45 } |
| 48 | 46 |
| 49 const char* WebGLDebugRendererInfo::extensionName() { | 47 const char* WebGLDebugRendererInfo::extensionName() { |
| 50 return "WEBGL_debug_renderer_info"; | 48 return "WEBGL_debug_renderer_info"; |
| 51 } | 49 } |
| 52 | 50 |
| 53 } // namespace blink | 51 } // namespace blink |
| OLD | NEW |