skia2/gyp
senorblanco@chromium.org 894790d77c This patch implements the diffuse and specular lighting filters in Ganesh.
There are three light types for each:  distant, point and spot, whose code
generation lives in a GrGLLight class hierarchy.  This similar to the CPU
implementation, where each light type provides a function to compute the vector
from the surface plane to the light (surfaceToLight) and to compute the light
colour (emitLightColour).  Instead of templated member functions, as in the CPU
implementation, these are virtual functions to emit the light-specific GLSL
code.

All of the code for the GPU path lives in the same file as that for the CPU
path, SkLightingImageFilter.cpp.  In order to provide Ganesh a hook to access
it, SkImageFilter now has a asNewCustomStage() virtual, which allows an image
filter to return a GrCustomStage representing that filter.

Note that this patch does not handle the border conditions correctly (the
[top|bottom][Left|Right]Normal() functions in the CPU implementation).  That
will come in a future patch.

Review URL: http://codereview.appspot.com/6345081/



git-svn-id: http://skia.googlecode.com/svn/trunk@4535 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-11 16:01:22 +00:00
..
all.gyp Some final cleanups leading up to The Official Switch to Gyp 2011-06-07 14:48:41 +00:00
android_system.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
angle.gyp Delivering .gyp files to enable building & linking w/ ANGLE on Windows 2012-04-02 20:42:26 +00:00
animator.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
apptype_console.gypi When building for Android, package executables in APKs (trunk) 2012-06-27 19:04:39 +00:00
bench.gyp Remove unnecessary lines after Android gyp fix 2012-07-03 16:03:51 +00:00
bench.gypi Adding checksum to SkFlatData to accelerate SkPicture recording. 2012-06-27 20:03:16 +00:00
common_conditions.gypi Separate target architecture type and width into separate variables. 2012-06-28 16:08:05 +00:00
common_variables.gypi Update the makefile and gyp for the debugger. 2012-06-29 18:26:27 +00:00
common.gypi fix the build 2012-06-28 16:19:03 +00:00
core.gyp Separate target architecture type and width into separate variables. 2012-06-28 16:08:05 +00:00
debugger.gyp Update the makefile and gyp for the debugger. 2012-06-29 18:26:27 +00:00
effects.gyp This patch implements the diffuse and specular lighting filters in Ganesh. 2012-07-11 16:01:22 +00:00
experimental.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
FileReaderApp.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
freetype.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
gm.gyp Fix the build for GM. 2012-06-06 21:26:31 +00:00
gmslides.gypi add gm for hittesting paths 2012-07-03 02:44:02 +00:00
gpu.gyp This patch implements the diffuse and specular lighting filters in Ganesh. 2012-07-11 16:01:22 +00:00
images.gyp Redelivering r3611 changes (enabling cmyk jpeg changes in .gyps) 2012-04-05 14:52:01 +00:00
iOSSampleApp.gyp Utils must not depend on Views. 2012-03-21 20:59:49 +00:00
libjpeg.gyp Set no rtti option to avoid warnings on Android. 2012-05-11 13:29:32 +00:00
opts.gyp Separate target architecture type and width into separate variables. 2012-06-28 16:08:05 +00:00
pdf.gyp [PDF] Move most of the headers to be private. 2012-03-22 20:45:15 +00:00
ports.gyp Add SkFontDescriptor for serializing fonts. 2012-05-31 19:55:08 +00:00
SampleApp.gyp Properly handle extracted bitmaps in cross process/shared addr space SkGPipe. 2012-07-02 13:35:09 +00:00
sfnt.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
shapeops_demo.gyp shape ops builders; fix typo 2012-03-28 17:04:08 +00:00
shapeops_edge.gyp update shapeops_edge gyp 2012-07-02 20:44:59 +00:00
SimpleCocoaApp.gyp add missing dependency 2012-06-18 14:40:51 +00:00
svg.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
tests.gyp Allow specific files and multiple inputs for picture testing tools. 2012-07-09 18:32:08 +00:00
tools.gyp Added a sgpipe benchmark. 2012-07-09 19:37:40 +00:00
utils.gyp Null canvas 2012-06-11 15:39:15 +00:00
views_animated.gyp Move animated view headers to correct directory. 2012-07-10 21:54:31 +00:00
views.gyp Move animated view headers to correct directory. 2012-07-10 21:54:31 +00:00
xml.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
xps.gyp Fixing gm build with SkXPSDevice enabled 2012-04-03 20:20:47 +00:00
zlib.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00