New issue
Advanced search Search tips

Issue 772021 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Return DecodedDrawImage to ImageDecodeCache on DrawWithImageFinished.

Project Member Reported by ericrk@chromium.org, Oct 5 2017

Issue description

Although a DecodedDrawImage isn't safely usable after being returned via DrawWithImageFinished, nothing in the current API contract ensures this. We should make DecodedDrawImage a move-only type (or unique-ptr), ensuring that it is returned to the ImageDecodeCache as part of DrawWithImageFinished. This isn't just a sanity-check, but allows for future optimizations that rely on SkImage uniqueness during destruction.  
 

Sign in to add a comment