(_ref8)
| 45287 | } |
| 45288 | |
| 45289 | function logRenderStats(_ref8) { |
| 45290 | var renderStats = _ref8.renderStats, |
| 45291 | pass = _ref8.pass, |
| 45292 | redrawReason = _ref8.redrawReason, |
| 45293 | stats = _ref8.stats; |
| 45294 | |
| 45295 | if (_log.default.priority >= LOG_PRIORITY_DRAW) { |
| 45296 | var totalCount = renderStats.totalCount, |
| 45297 | visibleCount = renderStats.visibleCount, |
| 45298 | compositeCount = renderStats.compositeCount, |
| 45299 | pickableCount = renderStats.pickableCount; |
| 45300 | var primitiveCount = totalCount - compositeCount; |
| 45301 | var hiddenCount = primitiveCount - visibleCount; |
| 45302 | var message = ''; |
| 45303 | message += "RENDER #".concat(renderCount, " ").concat(visibleCount, " (of ").concat(totalCount, " layers) to ").concat(pass, " because ").concat(redrawReason, " "); |
| 45304 | |
| 45305 | if (_log.default.priority > LOG_PRIORITY_DRAW) { |
| 45306 | message += "(".concat(hiddenCount, " hidden, ").concat(compositeCount, " composite ").concat(pickableCount, " pickable)"); |
| 45307 | } |
| 45308 | |
| 45309 | _log.default.log(LOG_PRIORITY_DRAW, message)(); |
| 45310 | |
| 45311 | if (stats) { |
| 45312 | stats.increment('redraw layers', visibleCount); |
| 45313 | } |
| 45314 | } |
| 45315 | } // Get a viewport from a viewport descriptor (which can be a plain viewport) |
| 45316 | |
| 45317 | |
| 45318 | function getViewportFromDescriptor(viewportOrDescriptor) { |
no test coverage detected