Go to file
Mike Klein 249ee1f985 clamp to 0 in repeat and mirror image tilers
If we were doing this math with real numbers or even just doubles, these
clamps wouldn't be necessary.  But we're favoring speed over accuracy
here when we emulate fmod() and some of those inaccuracies end up with
values outside the [0,tile) range, negative!

To keep the spirit of fast over 100% accurate, I've just added a safety
clamp to 0.  The case in the unit test now returns 0 where it should
really return something like 7 or 8, but at least we won't try to read
_way_ outside the image buffer.

BUG=chromium:749260

Change-Id: Ifc5cfe69798beccbb2a16547510158576e06eb3a
Reviewed-on: https://skia-review.googlesource.com/29580
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-08-01 19:15:33 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Compute correct bounds for DrawShadowRec. 2017-07-31 13:55:32 +00:00
bin add a Win/Clang build bot 2017-07-31 19:53:51 +00:00
debugger Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
dm Roll ANGLE 2017-08-01 17:08:03 +00:00
docs fix self references 2017-07-31 16:49:12 +00:00
example Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
experimental Add Make[backend] calls for creating GrContexts 2017-07-25 14:33:03 +00:00
fuzz use unique_ptr for codec factories 2017-07-25 15:35:23 +00:00
gm Pull non-substantive changes out of omnibus GrSurface CL 2017-07-27 22:16:06 +00:00
gn Tell clang/win to emulate MSVC 2015 2017-07-31 20:58:55 +00:00
include Guard against D3D NaN/Infinity literals bug 2017-08-01 19:07:55 +00:00
infra Add Perf-Win2k8-Clang bots. 2017-08-01 17:47:49 +00:00
platform_tools Enable ios on Raspberry Pi 2017-04-25 16:56:41 +00:00
resources Fix double delete in SkBmpCodec 2017-07-14 16:25:54 +00:00
samplecode clang on windows support 2017-07-31 18:39:23 +00:00
site Add links to Analytic AA design docs 2017-07-31 18:36:13 +00:00
src clamp to 0 in repeat and mirror image tilers 2017-08-01 19:15:33 +00:00
tests clamp to 0 in repeat and mirror image tilers 2017-08-01 19:15:33 +00:00
third_party link libwebpmux in system-webp builds 2017-08-01 14:33:38 +00:00
tools clang on windows support 2017-07-31 18:39:23 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore clang on windows support 2017-07-31 18:39:23 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Added support for building for tvOS 2017-03-14 22:55:04 +00:00
BUILD.gn clang on windows support 2017-07-31 18:39:23 +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 ANGLE 2017-08-01 17:08:03 +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
PRESUBMIT.py Update CQ extra trybots after switch to Debian 2017-06-29 19:35:40 +00:00
public.bzl Remove the temporary flag SK_NO_ANALYTIC_AA 2017-07-28 15:11:27 +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 Revert "Revert "Make GrAtlasTextOp a non-legacy GrMeshDrawOp"" 2017-07-19 12:17:34 +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.