skia2/include
Brian Salomon 072e09b26d SkCanvas::kStrict_SrcRectConstraint disables mipmapping.
The implementation is inconsistent across CPU and GPU.

CPU currently always implements kStrict even when kFast is passed.
For mipmapping this means computing a set of levels from the subset,
which is an expensive.

GPU limits the texture sampling coordinates to the subset in the
base level. However, higher level mipmap pixels that map back to
a footprint outside the subset are still sampled. So GPU pays a
higher shader complexity cost without really providing the benefit
of kStrict.

We are adding anisotropic filtering, which will not work well with
kStrict, and thus will also be disabled by kStrict.


Must land after https://chromium-review.googlesource.com/c/chromium/src/+/3571661

Bug: skia:10481
Bug: skia:13078
Bug: skia:13036
Canary-Chromium-CL: 3571661
Change-Id: I011b8698a3f9fafa9b819486873c8ff54df6299e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/527284
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2022-04-06 17:11:47 +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 SkCanvas::kStrict_SrcRectConstraint disables mipmapping. 2022-04-06 17:11:47 +00:00
docs [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
effects [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
encode [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
gpu Remove GrContextOptions::fSharpenMipmappedTextures 2022-04-05 21:33:50 +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 Add anisotropic filtering to GrSamplerState and implement in backends. 2022-04-06 16:09:14 +00:00
sksl Fixed remaining SkSL positions 2022-04-06 17:03:22 +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