No need to fake makeArrayDefault() now that it exists.
Change-Id: I5e3cbac5caa483dfebd17444d9fb98e1adf1fdff Reviewed-on: https://skia-review.googlesource.com/7267 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Herb Derby <herb@google.com>
This commit is contained in:
parent
c5a37f642a
commit
009d9d1edc
@ -132,8 +132,7 @@ static inline bool append_gamut_transform(SkRasterPipeline* p, float scratch_mat
|
|||||||
|
|
||||||
static inline bool append_gamut_transform(SkRasterPipeline* p, SkArenaAlloc* scratch,
|
static inline bool append_gamut_transform(SkRasterPipeline* p, SkArenaAlloc* scratch,
|
||||||
SkColorSpace* src, SkColorSpace* dst) {
|
SkColorSpace* src, SkColorSpace* dst) {
|
||||||
struct matrix_3x4 { float arr[12]; };
|
return append_gamut_transform(p, scratch->makeArrayDefault<float>(12), src, dst);
|
||||||
return append_gamut_transform(p, scratch->make<matrix_3x4>()->arr, src, dst);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline SkColor4f SkColor4f_from_SkColor(SkColor color, SkColorSpace* dst) {
|
static inline SkColor4f SkColor4f_from_SkColor(SkColor color, SkColorSpace* dst) {
|
||||||
|
Loading…
Reference in New Issue
Block a user