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

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

Issue 205903004: WebGL: Return both unprefixed and prefixed supported names from getSupportedExtensions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Explain meaning of EnabledDraftExtension better Created 6 years, 9 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
« 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 registerExtension<ANGLEInstancedArrays>(m_angleInstancedArrays); 122 registerExtension<ANGLEInstancedArrays>(m_angleInstancedArrays);
123 registerExtension<EXTTextureFilterAnisotropic>(m_extTextureFilterAnisotropic , ApprovedExtension, bothPrefixes); 123 registerExtension<EXTTextureFilterAnisotropic>(m_extTextureFilterAnisotropic , ApprovedExtension, bothPrefixes);
124 registerExtension<OESElementIndexUint>(m_oesElementIndexUint); 124 registerExtension<OESElementIndexUint>(m_oesElementIndexUint);
125 registerExtension<OESStandardDerivatives>(m_oesStandardDerivatives); 125 registerExtension<OESStandardDerivatives>(m_oesStandardDerivatives);
126 registerExtension<OESTextureFloat>(m_oesTextureFloat); 126 registerExtension<OESTextureFloat>(m_oesTextureFloat);
127 registerExtension<OESTextureFloatLinear>(m_oesTextureFloatLinear); 127 registerExtension<OESTextureFloatLinear>(m_oesTextureFloatLinear);
128 registerExtension<OESTextureHalfFloat>(m_oesTextureHalfFloat); 128 registerExtension<OESTextureHalfFloat>(m_oesTextureHalfFloat);
129 registerExtension<OESTextureHalfFloatLinear>(m_oesTextureHalfFloatLinear); 129 registerExtension<OESTextureHalfFloatLinear>(m_oesTextureHalfFloatLinear);
130 registerExtension<OESVertexArrayObject>(m_oesVertexArrayObject); 130 registerExtension<OESVertexArrayObject>(m_oesVertexArrayObject);
131 registerExtension<WebGLCompressedTextureATC>(m_webglCompressedTextureATC, Pr efixedExtension, webkitPrefix); 131 registerExtension<WebGLCompressedTextureATC>(m_webglCompressedTextureATC, En abledDraftExtension, webkitPrefix);
132 registerExtension<WebGLCompressedTexturePVRTC>(m_webglCompressedTexturePVRTC , PrefixedExtension, webkitPrefix); 132 registerExtension<WebGLCompressedTexturePVRTC>(m_webglCompressedTexturePVRTC , EnabledDraftExtension, webkitPrefix);
133 registerExtension<WebGLCompressedTextureS3TC>(m_webglCompressedTextureS3TC, ApprovedExtension, bothPrefixes); 133 registerExtension<WebGLCompressedTextureS3TC>(m_webglCompressedTextureS3TC, ApprovedExtension, bothPrefixes);
134 registerExtension<WebGLDepthTexture>(m_webglDepthTexture, ApprovedExtension, bothPrefixes); 134 registerExtension<WebGLDepthTexture>(m_webglDepthTexture, ApprovedExtension, bothPrefixes);
135 registerExtension<WebGLDrawBuffers>(m_webglDrawBuffers); 135 registerExtension<WebGLDrawBuffers>(m_webglDrawBuffers);
136 registerExtension<WebGLLoseContext>(m_webglLoseContext, ApprovedExtension, b othPrefixes); 136 registerExtension<WebGLLoseContext>(m_webglLoseContext, ApprovedExtension, b othPrefixes);
137 137
138 // Register draft extensions. 138 // Register draft extensions.
139 registerExtension<EXTFragDepth>(m_extFragDepth, DraftExtension); 139 registerExtension<EXTFragDepth>(m_extFragDepth, DraftExtension);
140 140
141 // Register privileged extensions. 141 // Register privileged extensions.
142 registerExtension<WebGLDebugRendererInfo>(m_webglDebugRendererInfo, WebGLDeb ugRendererInfoExtension); 142 registerExtension<WebGLDebugRendererInfo>(m_webglDebugRendererInfo, WebGLDeb ugRendererInfoExtension);
143 registerExtension<WebGLDebugShaders>(m_webglDebugShaders, PrivilegedExtensio n); 143 registerExtension<WebGLDebugShaders>(m_webglDebugShaders, PrivilegedExtensio n);
144 } 144 }
145 145
146 } // namespace WebCore 146 } // 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