Changeset 164477 in webkit
- Timestamp:
- Feb 20, 2014 11:46:30 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 1 deleted
- 16 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r164476 r164477 1 2014-02-20 ChangSeok Oh <changseok.oh@collabora.com> 2 3 Rename EXT_draw_buffers to WEBGL_draw_buffers 4 https://bugs.webkit.org/show_bug.cgi?id=128894 5 6 Reviewed by Dean Jackson. 7 8 webgl-draw-buffers.html came from Khronos's webgl conformace tests. It requires 9 some new apis in webgl-test-utils.js so that it is updated as well. The attached 10 test results are for mac. But they're expected to fail since EXT_draw_buffers are 11 disabled with some reason. See WebGLDrawBuffers::supported. So I add a line 12 for webgl-draw-buffers.html to mac/TestExpectations. 13 14 * fast/canvas/webgl/resources/webgl-test-utils.js: 15 (WebGLTestUtils): 16 (WebGLTestUtils.): 17 * fast/canvas/webgl/webgl-draw-buffers-expected.txt: Added. 18 * fast/canvas/webgl/webgl-draw-buffers.html: Added. 19 * platform/mac-mountainlion/fast/canvas/webgl/webgl-draw-buffers-expected.txt: Added. 20 * platform/mac/TestExpectations: 21 1 22 2014-02-20 Ryosuke Niwa <rniwa@webkit.org> 2 23 -
trunk/LayoutTests/fast/canvas/webgl/resources/webgl-test-utils.js
r162565 r164477 294 294 [opt_positionLocation]); 295 295 setupUnitQuad(gl, opt_positionLocation); 296 return program; 297 }; 298 299 /** 300 * Creates a program, attaches shaders, binds attrib locations, links the 301 * program and calls useProgram. 302 * @param {!WebGLRenderingContext} gl The WebGLRenderingContext to use. 303 * @param {!Array.<!WebGLShader|string>} shaders The shaders to 304 * attach, or the source, or the id of a script to get 305 * the source from. 306 * @param {!Array.<string>} opt_attribs The attribs names. 307 * @param {!Array.<number>} opt_locations The locations for the attribs. 308 */ 309 var setupProgram = function(gl, shaders, opt_attribs, opt_locations) { 310 var realShaders = []; 311 var program = gl.createProgram(); 312 var shaderCount = 0; 313 for (var ii = 0; ii < shaders.length; ++ii) { 314 var shader = shaders[ii]; 315 var shaderType = undefined; 316 if (typeof shader == 'string') { 317 var element = document.getElementById(shader); 318 if (element) { 319 if (element.type != "x-shader/x-vertex" && element.type != "x-shader/x-fragment") 320 shaderType = ii ? gl.FRAGMENT_SHADER : gl.VERTEX_SHADER; 321 shader = loadShaderFromScript(gl, shader, shaderType); 322 } else if (endsWith(shader, ".vert")) { 323 shader = loadShaderFromFile(gl, shader, gl.VERTEX_SHADER); 324 } else if (endsWith(shader, ".frag")) { 325 shader = loadShaderFromFile(gl, shader, gl.FRAGMENT_SHADER); 326 } else { 327 shader = loadShader(gl, shader, ii ? gl.FRAGMENT_SHADER : gl.VERTEX_SHADER); 328 } 329 } 330 if (shader) { 331 ++shaderCount; 332 gl.attachShader(program, shader); 333 } 334 } 335 if (shaderCount != 2) { 336 error("Error in compiling shader"); 337 return null; 338 } 339 if (opt_attribs) { 340 for (var ii = 0; ii < opt_attribs.length; ++ii) { 341 gl.bindAttribLocation( 342 program, 343 opt_locations ? opt_locations[ii] : ii, 344 opt_attribs[ii]); 345 } 346 } 347 gl.linkProgram(program); 348 349 // Check the link status 350 var linked = gl.getProgramParameter(program, gl.LINK_STATUS); 351 if (!linked) { 352 // something went wrong with the link 353 lastError = gl.getProgramInfoLog (program); 354 error("Error in program linking:" + lastError); 355 356 gl.deleteProgram(program); 357 return null; 358 } 359 360 gl.useProgram(program); 296 361 return program; 297 362 }; … … 573 638 gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); 574 639 gl.drawArrays(gl.TRIANGLES, 0, 6); 640 }; 641 642 /** 643 * Draws a previously setupUnitQuad. 644 * @param {!WebGLRenderingContext} gl The WebGLRenderingContext to use. 645 */ 646 var drawUnitQuad = function(gl) { 647 gl.drawArrays(gl.TRIANGLES, 0, 6); 648 }; 649 650 /** 651 * Clears then Draws a previously setupUnitQuad. 652 * @param {!WebGLRenderingContext} gl The WebGLRenderingContext to use. 653 * @param {!Array.<number>} opt_color The color to fill clear with before 654 * drawing. A 4 element array where each element is in the range 0 to 655 * 255. Default [255, 255, 255, 255] 656 */ 657 var clearAndDrawUnitQuad = function(gl, opt_color) { 658 opt_color = opt_color || [255, 255, 255, 255]; 659 gl.clearColor( 660 opt_color[0] / 255, 661 opt_color[1] / 255, 662 opt_color[2] / 255, 663 opt_color[3] / 255); 664 gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); 665 drawUnitQuad(gl); 575 666 }; 576 667 … … 1249 1340 1250 1341 /** 1342 * Gets the content of script. 1343 * @param {string} scriptId The id of the script tag. 1344 * @return {string} The content of the script. 1345 */ 1346 var getScript = function(scriptId) { 1347 var shaderScript = document.getElementById(scriptId); 1348 if (!shaderScript) { 1349 throw("*** Error: unknown script element" + scriptId); 1350 } 1351 return shaderScript.text; 1352 }; 1353 1354 /** 1251 1355 * Loads a shader from a script tag. 1252 1356 * @param {!WebGLContext} gl The WebGLContext to use. … … 1455 1559 }; 1456 1560 1561 /** 1562 * Inserts a 'label' that when clicked expands to the pre 1563 * formatted text supplied by 'source'. 1564 * @param {!HTMLElement} element element to append label to. 1565 * @param {string} label label for anchor. 1566 * @param {string} source preformatted text to expand to. 1567 * @param {string} opt_url url of source. If provided a 2nd link 1568 * will be added. 1569 */ 1570 var addShaderSource = function(element, label, source, opt_url) { 1571 var div = document.createElement("div"); 1572 var s = document.createElement("pre"); 1573 s.className = "shader-source"; 1574 s.style.display = "none"; 1575 var ol = document.createElement("ol"); 1576 //s.appendChild(document.createTextNode(source)); 1577 var lines = source.split("\n"); 1578 for (var ii = 0; ii < lines.length; ++ii) { 1579 var line = lines[ii]; 1580 var li = document.createElement("li"); 1581 li.appendChild(document.createTextNode(line)); 1582 ol.appendChild(li); 1583 } 1584 s.appendChild(ol); 1585 var l = document.createElement("a"); 1586 l.href = "show-shader-source"; 1587 l.appendChild(document.createTextNode(label)); 1588 l.addEventListener('click', function(event) { 1589 if (event.preventDefault) { 1590 event.preventDefault(); 1591 } 1592 s.style.display = (s.style.display == 'none') ? 'block' : 'none'; 1593 return false; 1594 }, false); 1595 div.appendChild(l); 1596 if (opt_url) { 1597 var u = document.createElement("a"); 1598 u.href = opt_url; 1599 div.appendChild(document.createTextNode(" ")); 1600 u.appendChild(document.createTextNode("(" + opt_url + ")")); 1601 div.appendChild(u); 1602 } 1603 div.appendChild(s); 1604 element.appendChild(div); 1605 }; 1606 1457 1607 // Add your prefix here. 1458 1608 var browserPrefixes = [ … … 1497 1647 } 1498 1648 } 1649 }; 1650 1651 var replaceRE = /\$\((\w+)\)/g; 1652 1653 /** 1654 * Replaces strings with property values. 1655 * Given a string like "hello $(first) $(last)" and an object 1656 * like {first:"John", last:"Smith"} will return 1657 * "hello John Smith". 1658 * @param {string} str String to do replacements in. 1659 * @param {...} 1 or more objects containing properties. 1660 */ 1661 var replaceParams = function(str) { 1662 var args = arguments; 1663 return str.replace(replaceRE, function(str, p1, offset, s) { 1664 for (var ii = 1; ii < args.length; ++ii) { 1665 if (args[ii][p1] !== undefined) { 1666 return args[ii][p1]; 1667 } 1668 } 1669 throw "unknown string param '" + p1 + "'"; 1670 }); 1499 1671 }; 1500 1672 … … 1575 1747 1576 1748 return { 1749 addShaderSource: addShaderSource, 1577 1750 cancelAnimFrame: cancelAnimFrame, 1578 1751 clipToRange: clipToRange, … … 1584 1757 checkCanvasRectColor: checkCanvasRectColor, 1585 1758 createColoredTexture: createColoredTexture, 1759 clearAndDrawUnitQuad: clearAndDrawUnitQuad, 1586 1760 drawQuad: drawQuad, 1761 drawUnitQuad: drawUnitQuad, 1587 1762 drawIndexedQuad: drawIndexedQuad, 1588 1763 drawUByteColorQuad: drawUByteColorQuad, … … 1592 1767 getFileListAsync: getFileListAsync, 1593 1768 getLastError: getLastError, 1769 getScript: getScript, 1594 1770 getSupportedExtensionWithKnownPrefixes: getSupportedExtensionWithKnownPrefixes, 1595 1771 getUrlArguments: getUrlArguments, … … 1628 1804 readFile: readFile, 1629 1805 readFileList: readFileList, 1806 replaceParams: replaceParams, 1630 1807 requestAnimFrame: requestAnimFrame, 1631 1808 waitFrames: waitFrames, -
trunk/LayoutTests/platform/mac/TestExpectations
r164013 r164477 947 947 webkit.org/b/98257 fast/canvas/webgl/oes-element-index-uint.html [ Failure Pass ] 948 948 949 # Expected to fail until GL_EXT_draw_buffers works properly for DARWIN. See WebGLDrawBuffers::supported 950 webkit.org/b/112486 fast/canvas/webgl/webgl-draw-buffers.html [ Failure Pass ] 951 949 952 # Resource Timing is not enable yet, skip it. 950 953 webkit.org/b/61138 http/tests/w3c/webperf/submission/Intel/resource-timing [ Skip ] -
trunk/Source/WebCore/CMakeLists.txt
r164254 r164477 504 504 html/canvas/CanvasRenderingContext2D.idl 505 505 html/canvas/DOMPath.idl 506 html/canvas/EXTDrawBuffers.idl507 506 html/canvas/EXTTextureFilterAnisotropic.idl 508 507 html/canvas/OESElementIndexUint.idl … … 523 522 html/canvas/WebGLDebugShaders.idl 524 523 html/canvas/WebGLDepthTexture.idl 524 html/canvas/WebGLDrawBuffers.idl 525 525 html/canvas/WebGLFramebuffer.idl 526 526 html/canvas/WebGLLoseContext.idl … … 1494 1494 html/canvas/CanvasRenderingContext2D.cpp 1495 1495 html/canvas/CanvasStyle.cpp 1496 html/canvas/EXTDrawBuffers.cpp1497 1496 html/canvas/EXTTextureFilterAnisotropic.cpp 1498 1497 html/canvas/OESElementIndexUint.cpp … … 1514 1513 html/canvas/WebGLDebugShaders.cpp 1515 1514 html/canvas/WebGLDepthTexture.cpp 1515 html/canvas/WebGLDrawBuffers.cpp 1516 1516 html/canvas/WebGLExtension.cpp 1517 1517 html/canvas/WebGLFramebuffer.cpp … … 2618 2618 list(APPEND WebCore_SOURCES 2619 2619 html/canvas/ANGLEInstancedArrays.cpp 2620 html/canvas/EXTDrawBuffers.cpp2621 2620 html/canvas/EXTTextureFilterAnisotropic.cpp 2622 2621 html/canvas/OESElementIndexUint.cpp … … 2638 2637 html/canvas/WebGLDebugShaders.cpp 2639 2638 html/canvas/WebGLDepthTexture.cpp 2639 html/canvas/WebGLDrawBuffers.cpp 2640 2640 html/canvas/WebGLExtension.cpp 2641 2641 html/canvas/WebGLFramebuffer.cpp … … 2655 2655 list(APPEND WebCore_IDL_FILES 2656 2656 html/canvas/ANGLEInstancedArrays.idl 2657 html/canvas/EXTDrawBuffers.idl2658 2657 html/canvas/EXTTextureFilterAnisotropic.idl 2659 2658 html/canvas/OESElementIndexUint.idl … … 2674 2673 html/canvas/WebGLDebugShaders.idl 2675 2674 html/canvas/WebGLDepthTexture.idl 2675 html/canvas/WebGLDrawBuffers.idl 2676 2676 html/canvas/WebGLFramebuffer.idl 2677 2677 html/canvas/WebGLLoseContext.idl -
trunk/Source/WebCore/ChangeLog
r164475 r164477 1 2014-02-20 ChangSeok Oh <changseok.oh@collabora.com> 2 3 Rename EXT_draw_buffers to WEBGL_draw_buffers 4 https://bugs.webkit.org/show_bug.cgi?id=128894 5 6 Reviewed by Dean Jackson. 7 8 I noticed the related spec has changed. Accordingly chromium also changed its implementation 9 to meet the spec. So here I'd like to apply it to webkit as well. 10 11 Merged from Blink (patch by bajones): 12 https://src.chromium.org/viewvc/blink?revision=152065&view=revision 13 14 Test: fast/canvas/webgl/webgl-draw-buffers.html 15 16 * CMakeLists.txt: 17 * DerivedSources.cpp: 18 * DerivedSources.make: 19 * GNUmakefile.list.am: 20 * WebCore.vcxproj/WebCore.vcxproj: 21 * WebCore.vcxproj/WebCore.vcxproj.filters: 22 * WebCore.xcodeproj/project.pbxproj: 23 * bindings/js/JSWebGLRenderingContextCustom.cpp: 24 (WebCore::toJS): 25 * html/canvas/EXTDrawBuffers.idl: Removed. 26 * html/canvas/WebGLDrawBuffers.cpp: Renamed from Source/WebCore/html/canvas/EXTDrawBuffers.cpp. 27 (WebCore::WebGLDrawBuffers::WebGLDrawBuffers): 28 (WebCore::WebGLDrawBuffers::~WebGLDrawBuffers): 29 (WebCore::WebGLDrawBuffers::getName): 30 (WebCore::WebGLDrawBuffers::create): 31 (WebCore::WebGLDrawBuffers::supported): 32 (WebCore::WebGLDrawBuffers::drawBuffersWEBGL): 33 (WebCore::WebGLDrawBuffers::satisfiesWebGLRequirements): 34 * html/canvas/WebGLDrawBuffers.h: Renamed from Source/WebCore/html/canvas/EXTDrawBuffers.h. 35 * html/canvas/WebGLDrawBuffers.idl: Added. 36 * html/canvas/WebGLExtension.h: 37 * html/canvas/WebGLFramebuffer.cpp: 38 (WebCore::WebGLFramebuffer::drawBuffersIfNecessary): 39 * html/canvas/WebGLRenderingContext.cpp: 40 (WebCore::WebGLRenderingContext::getExtension): 41 (WebCore::WebGLRenderingContext::getParameter): 42 (WebCore::WebGLRenderingContext::getSupportedExtensions): 43 (WebCore::WebGLRenderingContext::validateFramebufferFuncParameters): 44 (WebCore::WebGLRenderingContext::supportsDrawBuffers): 45 * html/canvas/WebGLRenderingContext.h: 46 1 47 2014-02-20 Ryosuke Niwa <rniwa@webkit.org> 2 48 -
trunk/Source/WebCore/DerivedSources.cpp
r164131 r164477 42 42 #include "JSCanvasRenderingContext2D.cpp" 43 43 #if ENABLE(WEBGL) 44 #include "JSEXTDrawBuffers.cpp"45 44 #include "JSEXTTextureFilterAnisotropic.cpp" 46 45 #include "JSOESElementIndexUint.cpp" … … 61 60 #include "JSWebGLDebugShaders.cpp" 62 61 #include "JSWebGLDepthTexture.cpp" 62 #include "JSWebGLDrawBuffers.cpp" 63 63 #include "JSWebGLFramebuffer.cpp" 64 64 #include "JSWebGLLoseContext.cpp" -
trunk/Source/WebCore/DerivedSources.make
r164473 r164477 413 413 $(WebCore)/html/canvas/CanvasRenderingContext2D.idl \ 414 414 $(WebCore)/html/canvas/DOMPath.idl \ 415 $(WebCore)/html/canvas/EXTDrawBuffers.idl \416 415 $(WebCore)/html/canvas/EXTTextureFilterAnisotropic.idl \ 417 416 $(WebCore)/html/canvas/OESElementIndexUint.idl \ … … 432 431 $(WebCore)/html/canvas/WebGLDebugShaders.idl \ 433 432 $(WebCore)/html/canvas/WebGLDepthTexture.idl \ 433 $(WebCore)/html/canvas/WebGLDrawBuffers.idl \ 434 434 $(WebCore)/html/canvas/WebGLFramebuffer.idl \ 435 435 $(WebCore)/html/canvas/WebGLLoseContext.idl \ -
trunk/Source/WebCore/GNUmakefile.list.am
r164254 r164477 237 237 DerivedSources/WebCore/JSErrorEvent.cpp \ 238 238 DerivedSources/WebCore/JSErrorEvent.h \ 239 DerivedSources/WebCore/JSEXTDrawBuffers.cpp \240 DerivedSources/WebCore/JSEXTDrawBuffers.h \241 239 DerivedSources/WebCore/JSEXTTextureFilterAnisotropic.cpp \ 242 240 DerivedSources/WebCore/JSEXTTextureFilterAnisotropic.h \ … … 772 770 DerivedSources/WebCore/JSWebGLDepthTexture.cpp \ 773 771 DerivedSources/WebCore/JSWebGLDepthTexture.h \ 772 DerivedSources/WebCore/JSWebGLDrawBuffers.cpp \ 773 DerivedSources/WebCore/JSWebGLDrawBuffers.h \ 774 774 DerivedSources/WebCore/JSWebGLFramebuffer.cpp \ 775 775 DerivedSources/WebCore/JSWebGLFramebuffer.h \ … … 1512 1512 $(WebCore)/html/canvas/CanvasRenderingContext2D.idl \ 1513 1513 $(WebCore)/html/canvas/DOMPath.idl \ 1514 $(WebCore)/html/canvas/EXTDrawBuffers.idl \1515 1514 $(WebCore)/html/canvas/EXTTextureFilterAnisotropic.idl \ 1516 1515 $(WebCore)/html/canvas/OESStandardDerivatives.idl \ … … 1531 1530 $(WebCore)/html/canvas/WebGLDebugShaders.idl \ 1532 1531 $(WebCore)/html/canvas/WebGLDepthTexture.idl \ 1532 $(WebCore)/html/canvas/WebGLDrawBuffers.idl \ 1533 1533 $(WebCore)/html/canvas/WebGLFramebuffer.idl \ 1534 1534 $(WebCore)/html/canvas/WebGLLoseContext.idl \ … … 3248 3248 Source/WebCore/html/canvas/CanvasStyle.h \ 3249 3249 Source/WebCore/html/canvas/DOMPath.h \ 3250 Source/WebCore/html/canvas/EXTDrawBuffers.cpp \3251 Source/WebCore/html/canvas/EXTDrawBuffers.h \3252 3250 Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.cpp \ 3253 3251 Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.h \ … … 3289 3287 Source/WebCore/html/canvas/WebGLDepthTexture.cpp \ 3290 3288 Source/WebCore/html/canvas/WebGLDepthTexture.h \ 3289 Source/WebCore/html/canvas/WebGLDrawBuffers.cpp \ 3290 Source/WebCore/html/canvas/WebGLDrawBuffers.h \ 3291 3291 Source/WebCore/html/canvas/WebGLFramebuffer.cpp \ 3292 3292 Source/WebCore/html/canvas/WebGLFramebuffer.h \ -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r164254 r164477 305 305 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 306 306 </ClCompile> 307 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSEXTDrawBuffers.cpp">308 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>309 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>310 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>311 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>312 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>313 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>314 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>315 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>316 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>317 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>318 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>319 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>320 </ClCompile>321 307 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSEXTTextureFilterAnisotropic.cpp"> 322 308 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> … … 558 544 </ClCompile> 559 545 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDepthTexture.cpp"> 546 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 547 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> 548 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild> 549 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild> 550 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild> 551 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild> 552 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 553 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> 554 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild> 555 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild> 556 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild> 557 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 558 </ClCompile> 559 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDrawBuffers.cpp"> 560 560 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 561 561 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> … … 6510 6510 <ClCompile Include="..\html\canvas\CanvasContextAttributes.cpp" /> 6511 6511 <ClCompile Include="..\html\canvas\CanvasPathMethods.cpp" /> 6512 <ClCompile Include="..\html\canvas\EXTDrawBuffers.cpp" />6513 6512 <ClCompile Include="..\html\canvas\EXTTextureFilterAnisotropic.cpp" /> 6514 6513 <ClCompile Include="..\html\canvas\OESElementIndexUint.cpp" /> … … 6530 6529 <ClCompile Include="..\html\canvas\WebGLDebugShaders.cpp" /> 6531 6530 <ClCompile Include="..\html\canvas\WebGLDepthTexture.cpp" /> 6531 <ClCompile Include="..\html\canvas\WebGLDrawBuffers.cpp" /> 6532 6532 <ClCompile Include="..\html\canvas\WebGLExtension.cpp" /> 6533 6533 <ClCompile Include="..\html\canvas\WebGLFramebuffer.cpp" /> … … 18360 18360 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\XPathGrammar.h" /> 18361 18361 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSANGLEInstancedArrays.h" /> 18362 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSEXTDrawBuffers.h" />18363 18362 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSEXTTextureFilterAnisotropic.h" /> 18364 18363 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSOESElementIndexUint.h" /> … … 18379 18378 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDebugShaders.h" /> 18380 18379 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDepthTexture.h" /> 18380 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDrawBuffers.h" /> 18381 18381 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLFramebuffer.h" /> 18382 18382 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLLoseContext.h" /> … … 18475 18475 <ClInclude Include="..\html\canvas\CanvasContextAttributes.h" /> 18476 18476 <ClInclude Include="..\html\canvas\CanvasPathMethods.h" /> 18477 <ClInclude Include="..\html\canvas\EXTDrawBuffers.h" />18478 18477 <ClInclude Include="..\html\canvas\EXTTextureFilterAnisotropic.h" /> 18479 18478 <ClInclude Include="..\html\canvas\OESElementIndexUint.h" /> … … 18496 18495 <ClInclude Include="..\html\canvas\WebGLDebugShaders.h" /> 18497 18496 <ClInclude Include="..\html\canvas\WebGLDepthTexture.h" /> 18497 <ClInclude Include="..\html\canvas\WebGLDrawBuffers.h" /> 18498 18498 <ClInclude Include="..\html\canvas\WebGLExtension.h" /> 18499 18499 <ClInclude Include="..\html\canvas\WebGLFramebuffer.h" /> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r164254 r164477 6464 6464 <Filter>DerivedSources</Filter> 6465 6465 </ClCompile> 6466 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDrawBuffers.cpp"> 6467 <Filter>DerivedSources</Filter> 6468 </ClCompile> 6466 6469 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLFramebuffer.cpp"> 6467 6470 <Filter>DerivedSources</Filter> … … 6495 6498 </ClCompile> 6496 6499 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSANGLEInstancedArrays.cpp"> 6497 <Filter>DerivedSources</Filter>6498 </ClCompile>6499 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSEXTDrawBuffers.cpp">6500 6500 <Filter>DerivedSources</Filter> 6501 6501 </ClCompile> … … 6560 6560 <Filter>html\canvas</Filter> 6561 6561 </ClCompile> 6562 <ClCompile Include="..\html\canvas\WebGLDrawBuffers.cpp"> 6563 <Filter>html\canvas</Filter> 6564 </ClCompile> 6562 6565 <ClCompile Include="..\html\canvas\WebGLExtension.cpp"> 6563 6566 <Filter>html\canvas</Filter> … … 6621 6624 </ClCompile> 6622 6625 <ClCompile Include="..\html\canvas\OESVertexArrayObject.cpp"> 6623 <Filter>html\canvas</Filter>6624 </ClCompile>6625 <ClCompile Include="..\html\canvas\EXTDrawBuffers.cpp">6626 6626 <Filter>html\canvas</Filter> 6627 6627 </ClCompile> … … 14225 14225 <Filter>DerivedSources</Filter> 14226 14226 </ClInclude> 14227 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLDrawBuffers.h"> 14228 <Filter>DerivedSources</Filter> 14229 </ClInclude> 14227 14230 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLFramebuffer.h"> 14228 14231 <Filter>DerivedSources</Filter> … … 14253 14256 </ClInclude> 14254 14257 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSWebGLVertexArrayObjectOES.h"> 14255 <Filter>DerivedSources</Filter>14256 </ClInclude>14257 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\WebCore\DerivedSources\JSEXTDrawBuffers.h">14258 14258 <Filter>DerivedSources</Filter> 14259 14259 </ClInclude> … … 14324 14324 <Filter>html\canvas</Filter> 14325 14325 </ClInclude> 14326 <ClInclude Include="..\html\canvas\WebGLDrawBuffers.h"> 14327 <Filter>html\canvas</Filter> 14328 </ClInclude> 14326 14329 <ClInclude Include="..\html\canvas\WebGLExtension.h"> 14327 14330 <Filter>html\canvas</Filter> … … 14385 14388 </ClInclude> 14386 14389 <ClInclude Include="..\html\canvas\OESVertexArrayObject.h"> 14387 <Filter>html\canvas</Filter>14388 </ClInclude>14389 <ClInclude Include="..\html\canvas\EXTDrawBuffers.h">14390 14390 <Filter>html\canvas</Filter> 14391 14391 </ClInclude> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r164457 r164477 2011 2011 5A574F28131DB96D00471B88 /* QuotesData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5A574F26131DB96D00471B88 /* QuotesData.cpp */; }; 2012 2012 5A574F29131DB96D00471B88 /* QuotesData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A574F27131DB96D00471B88 /* QuotesData.h */; }; 2013 5B30695D18B3D3450099D5E8 /* WebGLDrawBuffers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5B30695A18B3D3450099D5E8 /* WebGLDrawBuffers.cpp */; }; 2014 5B30695E18B3D3450099D5E8 /* WebGLDrawBuffers.h in Headers */ = {isa = PBXBuildFile; fileRef = 5B30695B18B3D3450099D5E8 /* WebGLDrawBuffers.h */; }; 2013 2015 5B7A208D2E12979B4AE19DE6 /* RenderMathMLSpace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DBFCB0EBFF5CD77EBEB35395 /* RenderMathMLSpace.cpp */; }; 2014 2016 5D21A80213ECE5DF00BB7064 /* WebVTTParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5D21A80013ECE5DF00BB7064 /* WebVTTParser.cpp */; }; … … 2168 2170 6EBF0E5512A8929800DB1709 /* WebGLExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EBF0E5312A8929800DB1709 /* WebGLExtension.h */; }; 2169 2171 6EBF0E7612A9868800DB1709 /* JSOESTextureFloat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EBF0E7412A9868800DB1709 /* JSOESTextureFloat.cpp */; }; 2170 6EBF0E7612A9868800DB170A /* JS EXTDrawBuffers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EBF0E7412A9868800DB170A /* JSEXTDrawBuffers.cpp */; };2172 6EBF0E7612A9868800DB170A /* JSWebGLDrawBuffers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EBF0E7412A9868800DB170A /* JSWebGLDrawBuffers.cpp */; }; 2171 2173 6EBF0E7712A9868800DB1709 /* JSOESTextureFloat.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EBF0E7512A9868800DB1709 /* JSOESTextureFloat.h */; }; 2172 6EBF0E7712A9868800DB170A /* JS EXTDrawBuffers.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EBF0E7512A9868800DB170A /* JSEXTDrawBuffers.h */; };2174 6EBF0E7712A9868800DB170A /* JSWebGLDrawBuffers.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EBF0E7512A9868800DB170A /* JSWebGLDrawBuffers.h */; }; 2173 2175 6EC480A116EA638A00A48DCB /* FloatPolygon.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6EC4809F16EA638A00A48DCB /* FloatPolygon.cpp */; }; 2174 2176 6EC480A216EA638A00A48DCB /* FloatPolygon.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EC480A016EA638A00A48DCB /* FloatPolygon.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 3521 3523 9FA37EFC1172FDA600C4CD55 /* JSScriptProfileNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9FA37EF81172FD9300C4CD55 /* JSScriptProfileNode.cpp */; }; 3522 3524 9FA37EFD1172FDA600C4CD55 /* JSScriptProfileNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FA37EF91172FD9300C4CD55 /* JSScriptProfileNode.h */; }; 3523 A024575116CEAA27000E5671 /* EXTDrawBuffers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A024574E16CEAA27000E5671 /* EXTDrawBuffers.cpp */; };3524 A024575216CEAA27000E5671 /* EXTDrawBuffers.h in Headers */ = {isa = PBXBuildFile; fileRef = A024574F16CEAA27000E5671 /* EXTDrawBuffers.h */; };3525 3525 A07D3355152B630E001B6393 /* JSWebGLShaderPrecisionFormat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A07D3353152B630E001B6393 /* JSWebGLShaderPrecisionFormat.cpp */; }; 3526 3526 A07D3356152B630E001B6393 /* JSWebGLShaderPrecisionFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = A07D3354152B630E001B6393 /* JSWebGLShaderPrecisionFormat.h */; }; … … 8921 8921 5A574F27131DB96D00471B88 /* QuotesData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = QuotesData.h; path = style/QuotesData.h; sourceTree = "<group>"; }; 8922 8922 5A91469E8E9F8485C37A2876 /* JSSVGGraphicsElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSSVGGraphicsElement.cpp; sourceTree = "<group>"; }; 8923 5B30695A18B3D3450099D5E8 /* WebGLDrawBuffers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebGLDrawBuffers.cpp; path = canvas/WebGLDrawBuffers.cpp; sourceTree = "<group>"; }; 8924 5B30695B18B3D3450099D5E8 /* WebGLDrawBuffers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebGLDrawBuffers.h; path = canvas/WebGLDrawBuffers.h; sourceTree = "<group>"; }; 8925 5B30695C18B3D3450099D5E8 /* WebGLDrawBuffers.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = WebGLDrawBuffers.idl; path = canvas/WebGLDrawBuffers.idl; sourceTree = "<group>"; }; 8923 8926 5D21A80013ECE5DF00BB7064 /* WebVTTParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebVTTParser.cpp; sourceTree = "<group>"; }; 8924 8927 5D21A80113ECE5DF00BB7064 /* WebVTTParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebVTTParser.h; sourceTree = "<group>"; }; … … 9091 9094 6EBF0E5312A8929800DB1709 /* WebGLExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebGLExtension.h; path = canvas/WebGLExtension.h; sourceTree = "<group>"; }; 9092 9095 6EBF0E7412A9868800DB1709 /* JSOESTextureFloat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSOESTextureFloat.cpp; sourceTree = "<group>"; }; 9093 6EBF0E7412A9868800DB170A /* JS EXTDrawBuffers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEXTDrawBuffers.cpp; sourceTree = "<group>"; };9096 6EBF0E7412A9868800DB170A /* JSWebGLDrawBuffers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebGLDrawBuffers.cpp; sourceTree = "<group>"; }; 9094 9097 6EBF0E7512A9868800DB1709 /* JSOESTextureFloat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSOESTextureFloat.h; sourceTree = "<group>"; }; 9095 6EBF0E7512A9868800DB170A /* JS EXTDrawBuffers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEXTDrawBuffers.h; sourceTree = "<group>"; };9098 6EBF0E7512A9868800DB170A /* JSWebGLDrawBuffers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWebGLDrawBuffers.h; sourceTree = "<group>"; }; 9096 9099 6EC4809F16EA638A00A48DCB /* FloatPolygon.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FloatPolygon.cpp; sourceTree = "<group>"; }; 9097 9100 6EC480A016EA638A00A48DCB /* FloatPolygon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FloatPolygon.h; sourceTree = "<group>"; }; … … 10477 10480 9FA37EF81172FD9300C4CD55 /* JSScriptProfileNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScriptProfileNode.cpp; sourceTree = "<group>"; }; 10478 10481 9FA37EF91172FD9300C4CD55 /* JSScriptProfileNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScriptProfileNode.h; sourceTree = "<group>"; }; 10479 A024574E16CEAA27000E5671 /* EXTDrawBuffers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = EXTDrawBuffers.cpp; path = canvas/EXTDrawBuffers.cpp; sourceTree = "<group>"; };10480 A024574F16CEAA27000E5671 /* EXTDrawBuffers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EXTDrawBuffers.h; path = canvas/EXTDrawBuffers.h; sourceTree = "<group>"; };10481 A024575016CEAA27000E5671 /* EXTDrawBuffers.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = EXTDrawBuffers.idl; path = canvas/EXTDrawBuffers.idl; sourceTree = "<group>"; };10482 10482 A07D3353152B630E001B6393 /* JSWebGLShaderPrecisionFormat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebGLShaderPrecisionFormat.cpp; sourceTree = "<group>"; }; 10483 10483 A07D3354152B630E001B6393 /* JSWebGLShaderPrecisionFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWebGLShaderPrecisionFormat.h; sourceTree = "<group>"; }; … … 15327 15327 FB91392016AE4B0B001FE682 /* DOMPath.h */, 15328 15328 FB91392116AE4B0B001FE682 /* DOMPath.idl */, 15329 A024574E16CEAA27000E5671 /* EXTDrawBuffers.cpp */,15330 A024574F16CEAA27000E5671 /* EXTDrawBuffers.h */,15331 A024575016CEAA27000E5671 /* EXTDrawBuffers.idl */,15332 15329 7728694B14F8882500F484DC /* EXTTextureFilterAnisotropic.cpp */, 15333 15330 7728694C14F8882500F484DC /* EXTTextureFilterAnisotropic.h */, … … 15387 15384 6E3FAE8D14733FDB00E42307 /* WebGLDepthTexture.h */, 15388 15385 6E3FAE9014733FEA00E42307 /* WebGLDepthTexture.idl */, 15386 5B30695A18B3D3450099D5E8 /* WebGLDrawBuffers.cpp */, 15387 5B30695B18B3D3450099D5E8 /* WebGLDrawBuffers.h */, 15388 5B30695C18B3D3450099D5E8 /* WebGLDrawBuffers.idl */, 15389 15389 6EBF0E5212A8929800DB1709 /* WebGLExtension.cpp */, 15390 15390 6EBF0E5312A8929800DB1709 /* WebGLExtension.h */, … … 18065 18065 2E37E00312DBC5A400A6B233 /* JSDOMURL.cpp */, 18066 18066 2E37E00412DBC5A400A6B233 /* JSDOMURL.h */, 18067 6EBF0E7412A9868800DB170A /* JSEXTDrawBuffers.cpp */,18068 6EBF0E7512A9868800DB170A /* JSEXTDrawBuffers.h */,18069 18067 7728698114FD9ADA00F484DC /* JSEXTTextureFilterAnisotropic.cpp */, 18070 18068 7728698214FD9ADA00F484DC /* JSEXTTextureFilterAnisotropic.h */, … … 18288 18286 6E3FAD3614733F4000E42307 /* JSWebGLDepthTexture.cpp */, 18289 18287 6E3FAD3714733F4000E42307 /* JSWebGLDepthTexture.h */, 18288 6EBF0E7412A9868800DB170A /* JSWebGLDrawBuffers.cpp */, 18289 6EBF0E7512A9868800DB170A /* JSWebGLDrawBuffers.h */, 18290 18290 49C7B9841042D2D30009D447 /* JSWebGLFramebuffer.cpp */, 18291 18291 49C7B9851042D2D30009D447 /* JSWebGLFramebuffer.h */, … … 23549 23549 3FBC4AEC1898810E0046EE38 /* WebVideoFullscreenInterface.h in Headers */, 23550 23550 9767CE0C145ABC13005E64DB /* ExceptionInterfaces.h in Headers */, 23551 A024575216CEAA27000E5671 /* EXTDrawBuffers.h in Headers */,23552 23551 6E67D2A91280E8BD008758F7 /* Extensions3D.h in Headers */, 23553 23552 6E67D2A71280E8A4008758F7 /* Extensions3DOpenGL.h in Headers */, … … 24098 24097 5FC7DC26CFE2563200B85AE4 /* JSEventTarget.h in Headers */, 24099 24098 3314ACEC10892086000F0E56 /* JSExceptionBase.h in Headers */, 24100 6EBF0E7712A9868800DB170A /* JS EXTDrawBuffers.h in Headers */,24099 6EBF0E7712A9868800DB170A /* JSWebGLDrawBuffers.h in Headers */, 24101 24100 7728698414FD9ADA00F484DC /* JSEXTTextureFilterAnisotropic.h in Headers */, 24102 24101 E4E39AFB1330EFA8003AB274 /* TileLayerPool.h in Headers */, … … 25957 25956 CD3E251C18046B0600E27F56 /* GridCoordinate.h in Headers */, 25958 25957 CD3E252418046BCD00E27F56 /* CSSGridTemplateAreasValue.h in Headers */, 25958 5B30695E18B3D3450099D5E8 /* WebGLDrawBuffers.h in Headers */, 25959 25959 CDEF4FD717E85C8F00AEE24B /* GridLength.h in Headers */, 25960 25960 CDE7FC45181904B1002BBB77 /* OrderIterator.h in Headers */, … … 26925 26925 A7CACDB113CE875C00BBBE3F /* ExceptionCodePlaceholder.cpp in Sources */, 26926 26926 148AFDA60AF58360008CC700 /* ExceptionHandlers.mm in Sources */, 26927 A024575116CEAA27000E5671 /* EXTDrawBuffers.cpp in Sources */,26928 26927 6E67D2A61280E8A4008758F7 /* Extensions3DOpenGL.cpp in Sources */, 26929 26928 26F9A83818A046AC00AEB88A /* ViewportConfiguration.cpp in Sources */, … … 27459 27458 BC6090200E91B8EC000C68B5 /* JSEventTargetCustom.cpp in Sources */, 27460 27459 3314ACEB10892086000F0E56 /* JSExceptionBase.cpp in Sources */, 27461 6EBF0E7612A9868800DB170A /* JS EXTDrawBuffers.cpp in Sources */,27460 6EBF0E7612A9868800DB170A /* JSWebGLDrawBuffers.cpp in Sources */, 27462 27461 E45390490EAFD637003695C8 /* WebCoreSystemInterfaceIOS.mm in Sources */, 27463 27462 7728698314FD9ADA00F484DC /* JSEXTTextureFilterAnisotropic.cpp in Sources */, … … 27581 27580 1A85B2100A1B258700D8C87C /* JSHTMLUListElement.cpp in Sources */, 27582 27581 6E4ABCD4138EA0B70071D291 /* JSHTMLUnknownElement.cpp in Sources */, 27582 5B30695D18B3D3450099D5E8 /* WebGLDrawBuffers.cpp in Sources */, 27583 27583 E44614160CD6826900FADA75 /* JSHTMLVideoElement.cpp in Sources */, 27584 27584 BC6C49F30D7DBA0500FFA558 /* JSImageConstructor.cpp in Sources */, -
trunk/Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp
r162565 r164477 31 31 32 32 #include "ANGLEInstancedArrays.h" 33 #include "EXTDrawBuffers.h"34 33 #include "EXTTextureFilterAnisotropic.h" 35 34 #include "ExceptionCode.h" … … 37 36 #include "HTMLImageElement.h" 38 37 #include "JSANGLEInstancedArrays.h" 39 #include "JSEXTDrawBuffers.h"40 38 #include "JSEXTTextureFilterAnisotropic.h" 41 39 #include "JSHTMLCanvasElement.h" … … 56 54 #include "JSWebGLDebugShaders.h" 57 55 #include "JSWebGLDepthTexture.h" 56 #include "JSWebGLDrawBuffers.h" 58 57 #include "JSWebGLFramebuffer.h" 59 58 #include "JSWebGLLoseContext.h" … … 80 79 #include "WebGLDebugShaders.h" 81 80 #include "WebGLDepthTexture.h" 81 #include "WebGLDrawBuffers.h" 82 82 #include "WebGLExtension.h" 83 83 #include "WebGLFramebuffer.h" … … 206 206 case WebGLExtension::WebGLLoseContextName: 207 207 return toJS(exec, globalObject, static_cast<WebGLLoseContext*>(extension)); 208 case WebGLExtension::EXTDrawBuffersName:209 return toJS(exec, globalObject, static_cast<EXTDrawBuffers*>(extension));210 208 case WebGLExtension::EXTTextureFilterAnisotropicName: 211 209 return toJS(exec, globalObject, static_cast<EXTTextureFilterAnisotropic*>(extension)); … … 236 234 case WebGLExtension::WebGLDepthTextureName: 237 235 return toJS(exec, globalObject, static_cast<WebGLDepthTexture*>(extension)); 236 case WebGLExtension::WebGLDrawBuffersName: 237 return toJS(exec, globalObject, static_cast<WebGLDrawBuffers*>(extension)); 238 238 case WebGLExtension::ANGLEInstancedArraysName: 239 239 return toJS(exec, globalObject, static_cast<ANGLEInstancedArrays*>(extension)); -
trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp
r164476 r164477 27 27 28 28 #if ENABLE(WEBGL) 29 30 #include "EXTDrawBuffers.h" 29 #include "WebGLDrawBuffers.h" 31 30 32 31 #include "Extensions3D.h" … … 34 33 namespace WebCore { 35 34 36 EXTDrawBuffers::EXTDrawBuffers(WebGLRenderingContext* context)35 WebGLDrawBuffers::WebGLDrawBuffers(WebGLRenderingContext* context) 37 36 : WebGLExtension(context) 38 37 { 39 38 } 40 39 41 EXTDrawBuffers::~EXTDrawBuffers()40 WebGLDrawBuffers::~WebGLDrawBuffers() 42 41 { 43 42 } 44 43 45 WebGLExtension::ExtensionName EXTDrawBuffers::getName() const44 WebGLExtension::ExtensionName WebGLDrawBuffers::getName() const 46 45 { 47 return WebGLExtension:: EXTDrawBuffersName;46 return WebGLExtension::WebGLDrawBuffersName; 48 47 } 49 48 50 OwnPtr< EXTDrawBuffers> EXTDrawBuffers::create(WebGLRenderingContext* context)49 OwnPtr<WebGLDrawBuffers> WebGLDrawBuffers::create(WebGLRenderingContext* context) 51 50 { 52 return adoptPtr(new EXTDrawBuffers(context));51 return adoptPtr(new WebGLDrawBuffers(context)); 53 52 } 54 53 55 54 // static 56 bool EXTDrawBuffers::supported(WebGLRenderingContext* context)55 bool WebGLDrawBuffers::supported(WebGLRenderingContext* context) 57 56 { 58 57 #if OS(DARWIN) … … 65 64 } 66 65 67 void EXTDrawBuffers::drawBuffersEXT(const Vector<GC3Denum>& buffers)66 void WebGLDrawBuffers::drawBuffersWEBGL(const Vector<GC3Denum>& buffers) 68 67 { 69 68 if (m_context->isContextLost()) … … 73 72 if (!m_context->m_framebufferBinding) { 74 73 if (n != 1) { 75 m_context->synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "drawBuffers EXT", "more than one buffer");74 m_context->synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "drawBuffersWEBGL", "more than one buffer"); 76 75 return; 77 76 } 78 77 if (bufs[0] != GraphicsContext3D::BACK && bufs[0] != GraphicsContext3D::NONE) { 79 m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "drawBuffers EXT", "BACK or NONE");78 m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "drawBuffersWEBGL", "BACK or NONE"); 80 79 return; 81 80 } … … 86 85 } else { 87 86 if (n > m_context->getMaxDrawBuffers()) { 88 m_context->synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "drawBuffers EXT", "more than max draw buffers");87 m_context->synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "drawBuffersWEBGL", "more than max draw buffers"); 89 88 return; 90 89 } 91 90 for (GC3Dsizei i = 0; i < n; ++i) { 92 91 if (bufs[i] != GraphicsContext3D::NONE && bufs[i] != static_cast<GC3Denum>(Extensions3D::COLOR_ATTACHMENT0_EXT + i)) { 93 m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "drawBuffers EXT", "COLOR_ATTACHMENTi_EXT or NONE");92 m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "drawBuffersWEBGL", "COLOR_ATTACHMENTi_EXT or NONE"); 94 93 return; 95 94 } … … 100 99 101 100 // static 102 bool EXTDrawBuffers::satisfiesWebGLRequirements(WebGLRenderingContext* webglContext)101 bool WebGLDrawBuffers::satisfiesWebGLRequirements(WebGLRenderingContext* webglContext) 103 102 { 104 103 GraphicsContext3D* context = webglContext->graphicsContext3D(); -
trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.h
r164476 r164477 24 24 */ 25 25 26 #ifndef EXTDrawBuffers_h27 #define EXTDrawBuffers_h26 #ifndef WebGLDrawBuffers_h 27 #define WebGLDrawBuffers_h 28 28 29 29 #include "WebGLExtension.h" … … 32 32 namespace WebCore { 33 33 34 class EXTDrawBuffers : public WebGLExtension {34 class WebGLDrawBuffers : public WebGLExtension { 35 35 public: 36 static OwnPtr< EXTDrawBuffers> create(WebGLRenderingContext*);36 static OwnPtr<WebGLDrawBuffers> create(WebGLRenderingContext*); 37 37 38 38 static bool supported(WebGLRenderingContext*); 39 39 40 virtual ~ EXTDrawBuffers();40 virtual ~WebGLDrawBuffers(); 41 41 virtual ExtensionName getName() const override; 42 42 43 void drawBuffers EXT(const Vector<GC3Denum>& buffers);43 void drawBuffersWEBGL(const Vector<GC3Denum>& buffers); 44 44 45 45 private: 46 EXTDrawBuffers(WebGLRenderingContext*);46 WebGLDrawBuffers(WebGLRenderingContext*); 47 47 48 48 static bool satisfiesWebGLRequirements(WebGLRenderingContext*); … … 51 51 } // namespace WebCore 52 52 53 #endif // EXTDrawBuffers_h53 #endif // WebGLDrawBuffers_h -
trunk/Source/WebCore/html/canvas/WebGLExtension.h
r162565 r164477 37 37 enum ExtensionName { 38 38 WebGLLoseContextName, 39 EXTDrawBuffersName,40 39 EXTTextureFilterAnisotropicName, 41 40 OESTextureFloatName, … … 49 48 WebGLCompressedTextureS3TCName, 50 49 WebGLDepthTextureName, 50 WebGLDrawBuffersName, 51 51 OESElementIndexUintName, 52 52 WebGLCompressedTextureATCName, -
trunk/Source/WebCore/html/canvas/WebGLFramebuffer.cpp
r162180 r164477 30 30 #include "WebGLFramebuffer.h" 31 31 32 #include "EXTDrawBuffers.h"33 32 #include "Extensions3D.h" 34 33 #include "WebGLContextGroup.h" 34 #include "WebGLDrawBuffers.h" 35 35 #include "WebGLRenderingContext.h" 36 36 … … 602 602 void WebGLFramebuffer::drawBuffersIfNecessary(bool force) 603 603 { 604 if (!context()->m_ extDrawBuffers)604 if (!context()->m_webglDrawBuffers) 605 605 return; 606 606 bool reset = force; -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r164452 r164477 34 34 #include "DOMWindow.h" 35 35 #include "Document.h" 36 #include "EXTDrawBuffers.h"37 36 #include "EXTTextureFilterAnisotropic.h" 38 37 #include "ExceptionCode.h" … … 72 71 #include "WebGLDebugShaders.h" 73 72 #include "WebGLDepthTexture.h" 73 #include "WebGLDrawBuffers.h" 74 74 #include "WebGLFramebuffer.h" 75 75 #include "WebGLLoseContext.h" … … 2479 2479 return m_webglDepthTexture.get(); 2480 2480 } 2481 if (equalIgnoringCase(name, " EXT_draw_buffers") && supportsDrawBuffers()) {2482 if (!m_ extDrawBuffers) {2481 if (equalIgnoringCase(name, "WEBGL_draw_buffers") && supportsDrawBuffers()) { 2482 if (!m_webglDrawBuffers) { 2483 2483 m_context->getExtensions()->ensureEnabled("GL_EXT_draw_buffers"); 2484 m_ extDrawBuffers = EXTDrawBuffers::create(this);2485 } 2486 return m_ extDrawBuffers.get();2484 m_webglDrawBuffers = WebGLDrawBuffers::create(this); 2485 } 2486 return m_webglDrawBuffers.get(); 2487 2487 } 2488 2488 if (equalIgnoringCase(name, "ANGLE_instanced_arrays") && ANGLEInstancedArrays::supported(this)) { … … 2775 2775 return WebGLGetInfo(); 2776 2776 case Extensions3D::MAX_COLOR_ATTACHMENTS_EXT: // EXT_draw_buffers BEGIN 2777 if (m_ extDrawBuffers)2777 if (m_webglDrawBuffers) 2778 2778 return WebGLGetInfo(getMaxColorAttachments()); 2779 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "getParameter", "invalid parameter name, EXT_draw_buffers not enabled");2779 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "getParameter", "invalid parameter name, WEBGL_draw_buffers not enabled"); 2780 2780 return WebGLGetInfo(); 2781 2781 case Extensions3D::MAX_DRAW_BUFFERS_EXT: 2782 if (m_ extDrawBuffers)2782 if (m_webglDrawBuffers) 2783 2783 return WebGLGetInfo(getMaxDrawBuffers()); 2784 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "getParameter", "invalid parameter name, EXT_draw_buffers not enabled");2784 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "getParameter", "invalid parameter name, WEBGL_draw_buffers not enabled"); 2785 2785 return WebGLGetInfo(); 2786 2786 default: 2787 if (m_ extDrawBuffers2787 if (m_webglDrawBuffers 2788 2788 && pname >= Extensions3D::DRAW_BUFFER0_EXT 2789 2789 && pname < static_cast<GC3Denum>(Extensions3D::DRAW_BUFFER0_EXT + getMaxDrawBuffers())) { … … 3006 3006 result.append("WEBGL_depth_texture"); 3007 3007 if (supportsDrawBuffers()) 3008 result.append(" EXT_draw_buffers");3008 result.append("WEBGL_draw_buffers"); 3009 3009 if (ANGLEInstancedArrays::supported(this)) 3010 3010 result.append("ANGLE_instanced_arrays"); … … 5492 5492 break; 5493 5493 default: 5494 if (m_ extDrawBuffers5494 if (m_webglDrawBuffers 5495 5495 && attachment > GraphicsContext3D::COLOR_ATTACHMENT0 5496 5496 && attachment < static_cast<GC3Denum>(GraphicsContext3D::COLOR_ATTACHMENT0 + getMaxColorAttachments())) … … 6081 6081 if (!m_drawBuffersWebGLRequirementsChecked) { 6082 6082 m_drawBuffersWebGLRequirementsChecked = true; 6083 m_drawBuffersSupported = EXTDrawBuffers::supported(this);6083 m_drawBuffersSupported = WebGLDrawBuffers::supported(this); 6084 6084 } 6085 6085 return m_drawBuffersSupported; -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h
r164452 r164477 43 43 44 44 class ANGLEInstancedArrays; 45 class EXTDrawBuffers;46 45 class EXTTextureFilterAnisotropic; 47 46 class HTMLImageElement; … … 68 67 class WebGLDebugShaders; 69 68 class WebGLDepthTexture; 69 class WebGLDrawBuffers; 70 70 class WebGLExtension; 71 71 class WebGLFramebuffer; … … 329 329 330 330 private: 331 friend class EXTDrawBuffers;331 friend class WebGLDrawBuffers; 332 332 friend class WebGLFramebuffer; 333 333 friend class WebGLObject; … … 534 534 535 535 // Enabled extension objects. 536 OwnPtr<EXTDrawBuffers> m_extDrawBuffers;537 536 OwnPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 538 537 OwnPtr<OESTextureFloat> m_oesTextureFloat; … … 550 549 OwnPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; 551 550 OwnPtr<WebGLDepthTexture> m_webglDepthTexture; 551 OwnPtr<WebGLDrawBuffers> m_webglDrawBuffers; 552 552 OwnPtr<ANGLEInstancedArrays> m_angleInstancedArrays; 553 553
Note: See TracChangeset
for help on using the changeset viewer.