summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webgl/ext_texture_norm_16.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webgl/ext_texture_norm_16.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/webgl/ext_texture_norm_16.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webgl/ext_texture_norm_16.cc b/chromium/third_party/blink/renderer/modules/webgl/ext_texture_norm_16.cc
new file mode 100644
index 00000000000..5fc71e9ad30
--- /dev/null
+++ b/chromium/third_party/blink/renderer/modules/webgl/ext_texture_norm_16.cc
@@ -0,0 +1,30 @@
+// 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_texture_norm_16.h"
+
+namespace blink {
+
+EXTTextureNorm16::EXTTextureNorm16(WebGLRenderingContextBase* context)
+ : WebGLExtension(context) {
+ context->ExtensionsUtil()->EnsureExtensionEnabled("GL_EXT_texture_norm16");
+}
+
+WebGLExtensionName EXTTextureNorm16::GetName() const {
+ return kEXTTextureNorm16Name;
+}
+
+EXTTextureNorm16* EXTTextureNorm16::Create(WebGLRenderingContextBase* context) {
+ return MakeGarbageCollected<EXTTextureNorm16>(context);
+}
+
+bool EXTTextureNorm16::Supported(WebGLRenderingContextBase* context) {
+ return context->ExtensionsUtil()->SupportsExtension("GL_EXT_texture_norm16");
+}
+
+const char* EXTTextureNorm16::ExtensionName() {
+ return "EXT_texture_norm16";
+}
+
+} // namespace blink