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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/EXTBlendMinMax.cpp

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webgl/EXTBlendMinMax.h" 5 #include "modules/webgl/EXTBlendMinMax.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 EXTBlendMinMax::EXTBlendMinMax(WebGLRenderingContextBase* context) 9 EXTBlendMinMax::EXTBlendMinMax(WebGLRenderingContextBase* context)
10 : WebGLExtension(context) { 10 : WebGLExtension(context) {
11 context->extensionsUtil()->ensureExtensionEnabled("GL_EXT_blend_minmax"); 11 context->extensionsUtil()->ensureExtensionEnabled("GL_EXT_blend_minmax");
12 } 12 }
13 13
14 EXTBlendMinMax::~EXTBlendMinMax() {}
15
16 WebGLExtensionName EXTBlendMinMax::name() const { 14 WebGLExtensionName EXTBlendMinMax::name() const {
17 return EXTBlendMinMaxName; 15 return EXTBlendMinMaxName;
18 } 16 }
19 17
20 EXTBlendMinMax* EXTBlendMinMax::create(WebGLRenderingContextBase* context) { 18 EXTBlendMinMax* EXTBlendMinMax::create(WebGLRenderingContextBase* context) {
21 return new EXTBlendMinMax(context); 19 return new EXTBlendMinMax(context);
22 } 20 }
23 21
24 bool EXTBlendMinMax::supported(WebGLRenderingContextBase* context) { 22 bool EXTBlendMinMax::supported(WebGLRenderingContextBase* context) {
25 return context->extensionsUtil()->supportsExtension("GL_EXT_blend_minmax"); 23 return context->extensionsUtil()->supportsExtension("GL_EXT_blend_minmax");
26 } 24 }
27 25
28 const char* EXTBlendMinMax::extensionName() { 26 const char* EXTBlendMinMax::extensionName() {
29 return "EXT_blend_minmax"; 27 return "EXT_blend_minmax";
30 } 28 }
31 29
32 } // namespace blink 30 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698