summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/canvas/EXTBlendMinMax.cpp
blob: 8ded7388912e5813440cdd17a0747b97c75557b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2014 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 "config.h"

#include "core/html/canvas/EXTBlendMinMax.h"

namespace WebCore {

EXTBlendMinMax::EXTBlendMinMax(WebGLRenderingContextBase* context)
    : WebGLExtension(context)
{
    ScriptWrappable::init(this);
    context->extensionsUtil()->ensureExtensionEnabled("GL_EXT_blend_minmax");
}

EXTBlendMinMax::~EXTBlendMinMax()
{
}

WebGLExtensionName EXTBlendMinMax::name() const
{
    return EXTBlendMinMaxName;
}

PassRefPtr<EXTBlendMinMax> EXTBlendMinMax::create(WebGLRenderingContextBase* context)
{
    return adoptRef(new EXTBlendMinMax(context));
}

bool EXTBlendMinMax::supported(WebGLRenderingContextBase* context)
{
    return context->extensionsUtil()->supportsExtension("GL_EXT_blend_minmax");
}

const char* EXTBlendMinMax::extensionName()
{
    return "EXT_blend_minmax";
}

} // namespace WebCore