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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/OESTextureFloat.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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 if (context->extensionsUtil()->ensureExtensionEnabled( 32 if (context->extensionsUtil()->ensureExtensionEnabled(
33 "GL_OES_texture_float")) { 33 "GL_OES_texture_float")) {
34 // Implicitly enable rendering to float textures 34 // Implicitly enable rendering to float textures
35 context->extensionsUtil()->ensureExtensionEnabled( 35 context->extensionsUtil()->ensureExtensionEnabled(
36 "GL_CHROMIUM_color_buffer_float_rgba"); 36 "GL_CHROMIUM_color_buffer_float_rgba");
37 context->extensionsUtil()->ensureExtensionEnabled( 37 context->extensionsUtil()->ensureExtensionEnabled(
38 "GL_CHROMIUM_color_buffer_float_rgb"); 38 "GL_CHROMIUM_color_buffer_float_rgb");
39 } 39 }
40 } 40 }
41 41
42 OESTextureFloat::~OESTextureFloat() {}
43
44 WebGLExtensionName OESTextureFloat::name() const { 42 WebGLExtensionName OESTextureFloat::name() const {
45 return OESTextureFloatName; 43 return OESTextureFloatName;
46 } 44 }
47 45
48 OESTextureFloat* OESTextureFloat::create(WebGLRenderingContextBase* context) { 46 OESTextureFloat* OESTextureFloat::create(WebGLRenderingContextBase* context) {
49 return new OESTextureFloat(context); 47 return new OESTextureFloat(context);
50 } 48 }
51 49
52 bool OESTextureFloat::supported(WebGLRenderingContextBase* context) { 50 bool OESTextureFloat::supported(WebGLRenderingContextBase* context) {
53 return context->extensionsUtil()->supportsExtension("GL_OES_texture_float"); 51 return context->extensionsUtil()->supportsExtension("GL_OES_texture_float");
54 } 52 }
55 53
56 const char* OESTextureFloat::extensionName() { 54 const char* OESTextureFloat::extensionName() {
57 return "OES_texture_float"; 55 return "OES_texture_float";
58 } 56 }
59 57
60 } // namespace blink 58 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698