Added API for Bevel NormalSource.
authordvonbeck <dvonbeck@google.com>
Thu, 28 Jul 2016 15:58:19 +0000 (08:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 28 Jul 2016 15:58:19 +0000 (08:58 -0700)
commitbba4cfebcabba3aca5c2452d7df1853258bd701c
treef3675119f7a7437c9fdfb5089f9f31f018095b08
parent1c58696112a5d7bf1acbcc337099b0bf5eb80650
Added API for Bevel NormalSource.

This CL adds an API  for Bevel normal source and a dummy implementation that returns a normal (0, 0, 1) every time.

This CL's base is the CL for accepting nullptrs: https://codereview.chromium.org/2132113002

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2080993002

Review-Url: https://codereview.chromium.org/2080993002
gm/lightingshaderbevel.cpp [new file with mode: 0644]
gyp/core.gypi
src/core/SkNormalBevelSource.cpp [new file with mode: 0644]
src/core/SkNormalBevelSource.h [new file with mode: 0644]
src/core/SkNormalFlatSource.cpp [new file with mode: 0644]
src/core/SkNormalFlatSource.h [new file with mode: 0644]
src/core/SkNormalMapSource.cpp [new file with mode: 0644]
src/core/SkNormalMapSource.h [new file with mode: 0644]
src/core/SkNormalSource.cpp
src/core/SkNormalSource.h
tests/SerializationTest.cpp