Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: Source/core/html/canvas/EXTBlendMinMax.cpp

Issue 287563002: Added Blink-side support for EXT_blend_minmax WebGL extension (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made sure validation set the right glError Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/EXTBlendMinMax.h ('k') | Source/core/html/canvas/EXTBlendMinMax.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/EXTBlendMinMax.cpp
diff --git a/Source/core/html/canvas/EXTBlendMinMax.cpp b/Source/core/html/canvas/EXTBlendMinMax.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..8ded7388912e5813440cdd17a0747b97c75557b0
--- /dev/null
+++ b/Source/core/html/canvas/EXTBlendMinMax.cpp
@@ -0,0 +1,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
« no previous file with comments | « Source/core/html/canvas/EXTBlendMinMax.h ('k') | Source/core/html/canvas/EXTBlendMinMax.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698