No need to fake makeArrayDefault() now that it exists.
authorMike Klein <mtklein@chromium.org>
Thu, 19 Jan 2017 14:59:20 +0000 (09:59 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 19 Jan 2017 17:14:21 +0000 (17:14 +0000)
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>
src/core/SkPM4fPriv.h

index dd0e550b3208eb210f2a53eb342dc355c540d9d1..a6232bead59b96829e69809dca1581779d80ebc1 100644 (file)
@@ -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,
                                           SkColorSpace* src, SkColorSpace* dst) {
-    struct matrix_3x4 { float arr[12]; };
-    return append_gamut_transform(p, scratch->make<matrix_3x4>()->arr, src, dst);
+    return append_gamut_transform(p, scratch->makeArrayDefault<float>(12), src, dst);
 }
 
 static inline SkColor4f SkColor4f_from_SkColor(SkColor color, SkColorSpace* dst) {