diff options
author | Mike Klein <mtklein@chromium.org> | 2017-08-03 09:42:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-03 14:36:07 +0000 |
commit | 073073e4a49993818a7fc4996a7fb42f3ec79640 (patch) | |
tree | 0a1a63ffa859fc2425463e1e20d399a06c72c9ea /bench/SkRasterPipelineBench.cpp | |
parent | c18ab884ae6cf85521ed2c719d78e45308404335 (diff) |
Rename append_uniform_color() to append_constant_color().
The color appended here is both uniform and constant, and it's the
constantness that makes this custom append method useful over just
append(SkRasterPipeline::uniform_color, ...).
Uniform colors that are not constant have to be loaded from the pointer
each time (the caller might have changed the color out-of-band), but
constant uniform colors can be analyzed once and implemented with
specalizations like black_color and white_color.
Change-Id: I3cfc00ccc578dd915367bca7113010557181224c
Reviewed-on: https://skia-review.googlesource.com/30560
Commit-Queue: Mike Klein <mtklein@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'bench/SkRasterPipelineBench.cpp')
0 files changed, 0 insertions, 0 deletions