diff options
author | 2016-07-29 09:53:56 -0700 | |
---|---|---|
committer | 2016-07-29 09:53:56 -0700 | |
commit | 4ef6dfa7089c092c67b0d5ec34e89c1e319af196 (patch) | |
tree | dea8644d31df5b148fc95469c74fe761bc018260 /src/core/SkNormalSource.h | |
parent | 5db44aa2aa4a3a1b9ce1fe7e22c54c8d9b61f51d (diff) |
GrFP can express distance vector field req., program builder declares variable for it
This update allows fragment processors to require a field of vectors to the nearest edge. This requirement propagates:
- from child FPs to their parent
- from parent FPs to the GrPaint
- from GrPaint through the PipelineBuilder into GrPipeline
- acessed from GrPipeline by GrGLSLProgramBuilder
GrGLSL generates a variable for the distance vector and passes it down to the GeometryProcessor->emitCode() method.
This CL's base is the CL for adding the BevelNormalSource API: https://codereview.chromium.org/2080993002
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2114993002
Review-Url: https://codereview.chromium.org/2114993002
Diffstat (limited to 'src/core/SkNormalSource.h')
-rw-r--r-- | src/core/SkNormalSource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkNormalSource.h b/src/core/SkNormalSource.h index 8cbb3e4fae..4b09d0b411 100644 --- a/src/core/SkNormalSource.h +++ b/src/core/SkNormalSource.h @@ -111,7 +111,7 @@ public: /** Returns a normal source that generates a bevel for the given shape. UNIMPLEMENTED: Will return straight-up normals only. - @param type the type of bevel to add + @param type the type of bevel to add. @param width the width of the bevel, in source space. Must be positive. @param height the height of the plateau, in source space. Can be positive, negative, or zero. A negative height means the simulated bevels slope downwards. |