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

Side by Side Diff: samples/sobel.html

Issue 274042: Remove pack from calls to texture.getRenderSurface... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 2 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 | « samples/shadow-map.html ('k') | no next file » | 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 2009, Google Inc. 2 Copyright 2009, Google Inc.
3 All rights reserved. 3 All rights reserved.
4 4
5 Redistribution and use in source and binary forms, with or without 5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are 6 modification, are permitted provided that the following conditions are
7 met: 7 met:
8 8
9 * Redistributions of source code must retain the above copyright 9 * Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer. 10 notice, this list of conditions and the following disclaimer.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 convEffect.loadFromFXString(convFXString); 175 convEffect.loadFromFXString(convFXString);
176 176
177 var convMaterial = g_pack.createObject('Material'); 177 var convMaterial = g_pack.createObject('Material');
178 convMaterial.drawList = viewInfo.performanceDrawList; 178 convMaterial.drawList = viewInfo.performanceDrawList;
179 convMaterial.effect = convEffect; 179 convMaterial.effect = convEffect;
180 convEffect.createUniformParameters(convMaterial); 180 convEffect.createUniformParameters(convMaterial);
181 return convMaterial; 181 return convMaterial;
182 } 182 }
183 183
184 function createRenderSurfaceSet(texture) { 184 function createRenderSurfaceSet(texture) {
185 var renderSurface = texture.getRenderSurface(0, g_pack); 185 var renderSurface = texture.getRenderSurface(0);
186 186
187 // Create the depth-stencil buffer required when rendering this pass. 187 // Create the depth-stencil buffer required when rendering this pass.
188 var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH, 188 var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH,
189 RENDER_TARGET_HEIGHT); 189 RENDER_TARGET_HEIGHT);
190 190
191 var renderSurfaceSet = g_pack.createObject('RenderSurfaceSet'); 191 var renderSurfaceSet = g_pack.createObject('RenderSurfaceSet');
192 renderSurfaceSet.renderSurface = renderSurface; 192 renderSurfaceSet.renderSurface = renderSurface;
193 renderSurfaceSet.renderDepthStencilSurface = depthSurface; 193 renderSurfaceSet.renderDepthStencilSurface = depthSurface;
194 renderSurfaceSet.parent = g_client.renderGraphRoot; 194 renderSurfaceSet.parent = g_client.renderGraphRoot;
195 return renderSurfaceSet; 195 return renderSurfaceSet;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 334
335 // #o3d VertexShaderEntryPoint SobelVS 335 // #o3d VertexShaderEntryPoint SobelVS
336 // #o3d PixelShaderEntryPoint SobelPS 336 // #o3d PixelShaderEntryPoint SobelPS
337 // #o3d MatrixLoadOrder RowMajor 337 // #o3d MatrixLoadOrder RowMajor
338 </textarea> 338 </textarea>
339 </div> 339 </div>
340 </body> 340 </body>
341 341
342 </html> 342 </html>
OLDNEW
« no previous file with comments | « samples/shadow-map.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698