| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "modules/webgl/EXTBlendMinMax.h" | 5 #include "modules/webgl/EXTBlendMinMax.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 EXTBlendMinMax::EXTBlendMinMax(WebGLRenderingContextBase* context) | 9 EXTBlendMinMax::EXTBlendMinMax(WebGLRenderingContextBase* context) |
| 10 : WebGLExtension(context) { | 10 : WebGLExtension(context) { |
| 11 context->extensionsUtil()->ensureExtensionEnabled("GL_EXT_blend_minmax"); | 11 context->extensionsUtil()->ensureExtensionEnabled("GL_EXT_blend_minmax"); |
| 12 } | 12 } |
| 13 | 13 |
| 14 EXTBlendMinMax::~EXTBlendMinMax() {} | |
| 15 | |
| 16 WebGLExtensionName EXTBlendMinMax::name() const { | 14 WebGLExtensionName EXTBlendMinMax::name() const { |
| 17 return EXTBlendMinMaxName; | 15 return EXTBlendMinMaxName; |
| 18 } | 16 } |
| 19 | 17 |
| 20 EXTBlendMinMax* EXTBlendMinMax::create(WebGLRenderingContextBase* context) { | 18 EXTBlendMinMax* EXTBlendMinMax::create(WebGLRenderingContextBase* context) { |
| 21 return new EXTBlendMinMax(context); | 19 return new EXTBlendMinMax(context); |
| 22 } | 20 } |
| 23 | 21 |
| 24 bool EXTBlendMinMax::supported(WebGLRenderingContextBase* context) { | 22 bool EXTBlendMinMax::supported(WebGLRenderingContextBase* context) { |
| 25 return context->extensionsUtil()->supportsExtension("GL_EXT_blend_minmax"); | 23 return context->extensionsUtil()->supportsExtension("GL_EXT_blend_minmax"); |
| 26 } | 24 } |
| 27 | 25 |
| 28 const char* EXTBlendMinMax::extensionName() { | 26 const char* EXTBlendMinMax::extensionName() { |
| 29 return "EXT_blend_minmax"; | 27 return "EXT_blend_minmax"; |
| 30 } | 28 } |
| 31 | 29 |
| 32 } // namespace blink | 30 } // namespace blink |
| OLD | NEW |