[Blink/SPv2] Directly composited images? |
||||
Issue descriptionSPv1 has an optimization to use PictureImageLayer to draw an image if an image element without box decoration is composited. SPv2 doesn't have corresponding code path yet, it always uses the regular ImagePainter code path. Is this really needed? It seems to be introduced during very early WebKit days: https://github.com/WebKit/webkit/commit/ce3a4e007442d84161deebc1773b079792589c71#diff-fd33019873bcd74792a6d9b9aa8326de And the rationale doesn't apply to us anyway. """When using hardware compositing, some images can be directly rendered by the hardware - no need to draw them into a separate context, therefore saving memory.""" As far as I can tell, PictureImageLayer is only a thin wrapper on top of PictureLayer, and its PictureLayerImpl still creates the tiles thus making an extra copy. The only difference is that raster scale will be snapped to power of 2 through a flag. I feel supporting this code path already introduced a lot of hassle in BGPT and have negative effect to code health. Maybe we should drop it from SPv2, or even BGPT.
,
Aug 17
I'm assigning this to drive toward a decision on what to do for SPv2. We shouldn't let it languish.
,
Sep 14
I'm leaving the team, thus re-assigning.
,
Today
(15 hours ago)
Marking as blocking the CAP metabug. There has been some discussion of removing this optimization entirely.
,
Today
(12 hours ago)
Use-counter added in this commit: https://chromium.googlesource.com/chromium/src/+/74b2da972d93a3a1037cc2c2551c85a5b8c2308e |
||||
►
Sign in to add a comment |
||||
Comment 1 by enne@chromium.org
, Aug 17