Give the gpu image decode cache visibility into uploaded texture ids |
||
Issue descriptionAs a part of serializing PaintImage to the gpu process, we need to know what the texture ids are. One option is to expose the texture ids (in some non-deprecated way) from SkImage and to know whether or not an image has been uploaded or not. Another option is to have the GpuImageDecodeCache do all of the uploading (and mipmapping) itself whenever it would have uploaded. This discussion is just for the common case of gpu raster image upload and ignores the "large image" case, in which I think we should just share the decoded data to the gpu process and continue doing what we do in the renderer, where Skia handles it entirely internally.
,
Aug 30 2017
Yeah, it looks like https://chromium-review.googlesource.com/c/chromium/src/+/544102 will do just that when it lands. I think that will probably be sufficient for what I want to do. I think if there's a more typesafe option, we can switch over to that when the API is added. Thanks! I don't think there'd be any remaining advantage to having the GpuImageDecodeCache do the uploading work, especially since that above patch already includes using gpu discardable.
,
Nov 17 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bsalo...@google.com
, Aug 30 2017