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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/EXTShaderTextureLOD.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/EXTShaderTextureLOD.h" 5 #include "modules/webgl/EXTShaderTextureLOD.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 EXTShaderTextureLOD::EXTShaderTextureLOD(WebGLRenderingContextBase* context) 9 EXTShaderTextureLOD::EXTShaderTextureLOD(WebGLRenderingContextBase* context)
10 : WebGLExtension(context) { 10 : WebGLExtension(context) {
11 context->extensionsUtil()->ensureExtensionEnabled( 11 context->extensionsUtil()->ensureExtensionEnabled(
12 "GL_EXT_shader_texture_lod"); 12 "GL_EXT_shader_texture_lod");
13 } 13 }
14 14
15 EXTShaderTextureLOD::~EXTShaderTextureLOD() {}
16
17 WebGLExtensionName EXTShaderTextureLOD::name() const { 15 WebGLExtensionName EXTShaderTextureLOD::name() const {
18 return EXTShaderTextureLODName; 16 return EXTShaderTextureLODName;
19 } 17 }
20 18
21 EXTShaderTextureLOD* EXTShaderTextureLOD::create( 19 EXTShaderTextureLOD* EXTShaderTextureLOD::create(
22 WebGLRenderingContextBase* context) { 20 WebGLRenderingContextBase* context) {
23 return new EXTShaderTextureLOD(context); 21 return new EXTShaderTextureLOD(context);
24 } 22 }
25 23
26 bool EXTShaderTextureLOD::supported(WebGLRenderingContextBase* context) { 24 bool EXTShaderTextureLOD::supported(WebGLRenderingContextBase* context) {
27 return context->extensionsUtil()->supportsExtension( 25 return context->extensionsUtil()->supportsExtension(
28 "GL_EXT_shader_texture_lod"); 26 "GL_EXT_shader_texture_lod");
29 } 27 }
30 28
31 const char* EXTShaderTextureLOD::extensionName() { 29 const char* EXTShaderTextureLOD::extensionName() {
32 return "EXT_shader_texture_lod"; 30 return "EXT_shader_texture_lod";
33 } 31 }
34 32
35 } // namespace blink 33 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698