diff options
author | dvonbeck <dvonbeck@google.com> | 2016-06-27 08:43:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-27 08:43:58 -0700 |
commit | 790a70118327a129cb6b48fabe80f4e184c1e67c (patch) | |
tree | 72b671c60e8d7ceccba6c17cf6544e564a6a4179 /include/core | |
parent | b85e63d6ec7c5d7837e2a3a58b6f2be19398dc23 (diff) |
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
Review-Url: https://codereview.chromium.org/2050773002
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkFlattenable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkFlattenable.h b/include/core/SkFlattenable.h index 5eabcb3d6d..88aeb7ee38 100644 --- a/include/core/SkFlattenable.h +++ b/include/core/SkFlattenable.h @@ -81,7 +81,7 @@ public: kSkShader_Type, kSkUnused_Type, // used to be SkUnitMapper kSkXfermode_Type, - kNormalSource_Type, + kSkNormalSource_Type, }; typedef sk_sp<SkFlattenable> (*Factory)(SkReadBuffer&); |