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

Side by Side Diff: samples/o3d-webgl/render_surface_set.js

Issue 1092003: Fixed a lot of bugs with render surfaces and bitmaps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « samples/o3d-webgl/primitive.js ('k') | samples/o3d-webgl/shape.js » ('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 2010, Google Inc. 2 * Copyright 2010, 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 this.gl.FRAMEBUFFER, this.renderSurface.framebuffer_); 81 this.gl.FRAMEBUFFER, this.renderSurface.framebuffer_);
82 82
83 this.gl.framebufferRenderbuffer( 83 this.gl.framebufferRenderbuffer(
84 this.gl.FRAMEBUFFER, 84 this.gl.FRAMEBUFFER,
85 this.gl.COLOR_ATTACHMENT0, 85 this.gl.COLOR_ATTACHMENT0,
86 this.gl.RENDERBUFFER, 86 this.gl.RENDERBUFFER,
87 0); 87 0);
88 88
89 this.gl.framebufferRenderbuffer( 89 this.gl.framebufferRenderbuffer(
90 this.gl.FRAMEBUFFER, 90 this.gl.FRAMEBUFFER,
91 this.gl.DEPTH_STENCIL_ATTACHMENT, 91 this.gl.DEPTH_ATTACHMENT,
92 this.gl.RENDERBUFFER, 92 this.gl.RENDERBUFFER,
93 0); 93 0);
94 94
95 this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, 0); 95 this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, 0);
96 }; 96 };
97 97
98 98
99 /** 99 /**
100 * Helper function to set up both the color and depth-stencil targets. 100 * Helper function to set up both the color and depth-stencil targets.
101 * @private 101 * @private
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 * Called during the rendergraph traversal after the children are rendered. 156 * Called during the rendergraph traversal after the children are rendered.
157 * @private 157 * @private
158 */ 158 */
159 o3d.RenderSurfaceSet.prototype.after = function() { 159 o3d.RenderSurfaceSet.prototype.after = function() {
160 this.clearFramebufferObjects_(); 160 this.clearFramebufferObjects_();
161 this.gl.displayInfo.height = this.previousHeight; 161 this.gl.displayInfo.height = this.previousHeight;
162 this.gl.displayInfo.width = this.previousWidth; 162 this.gl.displayInfo.width = this.previousWidth;
163 }; 163 };
164 164
165 165
OLDNEW
« no previous file with comments | « samples/o3d-webgl/primitive.js ('k') | samples/o3d-webgl/shape.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698