Go to file
Michael Ludwig 97b9442b0d Detect simpler quad type when possible
Previously, providing 4 SkPoints to draw as a quad meant the tessellator
used either kStandard or kPerspective, and couldn't use the faster
kRect and kRectilinear options. This had been simple and under the
assumption that most provided quad points would be from BSP splitting.

However, to emulate SkiaRenderer's required content_area clipping, the
content area is sent as the srcRect and the original geometry is stored
in the SkPoints. In these situations, the it is easy to detect that the
4 points make a rectangle and then relying on the CTMs matrix for the
quad type is perfectly safe.

Change-Id: Ib2b599fa9c82d275519e17cf813713806a565afe
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206908
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2019-04-09 16:57:43 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Introduce new factory for SkColorFilters 2019-04-08 21:03:59 +00:00
bin tools: bin/sync just alias for git-sync-deps now 2019-02-22 20:05:05 +00:00
dm Fix the GLSL persistent cache (and add a config to test it) 2019-04-03 18:05:22 +00:00
docker Include wasm debugger in continuous build part 2 2019-04-01 19:51:43 +00:00
docs/examples examples: Avoid undefined behavior 2019-04-08 22:14:49 +00:00
example Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
experimental add SkpFilePlayer to externs 2019-04-08 17:57:04 +00:00
fuzz Introduce new factory for SkColorFilters 2019-04-08 21:03:59 +00:00
gm Introduce new factory for SkColorFilters 2019-04-08 21:03:59 +00:00
gn remove guard for bitmap shader api 2019-04-09 16:08:00 +00:00
include add missing shared lib visibility macros 2019-04-09 14:34:55 +00:00
infra Update go_deps asset 2019-04-09 05:58:39 +00:00
modules [skottie] More snug kTop Shaper alignment 2019-04-08 22:48:08 +00:00
platform_tools SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
resources Add planet emoji font. 2019-03-19 17:49:22 +00:00
samplecode Introduce new factory for SkColorFilters 2019-04-08 21:03:59 +00:00
site Remove bookmaker sources and data files 2019-03-25 18:56:29 +00:00
src Detect simpler quad type when possible 2019-04-09 16:57:43 +00:00
tests Introduce new factory for SkColorFilters 2019-04-08 21:03:59 +00:00
third_party Roll skia/third_party/skcms 36eeb1311a72..0da672fc2c69 (1 commits) 2019-04-09 14:27:45 +00:00
tools Shader serialization experiment (with Mali Offline Compiler analysis) 2019-04-09 13:37:55 +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 Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix metal build errors with preprocessor definitions 2019-03-28 18:47:37 +00:00
BUILD.gn Examples: compile faster 2019-04-04 15:43:59 +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 third_party/externals/swiftshader 4ba1911b2d7f..eba396cc66d3 (3 commits) 2019-04-09 05:20:29 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py add mtklein to api approvals 2019-04-02 15:16:56 +00:00
public.bzl buildifier public.bzl 2019-03-27 19:00:04 +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
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +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.