Go to file
Ben Wagner 51401f07f2 Set margin for outer blur masks with no blur.
The margin of a mask filter is intended to be the additional src region
which the mask filter will take into account when creating the dst (a
region which will be assumed to be fully transparent around the src).
In the event there is an outer blur with no effective blur the src does
not need to be considered at all since the outcome will always be an
empty mask. The 'margin' is then effectively -inf in all directions, but
currently users of margin expect the value to come back non-negative.
This sets the margin in this case to 0 to allow the users to do their
work and then the filter will simply discard that work.

Currently the margin is not being set at all, leading to undefined
behavior. In the future the users of mask filters need to be able to
handle negative margins and there needs to be a way for the mask filter
to signal that it will disregard any src image.

BUG=oss-fuzz:8332

Change-Id: Ia9d1711b8c68142134bb6d393de17b9abaf7b23a
Reviewed-on: https://skia-review.googlesource.com/128683
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2018-05-17 14:09:13 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Make GrCaps and GrShaderCaps private. 2018-05-11 14:47:27 +00:00
bin remove fetch-gn dependency on buildtools 2018-02-21 20:42:26 +00:00
dm Reland "Add driver bug workarounds to GrCaps" 2018-05-14 23:46:49 +00:00
docker [docker] Move to testing-slim as the base image. 2018-05-16 13:32:54 +00:00
docs mapRect should not fiddle with nonfinite values. 2018-05-17 14:02:43 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental [skottie] Sanitize polystar point counts 2018-05-14 21:41:39 +00:00
fuzz Fuzz should observe the optional Skottie flag. 2018-05-04 19:49:13 +00:00
gm Allow slides/gms to extend the UI 2018-05-15 14:29:43 +00:00
gn Suppress bad-function-cast warning 2018-05-16 20:22:12 +00:00
include mapRect should not fiddle with nonfinite values. 2018-05-17 14:02:43 +00:00
infra Roll recipe dependencies (trivial). 2018-05-17 06:47:53 +00:00
platform_tools [recipes] BUILDTYPE and SKIA_OUT are no longer used 2018-05-15 19:36:23 +00:00
resources Add color fonts. 2018-03-28 20:14:44 +00:00
samplecode Shadow fixes to avoid popping. 2018-05-11 15:39:57 +00:00
site mapRect should not fiddle with nonfinite values. 2018-05-17 14:02:43 +00:00
src Set margin for outer blur masks with no blur. 2018-05-17 14:09:13 +00:00
tests mapRect should not fiddle with nonfinite values. 2018-05-17 14:02:43 +00:00
third_party Roll skia/third_party/skcms 5cc905d..e4c0e54 (1 commits) 2018-05-17 01:09:52 +00:00
tools Fix check for valid proxies returned by AtlasManager. 2018-05-16 19:28:32 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore [lottiecap] Moved over from buildbot repo. 2018-03-20 13:25:23 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn switch skia to use skcms.gni 2018-05-15 16:06:13 +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/angle2/ f299a378f..0e1c158ed (2 commits) 2018-05-17 06:46:13 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07: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 Skip post upload hooks for new service accounts 2018-05-03 12:10:11 +00:00
public.bzl Remove SK_SUPPORT_LEGACY_BACKEND_OBJECTS from public.bzl. 2018-05-03 18:14:41 +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 Reland "Whitespace change" 2018-04-14 01:24:11 +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.