aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar dvonbeck <dvonbeck@google.com>2016-06-14 14:43:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-14 14:43:52 -0700
commit87b0dd00cf9409c5fc990f5d0bb7c0df837f08da (patch)
tree4eb4d2d8bac6eb1d870ced0222c7ecf37ecfc897 /gyp
parentfd32df716cfc787a3ac50efb293a9317a97078c5 (diff)
Refactoring of GPU NormalMap handling out into its own class.
The purpose of this change is to refactor the handling of normal maps out of SkLightingShader, laying the groundwork to eventually allow for multiple normal sources. What this CL includes: - Created a new 'NormalMapFP', out of the existing normal map reading behavior in LightingFP. - Encapsulates this new fragment processor on a new class NormalMapSource. - Created a NormalSource abstraction that will interface with SkLightingShader. - Adapted SkLightingShader to use the normals from its NormalSource field ON THE GPU SIDE. No changes done to the CPU side yet. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2043393002 Review-Url: https://codereview.chromium.org/2043393002
Diffstat (limited to 'gyp')
-rw-r--r--gyp/core.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/gyp/core.gypi b/gyp/core.gypi
index ff3e270534..d3102e4f92 100644
--- a/gyp/core.gypi
+++ b/gyp/core.gypi
@@ -154,6 +154,7 @@
'<(skia_src_path)/core/SkLayerInfo.h',
'<(skia_src_path)/core/SkLightingShader.h',
'<(skia_src_path)/core/SkLightingShader.cpp',
+ '<(skia_src_path)/core/SkLightingShader_NormalSource.cpp',
'<(skia_src_path)/core/SkLinearBitmapPipeline.cpp',
'<(skia_src_path)/core/SkLinearBitmapPipeline.h',
'<(skia_src_path)/core/SkLinearBitmapPipeline_core.h',