Closed Bug 1209705 Opened 6 years ago Closed 6 years ago
Image should propagate a Draw Result correctly even when it creates an intermediate surface
Right now if ClippedImage creates an intermediate surface (by calling GetFrameInternal() in Draw()), it just drops the DrawResult that it generates in DrawSingleTile() on the floor. To support sync decoding for border-image correctly, we need to propagate that DrawResult to the caller.
Here's the patch. This is almost identical to the approach we use in RasterImage for ImageContainers; we cache the DrawResult that we generate when we create the cached surface, and then return it to the caller from Draw().
Attachment #8667500 - Flags: review?(tnikkel)
Attachment #8667500 - Flags: review?(tnikkel) → review+
Thanks for the review!
You need to log in before you can comment on or make changes to this bug.