| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 21 matching lines...) Expand all Loading... |
| 32 if (context->extensionsUtil()->ensureExtensionEnabled( | 32 if (context->extensionsUtil()->ensureExtensionEnabled( |
| 33 "GL_OES_texture_float")) { | 33 "GL_OES_texture_float")) { |
| 34 // Implicitly enable rendering to float textures | 34 // Implicitly enable rendering to float textures |
| 35 context->extensionsUtil()->ensureExtensionEnabled( | 35 context->extensionsUtil()->ensureExtensionEnabled( |
| 36 "GL_CHROMIUM_color_buffer_float_rgba"); | 36 "GL_CHROMIUM_color_buffer_float_rgba"); |
| 37 context->extensionsUtil()->ensureExtensionEnabled( | 37 context->extensionsUtil()->ensureExtensionEnabled( |
| 38 "GL_CHROMIUM_color_buffer_float_rgb"); | 38 "GL_CHROMIUM_color_buffer_float_rgb"); |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 OESTextureFloat::~OESTextureFloat() {} | |
| 43 | |
| 44 WebGLExtensionName OESTextureFloat::name() const { | 42 WebGLExtensionName OESTextureFloat::name() const { |
| 45 return OESTextureFloatName; | 43 return OESTextureFloatName; |
| 46 } | 44 } |
| 47 | 45 |
| 48 OESTextureFloat* OESTextureFloat::create(WebGLRenderingContextBase* context) { | 46 OESTextureFloat* OESTextureFloat::create(WebGLRenderingContextBase* context) { |
| 49 return new OESTextureFloat(context); | 47 return new OESTextureFloat(context); |
| 50 } | 48 } |
| 51 | 49 |
| 52 bool OESTextureFloat::supported(WebGLRenderingContextBase* context) { | 50 bool OESTextureFloat::supported(WebGLRenderingContextBase* context) { |
| 53 return context->extensionsUtil()->supportsExtension("GL_OES_texture_float"); | 51 return context->extensionsUtil()->supportsExtension("GL_OES_texture_float"); |
| 54 } | 52 } |
| 55 | 53 |
| 56 const char* OESTextureFloat::extensionName() { | 54 const char* OESTextureFloat::extensionName() { |
| 57 return "OES_texture_float"; | 55 return "OES_texture_float"; |
| 58 } | 56 } |
| 59 | 57 |
| 60 } // namespace blink | 58 } // namespace blink |
| OLD | NEW |