Paint vector icons at the recording scale instead of image scale |
|
Issue descriptionRight 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 |
|