blob: f55b5e6c7631d0a8026cb3f1ea6aa0c6fbd2787d [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/webgl/ext_float_blend.h"
namespace blink {
EXTFloatBlend::EXTFloatBlend(WebGLRenderingContextBase* context)
: WebGLExtension(context) {
context->ExtensionsUtil()->EnsureExtensionEnabled("GL_EXT_float_blend");
}
WebGLExtensionName EXTFloatBlend::GetName() const {
return kEXTFloatBlendName;
}
EXTFloatBlend* EXTFloatBlend::Create(WebGLRenderingContextBase* context) {
return MakeGarbageCollected<EXTFloatBlend>(context);
}
bool EXTFloatBlend::Supported(WebGLRenderingContextBase* context) {
return context->ExtensionsUtil()->SupportsExtension("GL_EXT_float_blend");
}
const char* EXTFloatBlend::ExtensionName() {
return "EXT_float_blend";
}
} // namespace blink