SkLightingShader normal vector CPU computation refactor.
authordvonbeck <dvonbeck@google.com>
Mon, 27 Jun 2016 18:40:45 +0000 (11:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jun 2016 18:40:45 +0000 (11:40 -0700)
commit12c4fc2579017a162668db077e8067512fd968ca
tree5337853b1101385452b5cd0c473c8fd9e2bb125e
parent8bad3acce52a24fb99d3201a0cefa54eacf9ee57
SkLightingShader normal vector CPU computation refactor.

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.

This CL's base was the CL for GPU handling: https://codereview.chromium.org/2043393002/

What this CL includes:

- A refactor of the SkLightingShader context's code that deals with reading normals off of a normal map. This is now abstracted out into a NormalSource::Provider class that the context uses.

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

Committed: https://skia.googlesource.com/skia/+/790a70118327a129cb6b48fabe80f4e184c1e67c
Review-Url: https://codereview.chromium.org/2050773002
gyp/core.gypi
include/core/SkFlattenable.h
src/core/SkLightingShader.cpp
src/core/SkLightingShader.h
src/core/SkLightingShader_NormalSource.cpp [deleted file]
src/core/SkNormalSource.cpp [new file with mode: 0644]
src/core/SkNormalSource.h [new file with mode: 0644]
src/ports/SkGlobalInitialization_default.cpp