Skip to content

Commit

Permalink
Increase the size needed to accelerate canvases to 1/2 of the display…
Browse files Browse the repository at this point in the history
… size
  • Loading branch information
magomez committed Sep 6, 2024
1 parent a2655b2 commit 0df71ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/html/HTMLCanvasElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ bool HTMLCanvasElement::shouldAccelerate(unsigned area) const
return false;

// Do not accelerate canvases that are smaller than 1/4 of the display size
if (area < document().view()->root()->hostWindow()->screenSize().area() / 4)
if (area < document().view()->root()->hostWindow()->screenSize().area() / 2)
return false;

return true;
Expand Down

0 comments on commit 0df71ef

Please sign in to comment.