Pass time to render functions and rename them to renderFrame_

This commit is contained in:
Tom Payne
2012-10-04 12:03:52 +02:00
parent 783dfe0618
commit 756792b8db
8 changed files with 16 additions and 12 deletions

View File

@@ -690,7 +690,7 @@ ol.Map.prototype.render = function() {
/**
* Request that render be called some time in the future.
* Request that renderFrame_ be called some time in the future.
*/
ol.Map.prototype.requestRenderFrame = function() {
if (this.freezeRenderingCount_ === 0) {
@@ -714,7 +714,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
if (goog.DEBUG) {
this.logger.info('renderFrame_');
}
this.renderer_.render();
this.renderer_.renderFrame(time);
this.dirty_ = false;
if (goog.DEBUG) {
this.logger.info('postrender');