Go to file
Brian Salomon 40242241c3 Revert "Don't key progams/pipelines on origin."
This reverts commit 943108b0b2.

Reason for revert: clockwise GM bad on android.

Original change's description:
> Don't key progams/pipelines on origin.
>
> SkSL language features that are origin sensitive now use a uniform
> to conditionally flip their result rather than generating different
> code.
>
> Previously we would insert a "rt height" uniform if sk_FragCoord needed
> to be flipped. sk_FragCoord,y was implemented as "realFragCoord.y" or
> "rtHeight - realFragCoord.y" depending on SkSL::ProgramSettings::fFlipY.
>
> Now we instead use a two component vector rtFlip and sk_FragCoord.y is
> always "rtFlip.x + rtFlip.y*realFragCoord.y". We configure rtFlip as
> either (0, 1) or (rtHeight, -1). sk_Clockwise and dFdy simiarly use
> rtFlip.y to emit code that always works with either origin.
>
> Bug: skia:12037
>
> Change-Id: I7a09d0caac60a58d72b76645ff31bcabde4086b6
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/414796
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>

TBR=egdaniel@google.com,bsalomon@google.com,ethannicholas@google.com

Change-Id: I91cc0d86be216f6c32e453a231de088c991be4b2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:12037
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425056
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2021-07-06 19:21:26 +00:00
animations
bazel bazel baby steps 2020-09-14 15:18:32 +00:00
bench Disable large png bench 2021-07-01 20:55:59 +00:00
bin [infra] Fix fetch-sk and fetch-skps 2021-06-18 15:20:38 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides fix tint roll - enable tint_build_wgsl_writer 2021-07-01 00:32:40 +00:00
client_utils/android Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
demos.skia.org [canvaskit] Fix demo image link 2021-06-03 12:57:50 +00:00
dm Convert dmsaa to an SkSurfaceProp 2021-04-20 16:24:56 +00:00
docker [infra] Fix index.d.ts copy in Wasm Docker build 2021-02-23 15:54:11 +00:00
docs/examples [fiddle] Update named fiddles 2021-07-01 15:20:14 +00:00
example Remove SDL from DEPS (and SDL example that used it) 2021-05-27 21:37:57 +00:00
experimental Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
fuzz Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
gm Start using skgpu::v1 and skgpu::v2 namespaces 2021-07-06 18:28:54 +00:00
gn Revert "Don't key progams/pipelines on origin." 2021-07-06 19:21:26 +00:00
include Revert "Don't key progams/pipelines on origin." 2021-07-06 19:21:26 +00:00
infra Add Spin513 bots to the tree. 2021-07-01 21:30:19 +00:00
modules Rename gn options to skgpu_v1 and skgpu_v2 2021-07-01 17:09:33 +00:00
platform_tools [androidkit] Color filter support 2021-06-29 12:42:19 +00:00
resources Revert "Don't key progams/pipelines on origin." 2021-07-06 19:21:26 +00:00
samplecode Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
site Lots of prose fixes 2021-06-30 15:07:30 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Revert "Don't key progams/pipelines on origin." 2021-07-06 19:21:26 +00:00
tests Revert "Don't key progams/pipelines on origin." 2021-07-06 19:21:26 +00:00
third_party Roll ICU 2021-06-25 17:40:19 +00:00
tools Change architecture #defines to be SK_GPU_V1 and SK_GPU_V2 2021-07-01 18:42:53 +00:00
.bazelignore bazel baby steps 2020-09-14 15:18:32 +00:00
.clang-format no more bin packing in .clang-format 2021-03-04 17:22:50 +00:00
.clang-tidy Disable ClangTidy namespace comments for short blocks. 2020-08-24 14:01:22 +00:00
.gitignore [infra] Add bin/fetch-sk 2021-05-24 17:42:17 +00:00
.gn Pre-emptive fix for upcoming ANGLE change. 2021-01-08 17:23:52 +00:00
AUTHORS Add UWP support 2021-02-10 19:04:42 +00:00
BUILD.bazel bazel baby steps 2020-09-14 15:18:32 +00:00
BUILD.gn Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
codereview.settings
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll Chromium from 74a98997e468 to 5f1024ce4fc1 (226 revisions) 2021-07-06 05:25:54 +00:00
DIR_METADATA Move metadata in OWNERS files to DIR_METADATA files 2021-02-02 23:41:54 +00:00
go.mod [infra] Update infra dep to roll cpython3 back to 3.8.10 2021-06-28 13:09:19 +00:00
go.sum [infra] Update infra dep to roll cpython3 back to 3.8.10 2021-06-28 13:09:19 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
PRESUBMIT.py [fiddle] Add PRESUBMIT rule to run tools/fiddle/make_all_examples_cpp.py 2021-07-01 15:20:57 +00:00
public.bzl Reland "Purge ccpr" 2021-06-19 18:42:38 +00:00
README
README.chromium
RELEASE_NOTES.txt Remove SkMatrix44 2021-06-26 01:51:45 +00:00
whitespace.txt Test master branch deletion 2021-05-25 13:20:41 +00:00
WORKSPACE.bazel bazel baby steps 2020-09-14 15:18:32 +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.