Go to file
Mike Klein d352529216 incorporate r,g,b,a into shaderHash
Today's shader hash changes if the unordered set of {r,g,b,a} values we
produce changes, but is not sensitive to simple order changes like
sampling RGBA vs BGRA.

Folding in a hash of each value's ID in order will fix this.

This has been difficult to track down (thread-local caches),
so I've added a GM that reliably reproduces the bug.

Live demo: https://fiddle.skia.org/c/30f2e5b731c2e53a6f092424c585ca41

Bug: skia:9819
Change-Id: Iceb09d89eb036735028ae97dc79c576787199ac5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/267119
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-01-28 20:58:37 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Revert "Revert "Complete rewrite of the SkSL interpreter"" 2020-01-24 14:42:37 +00:00
bin [infra] Fix bin/try 2020-01-14 12:05:56 +00:00
build/fuchsia Add logger service. 2020-01-04 02:27:14 +00:00
build_overrides Update Dawn backend to ToT. This is about 3 months of changes. 2019-10-15 22:26:38 +00:00
dm add --skvm to DM 2020-01-28 19:07:54 +00:00
docker [canvaskit] Update build script to support latest Emscripten 2020-01-28 15:41:58 +00:00
docs/examples [minor] docs/examples: cleanup 2020-01-16 17:47:15 +00:00
example Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
experimental [debugger] Use correct archiver 2020-01-28 19:51:18 +00:00
fuzz Make it safe to include SkRuntimeEffect.h from client code 2019-12-30 21:06:56 +00:00
gm incorporate r,g,b,a into shaderHash 2020-01-28 20:58:37 +00:00
gn incorporate r,g,b,a into shaderHash 2020-01-28 20:58:37 +00:00
include prune unused SkPostConfig 2020-01-28 19:20:34 +00:00
infra [canvaskit] Update build script to support latest Emscripten 2020-01-28 15:41:58 +00:00
modules Fix wasm builds 2020-01-28 19:03:49 +00:00
platform_tools Reland "GrGLMakeNativeInterface_{iOS,mac,win}: clean up" 2020-01-08 16:55:43 +00:00
resources [skottie] Add custom props rendering GM 2020-01-17 13:53:02 +00:00
samplecode Experimental coretext backend for SkShaper 2020-01-28 17:41:54 +00:00
site Use html tags instead of markdown for images in debugger user guide 2020-01-27 13:41:45 +00:00
specs [img-decode] Start on proposed new spec 2019-05-06 17:39:19 +00:00
src incorporate r,g,b,a into shaderHash 2020-01-28 20:58:37 +00:00
tests Add SkImage::MakeRasterFromCompressed and make MakeFromCompressed fall back to decompression for unsupported compression types (take 2) 2020-01-28 14:03:14 +00:00
third_party [canvaskit] Remove support for T1 fonts and reduce code size 2020-01-06 18:49:41 +00:00
tools Roll dawn and adjust for new SwapChain API. 2020-01-28 18:26:44 +00:00
.clang-format restore .clang-format 2019-03-21 15:52:32 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore clean up some .gitignores 2019-05-15 19:55:45 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Optimize SkSL xor where one argument is constant 2019-12-20 14:50:46 +00:00
BUILD.gn Fix build when (is_ios && !skia_enable_skottie) 2020-01-23 16:11:36 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll dawn and adjust for new SwapChain API. 2020-01-28 18:26:44 +00:00
go.mod Update Go Deps 2020-01-28 05:28:33 +00:00
go.sum Update Go Deps 2020-01-28 05:28:33 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py rm mtklein@chromium 2020-01-27 18:20:06 +00:00
public.bzl [skottie] Cleanup: convert shape layer adapters to new pattern 2020-01-22 20:16:36 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
RELEASE_NOTES.txt Add SkImage::MakeRasterFromCompressed and make MakeFromCompressed fall back to decompression for unsupported compression types (take 2) 2020-01-28 14:03:14 +00:00
whitespace.txt Whitespace test 2019-05-18 13:05:29 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.