summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webgl/oes_fbo_render_mipmap.cc
blob: c5649434665e61b9026c4729c2d4272054184864 (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
// 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/oes_fbo_render_mipmap.h"

namespace blink {

OESFboRenderMipmap::OESFboRenderMipmap(WebGLRenderingContextBase* context)
    : WebGLExtension(context) {
  context->ExtensionsUtil()->EnsureExtensionEnabled("GL_OES_fbo_render_mipmap");
}

WebGLExtensionName OESFboRenderMipmap::GetName() const {
  return kOESFboRenderMipmapName;
}

bool OESFboRenderMipmap::Supported(WebGLRenderingContextBase* context) {
  return context->ExtensionsUtil()->SupportsExtension(
      "GL_OES_fbo_render_mipmap");
}

const char* OESFboRenderMipmap::ExtensionName() {
  return "OES_fbo_render_mipmap";
}

}  // namespace blink