File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -579,11 +579,7 @@ class CanvasView extends CanvasBase {
579
579
return view ;
580
580
}
581
581
[ hardwareAcceleratedProperty . getDefault ] ( value ) {
582
- if ( getSDK ( ) >= 28 ) {
583
- return true ;
584
- } else {
585
- return false ;
586
- }
582
+ return getSDK ( ) >= 28 ;
587
583
}
588
584
589
585
[ hardwareAcceleratedProperty . setNative ] ( value ) {
@@ -604,7 +600,7 @@ class CanvasView extends CanvasBase {
604
600
startTime = Date . now ( ) ;
605
601
}
606
602
const scale = this . density ;
607
- canvas . setDensity ( Math . round ( scale * 160 ) ) ;
603
+ // canvas.setDensity(Math.round(scale * 160));
608
604
canvas . scale ( scale , scale ) ; // always scale to device density to work with dp
609
605
this . augmentedCanvas . _native = canvas ;
610
606
this . onDraw ( this . augmentedCanvas as any ) ;
You can’t perform that action at this time.
0 commit comments