New issue
Advanced search Search tips

Issue 862801 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Paint vector icons at the recording scale instead of image scale

Project Member Reported by malaykeshav@chromium.org, Jul 11

Issue description

Right now vector icons are rasterized at the image scale into bitmaps on the browser process at paint time:

https://cs.chromium.org/chromium/src/ui/gfx/image/canvas_image_source.cc?gsn=GetImageForScale&g=0&l=51

https://cs.chromium.org/chromium/src/ui/views/controls/image_view.cc?gsn=SetImage&l=238

These images are then pushed to the canvas(recording canvas?).

This creates a problem where we might want to use a scale different from the image scale or device scale factor for the image (For pixel canvas). Rasterizing at the browser process also has impact on the performance. 

We should defer the rasterization of the vector icons as long as possible or even avoid it at paint time. 



 

Sign in to add a comment