canvas: Use OptimizeSpeed in vello_cpu (#38437)

According to my tests `OptimizeSpeed` slight improves performance and it
does NOT affect WPT results in negative way.

Testing: Tested by existing WPT tests.

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-08-03 14:12:08 +02:00 committed by GitHub
parent fed1953198
commit fe9341dd46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -111,7 +111,7 @@ impl VelloCPUDrawTarget {
self_.ctx.flush();
self_
.ctx
.render_to_pixmap(&mut self_.pixmap, vello_cpu::RenderMode::OptimizeQuality);
.render_to_pixmap(&mut self_.pixmap, vello_cpu::RenderMode::OptimizeSpeed);
self_.ctx.reset();
self_.state = State::Rendered;
});