skia2/include
Brian Salomon e4601b0864 Fix issue mipmapped SkImages made from SkSurface_raster snapshots.
This fixes a bug with the following sequence:

Make SkSurface_Raster, draw to it
snap an image, A, from the surface
make image B by calling withDefaultMipmaps() on image A
Let image A be destroyed.
draw to surface again
snap another image, C, from the surface

Image C and image B would now share the same SkPixelRef, reflecting
the final contents of the SkSurface.

Add a GM that exercises the bug when run through either the pic- or
serialize- vias and DDL.

Bug: skia:13111
Change-Id: Ib079163c84f420baf62fa7960110386303b8fb93
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/525517
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2022-03-31 13:21:59 +00:00
..
android [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
c [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
codec Add color-depth detection 2022-03-07 18:22:52 +00:00
config [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
core Fix issue mipmapped SkImages made from SkSurface_raster snapshots. 2022-03-31 13:21:59 +00:00
docs [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
effects Add SK_LENIENT_SKSL_DESERIALIZATION, enabled in Debugger 2022-03-04 20:58:47 +00:00
encode [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
gpu Revert "Always apply mipmap sharpening on GPU" 2022-03-24 13:56:27 +00:00
pathops [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
ports Remove obsolete sk_cf_obj 2022-03-11 05:59:16 +00:00
private [graphite] Move RefCntedCallback to shared gpu file. 2022-03-23 21:19:15 +00:00
sksl Added an SkSL Operator enum 2022-03-31 13:20:57 +00:00
svg [bazel] Test enforcement of IWYU on SkSVG backend. 2022-03-16 14:20:14 +00:00
third_party [bazel] Support Vulkan 2022-03-08 21:21:17 +00:00
utils remove device capture from SkNWayCanvas 2022-03-30 14:07:41 +00:00
OWNERS Add Bazel folks as owners to BUILD.bazel files 2021-11-09 14:24:54 +00:00