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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 360583002: Took newly community approved WebGL extensions out of draft status (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContextBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 WebGLRenderingContext::~WebGLRenderingContext() 118 WebGLRenderingContext::~WebGLRenderingContext()
119 { 119 {
120 120
121 } 121 }
122 122
123 void WebGLRenderingContext::registerContextExtensions() 123 void WebGLRenderingContext::registerContextExtensions()
124 { 124 {
125 // Register extensions. 125 // Register extensions.
126 static const char* const webkitPrefix[] = { "WEBKIT_", 0, };
127 static const char* const bothPrefixes[] = { "", "WEBKIT_", 0, }; 126 static const char* const bothPrefixes[] = { "", "WEBKIT_", 0, };
128 127
129 registerExtension<ANGLEInstancedArrays>(m_angleInstancedArrays); 128 registerExtension<ANGLEInstancedArrays>(m_angleInstancedArrays);
129 registerExtension<EXTBlendMinMax>(m_extBlendMinMax);
130 registerExtension<EXTFragDepth>(m_extFragDepth);
131 registerExtension<EXTShaderTextureLOD>(m_extShaderTextureLOD);
130 registerExtension<EXTTextureFilterAnisotropic>(m_extTextureFilterAnisotropic , ApprovedExtension, bothPrefixes); 132 registerExtension<EXTTextureFilterAnisotropic>(m_extTextureFilterAnisotropic , ApprovedExtension, bothPrefixes);
131 registerExtension<OESElementIndexUint>(m_oesElementIndexUint); 133 registerExtension<OESElementIndexUint>(m_oesElementIndexUint);
132 registerExtension<OESStandardDerivatives>(m_oesStandardDerivatives); 134 registerExtension<OESStandardDerivatives>(m_oesStandardDerivatives);
133 registerExtension<OESTextureFloat>(m_oesTextureFloat); 135 registerExtension<OESTextureFloat>(m_oesTextureFloat);
134 registerExtension<OESTextureFloatLinear>(m_oesTextureFloatLinear); 136 registerExtension<OESTextureFloatLinear>(m_oesTextureFloatLinear);
135 registerExtension<OESTextureHalfFloat>(m_oesTextureHalfFloat); 137 registerExtension<OESTextureHalfFloat>(m_oesTextureHalfFloat);
136 registerExtension<OESTextureHalfFloatLinear>(m_oesTextureHalfFloatLinear); 138 registerExtension<OESTextureHalfFloatLinear>(m_oesTextureHalfFloatLinear);
137 registerExtension<OESVertexArrayObject>(m_oesVertexArrayObject); 139 registerExtension<OESVertexArrayObject>(m_oesVertexArrayObject);
138 registerExtension<WebGLCompressedTextureATC>(m_webglCompressedTextureATC, En abledDraftExtension, webkitPrefix); 140 registerExtension<WebGLCompressedTextureATC>(m_webglCompressedTextureATC, Ap provedExtension, bothPrefixes);
139 registerExtension<WebGLCompressedTexturePVRTC>(m_webglCompressedTexturePVRTC , EnabledDraftExtension, webkitPrefix); 141 registerExtension<WebGLCompressedTextureETC1>(m_webglCompressedTextureETC1);
142 registerExtension<WebGLCompressedTexturePVRTC>(m_webglCompressedTexturePVRTC , ApprovedExtension, bothPrefixes);
140 registerExtension<WebGLCompressedTextureS3TC>(m_webglCompressedTextureS3TC, ApprovedExtension, bothPrefixes); 143 registerExtension<WebGLCompressedTextureS3TC>(m_webglCompressedTextureS3TC, ApprovedExtension, bothPrefixes);
141 registerExtension<WebGLDebugRendererInfo>(m_webglDebugRendererInfo); 144 registerExtension<WebGLDebugRendererInfo>(m_webglDebugRendererInfo);
142 registerExtension<WebGLDebugShaders>(m_webglDebugShaders); 145 registerExtension<WebGLDebugShaders>(m_webglDebugShaders);
143 registerExtension<WebGLDepthTexture>(m_webglDepthTexture, ApprovedExtension, bothPrefixes); 146 registerExtension<WebGLDepthTexture>(m_webglDepthTexture, ApprovedExtension, bothPrefixes);
144 registerExtension<WebGLDrawBuffers>(m_webglDrawBuffers); 147 registerExtension<WebGLDrawBuffers>(m_webglDrawBuffers);
145 registerExtension<WebGLLoseContext>(m_webglLoseContext, ApprovedExtension, b othPrefixes); 148 registerExtension<WebGLLoseContext>(m_webglLoseContext, ApprovedExtension, b othPrefixes);
146
147 // Register draft extensions.
148 registerExtension<EXTBlendMinMax>(m_extBlendMinMax, DraftExtension);
149 registerExtension<EXTFragDepth>(m_extFragDepth, DraftExtension);
150 registerExtension<EXTShaderTextureLOD>(m_extShaderTextureLOD, DraftExtension );
151 registerExtension<WebGLCompressedTextureETC1>(m_webglCompressedTextureETC1, DraftExtension);
152 } 149 }
153 150
154 } // namespace WebCore 151 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698