b0cee9bf9a
SkCanvas keeps its non-exotic drawBitmap calls for now but they immediately wrap the bitmap in SkImage::MakeFromBitmap. This will add a copy for mutable bitmaps, but this can be worked around by using images directly (preferred), or marking the bitmap as immutable. In practice, mutable bitmaps do not seem to be widely used so this is deemed acceptable for now. Several GMs are updated to mark the bitmaps as immutable in order to avoid pixel churn in how CPU vs. GPU mipmaps are generated. As we move towards explicit mipmap generation, this distinction will become less critical, so I'm just avoiding it for now. See skbug.com/9337 for mipmap proposal. The image diffs encountered in this CL directly related to generating mipmaps for bitmaps already cached on the GPU vs. not on the GPU yet. It was decided to copy if mutable vs. never copying the bitmap because it preserves the image guarantees the devices and canvas' rely on, and imposing the need to inspect an image for mutability is undesired. Bug: skia:10037, skia:9337 Change-Id: If152e6cae1e155ccf6bd2cd755895f3c7a0135a5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/276004 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Mike Klein <mtklein@google.com> |
||
---|---|---|
.. | ||
mac | ||
SkAnimCodecPlayer.h | ||
SkBase64.h | ||
SkCamera.h | ||
SkCanvasStateUtils.h | ||
SkEventTracer.h | ||
SkFrontBufferedStream.h | ||
SkInterpolator.h | ||
SkLua.h | ||
SkLuaCanvas.h | ||
SkNoDrawCanvas.h | ||
SkNullCanvas.h | ||
SkNWayCanvas.h | ||
SkPaintFilterCanvas.h | ||
SkParse.h | ||
SkParsePath.h | ||
SkRandom.h | ||
SkShadowUtils.h | ||
SkTextUtils.h | ||
SkTraceEventPhase.h |