DescriptionSkImage_Raster's pixels are always immutable.
To make this work, we tag their pixelrefs as temporarily immutable, allowing
ourselves to restore the pixels to mutability only when the image drops away.
This should allow us to wobble back and forth between writing to the Surface
and reading from the Image without a COW, with the Surface seeing mutable
pixels and the Image seeing immutable pixels.
The big idea is, Image doesn't need forever-immutable pixels, it just needs
pixels that are immutable as long as it's alive.
BUG=skia:
patch from issue 804523002 at patchset 40001 (http://crrev.com/804523002#ps40001)
Committed: https://skia.googlesource.com/skia/+/26e0e587f76f2a9338652c100f835c2377c908d3
Patch Set 1 #Patch Set 2 : #Patch Set 3 #Patch Set 4 : #
Total comments: 1
Messages
Total messages: 15 (7 generated)
|