Go to file
senorblanco ce6a354e12 Fix tiled perlin noise.
It turns out that the perlin implementation we inherited from WebKit
does not actually generate tileable noise (see Chromium bug
http://crbug.com/383495).

The main problem is that when generating coordinates for gradient
interpolation, it was attempting to wrap both x and (x + 1)
simultaneously at the tile boundary (that is, either both or neither
are wrapped). This obviously won't work, since along the tile seams,
(x + 1) should be wrapped, but x should not. The same is true in y.

This patch fixes both the CPU and GPU paths, renames some variables to
more closely match the spec, and modifies the perlin noise GM to
actually test tiling. (Note that the clipping the GM was doing was
removed, since it's superfluous: it used to be necessary for image
filters, but isn't anymore, and this isn't an image filter GM anyway.)

R=sugoi@google.com, sugoi
TBR=senorblanco

Author: senorblanco@chromium.org

Review URL: https://codereview.chromium.org/332523006
2014-06-12 11:24:20 -07:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Really revert bench trigger changes. 2014-06-12 08:05:43 -07:00
debugger Remove SkPicture pointer from SkPicturePlayback 2014-06-12 05:51:22 -07:00
dm DM: SKP source / PDF backend 2014-06-06 09:28:43 -07:00
docs warn that docs/quickstart.md is out of sync with official docs 2014-04-21 19:18:46 +00:00
expectations Fix tiled perlin noise. 2014-06-12 11:24:20 -07:00
experimental removes deprecated -q flag for gsutil. 2014-06-12 08:25:04 -07:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm Fix tiled perlin noise. 2014-06-12 11:24:20 -07:00
gyp Cleanup: Delete sk_tools::make_filepath() in favor of SkOSPath::SkPathJoin(). 2014-06-12 08:50:56 -07:00
include Use vertex attributes for dash effect in gpu 2014-06-12 10:24:21 -07:00
platform_tools teach Nacl to not call setConfig 2014-06-09 20:40:05 -07:00
resources Adding resource files 2014-06-02 15:18:27 -04:00
samplecode Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer) 2014-06-04 05:40:44 -07:00
src Fix tiled perlin noise. 2014-06-12 11:24:20 -07:00
tests Cleanup: Delete sk_tools::make_filepath() in favor of SkOSPath::SkPathJoin(). 2014-06-12 08:50:56 -07:00
third_party Initial KTX encoder 2014-06-06 06:16:28 -07:00
tools Cleanup: Delete sk_tools::make_filepath() in favor of SkOSPath::SkPathJoin(). 2014-06-12 08:50:56 -07:00
trybots_to_run/chrome Deleting the hardcoded list of compile bots in trybots_to_run. 2013-04-09 11:59:42 +00:00
.gitignore BugChomper: Get the oauth_client_secret from GS 2014-05-13 19:18:55 +00:00
AUTHORS MIPS: modified gypi files to support build 2014-06-06 14:09:12 -07:00
codereview.settings Code reviews -> reviews@skia.org. 2014-06-11 07:12:10 -07:00
CONTRIBUTING Add CONTRIBUTING file 2014-01-13 15:06:26 +00:00
CQ_COMMITTERS Add Daniel and Pavel to committers list 2014-06-10 14:34:00 -07:00
DEPS Pull in GYP_LINK_CONCURRENCY=N support. 2014-06-06 07:37:46 -07:00
Doxyfile delete no-longer-used update-doxygen.sh 2014-05-15 14:41:00 +00:00
gyp_skia Effectively unlimited linking. 2014-06-06 08:27:07 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Make make.bat and gyp_skia work with VS 2012. 2013-05-07 19:31:20 +00:00
make.py Don't try to remove xcodebuild directory on Windows. 2014-05-22 15:54:05 +00:00
Makefile simplify tools/xsan_build now that make runs ninja 2014-04-24 18:16:13 +00:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py Check if the issue owner is in the AUTHORS file in PRESUBMIT.py 2014-02-03 14:18:32 +00:00
README Point to skiadocs in our README. 2014-05-09 04:30:09 +00:00
README.chromium add root files from chrome 2013-08-13 19:11:15 +00:00
skia.gyp Remove the comments settings for vim tab width and expansion variables. 2013-12-02 22:23:03 +00:00
SKP_VERSION Update SKP version to 21 2014-06-12 00:43:39 -07:00
whitespace.txt Whitespace change to test trybot triggering 2014-06-12 06:23:38 -07:00

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

See full details, and build instructions, at https://sites.google.com/site/skiadocs/home