Short-circuit gradient color space conversion
... when src == dst Change-Id: Idd62fb673105a62ee4d381a4dbc1d5117ce6abb9 Reviewed-on: https://skia-review.googlesource.com/63702 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
7306bcd758
commit
87ce15e131
@ -162,7 +162,7 @@ static inline void append_gamut_transform(SkRasterPipeline* p,
|
||||
|
||||
static inline SkColor4f to_colorspace(const SkColor4f& c, SkColorSpace* src, SkColorSpace* dst) {
|
||||
SkColor4f color4f = c;
|
||||
if (src && dst) {
|
||||
if (src && dst && !SkColorSpace::Equals(src, dst)) {
|
||||
SkJumper_MemoryCtx color4f_ptr = { &color4f, 0 };
|
||||
|
||||
float scratch_matrix_3x4[12];
|
||||
|
Loading…
Reference in New Issue
Block a user