File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -295,10 +295,7 @@ export class CameraViewRenderer implements ICameraViewRenderer {
295295
296296 private updateImageCache ( imageData : ImageData ) : void {
297297 const size = imageData . data . length ;
298- if (
299- ! this . imageDataCache ||
300- this . imageDataCache . length !== size
301- ) {
298+ if ( ! this . imageDataCache || this . imageDataCache . length !== size ) {
302299 this . imageDataCache = new Uint8ClampedArray ( new ArrayBuffer ( size ) ) ;
303300 this . cachedImageData = null ;
304301 }
@@ -308,7 +305,7 @@ export class CameraViewRenderer implements ICameraViewRenderer {
308305 private getCachedImage ( ) : ImageData {
309306 if ( ! this . imageDataCache ) {
310307 const size = this . pw * this . ph * 4 ;
311- this . imageDataCache = new Uint8ClampedArray ( new ArrayBuffer ( size ) ) ;
308+ this . imageDataCache = new Uint8ClampedArray ( new ArrayBuffer ( size ) ) ;
312309 this . cachedImageData = null ;
313310 }
314311 if (
You can’t perform that action at this time.
0 commit comments