Line data Source code
1 : /* This Source Code Form is subject to the terms of the Mozilla Public
2 : * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
4 :
5 : #include "WebGLExtensions.h"
6 :
7 : #include "GLContext.h"
8 : #include "mozilla/dom/WebGLRenderingContextBinding.h"
9 : #include "WebGLContext.h"
10 :
11 : namespace mozilla {
12 :
13 0 : WebGLExtensionBlendMinMax::WebGLExtensionBlendMinMax(WebGLContext* webgl)
14 0 : : WebGLExtensionBase(webgl)
15 : {
16 0 : MOZ_ASSERT(IsSupported(webgl), "Don't construct extension if unsupported.");
17 0 : }
18 :
19 0 : WebGLExtensionBlendMinMax::~WebGLExtensionBlendMinMax()
20 : {
21 0 : }
22 :
23 : bool
24 0 : WebGLExtensionBlendMinMax::IsSupported(const WebGLContext* webgl)
25 : {
26 0 : return webgl->GL()->IsSupported(gl::GLFeature::blend_minmax);
27 : }
28 :
29 0 : IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionBlendMinMax, EXT_blend_minmax)
30 :
31 : } // namespace mozilla
|