Mike Klein | 1b9b7d5 | 2018-02-27 10:37:40 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "SkOpts.h" |
| 9 | |
| 10 | #define SK_OPTS_NS hsw |
| 11 | #include "SkRasterPipeline_opts.h" |
| 12 | #include "SkUtils_opts.h" |
| 13 | |
| 14 | namespace SkOpts { |
| 15 | void Init_hsw() { |
| 16 | #define M(st) stages_highp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::st; |
| 17 | SK_RASTER_PIPELINE_STAGES(M) |
| 18 | just_return_highp = (StageFn)SK_OPTS_NS::just_return; |
| 19 | start_pipeline_highp = SK_OPTS_NS::start_pipeline; |
| 20 | #undef M |
| 21 | |
| 22 | #define M(st) stages_lowp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::lowp::st; |
| 23 | SK_RASTER_PIPELINE_STAGES(M) |
| 24 | just_return_lowp = (StageFn)SK_OPTS_NS::lowp::just_return; |
| 25 | start_pipeline_lowp = SK_OPTS_NS::lowp::start_pipeline; |
| 26 | #undef M |
| 27 | } |
| 28 | } |