Go to file
commit-bot@chromium.org 344cf45a40 *** Perlin noise GM needs to be rebaselined ***
Enabling Perlin Noise on Android

I enabled the Perlin Noise shader on Android after doing some minor modifications to the shader, specifically for Android (and #ifdefed for Android, to make sure none of this affects other platforms).

For Tegra devices (Nexus 7, Xoom), a precision issue related to the color values read from textures caused the noise to read the wrong indices and produce bad noise. I fixed this by adding a founding of the values read by simply doing the equivalent of "colorValue = floor(colorValue * 255.0) / 255.0" to make sure we retrieve the colors that were written in the texture originally.

For non-Tegra devices (Nexus 10), dealing with values in the order of 4096.0 was problematic without using the "highp" precision setting. To solve this, a few variables were given the high precision setting.

Since both fixes don't seem to do considerable harm to the platforms that are not being targetted, I left both fixes on all android devices for now.

I also reduced the Perlin noise gm so that it takes less time to test it on the Xoom (Original time was about 20 seconds, this shold take less than 10, hopefully)

BUG=
R=senorblanco@google.com, bsalomon@google.com, sugoi@google.com, senorblanco@chromium.org

Author: sugoi@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16818013

git-svn-id: http://skia.googlecode.com/svn/trunk@9637 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-17 14:19:01 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add an option to create unpremultiplied bitmaps. 2013-06-14 15:33:20 +00:00
debugger Expose debugger backend classes externally. 2013-06-13 20:59:14 +00:00
experimental Object model generated from pdf spec 1.4, draft code 2013-06-14 19:22:19 +00:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm *** Perlin noise GM needs to be rebaselined *** 2013-06-17 14:19:01 +00:00
gyp Add skia_exceptinos gyp define 2013-06-14 17:10:09 +00:00
include use select() so we can wait for XEvents or our timer 2013-06-17 13:42:43 +00:00
platform_tools GYP Changes and Scripts for Compiling Skia for ChromeOS 2013-06-11 15:52:19 +00:00
resources More general GM for testing bitmap filtering, including checkerboards, images, and text. 2013-05-31 12:50:39 +00:00
samplecode Sanitizing source files in Housekeeper-Nightly 2013-06-15 07:00:53 +00:00
src *** Perlin noise GM needs to be rebaselined *** 2013-06-17 14:19:01 +00:00
tests convert pathops to use SkSTArray where possible. 2013-06-17 14:10:36 +00:00
third_party Remove svn:externals and update the README. 2013-06-12 14:57:33 +00:00
tools skimage self-tests: confirm correctness of bitmap hash values 2013-06-13 19:12:05 +00: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 Add .swp files to gitignore. 2013-02-08 16:59:59 +00:00
codereview.settings Removing blank lines from codereview.settings. 2013-02-26 16:01:21 +00:00
DEPS revert DEPS for angle until tools are fixed 2013-06-11 20:16:48 +00:00
Doxyfile Pointing to http://skia-autogen.googlecode.com/svn/docs/html/index.html in Doxyfile 2012-07-03 11:35:07 +00:00
gyp_skia Make make.bat and gyp_skia work with VS 2012. 2013-05-07 19:31:20 +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 gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
Makefile add skpdiff tool to compare bitmaps 2013-06-14 17:26:54 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
PRESUBMIT.py If the tree is closed then print information about contacting the sheriff. 2013-04-12 19:45:46 +00:00
README whitespace commit to trigger buildbot 2011-07-15 14:11:58 +00:00
skia.gyp gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
whitespace.txt whitespace change to trigger buildbots after master restart 2013-06-17 04:43:05 +00:00

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

See full details, and build instructions, at http://code.google.com/p/skia/wiki/DocRoot