| 1 | /* |
|---|---|
| 2 | * Copyright 2015 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 "src/core/SkOpts.h" |
| 9 | |
| 10 | #define SK_OPTS_NS sse41 |
| 11 | #include "src/opts/SkBlitRow_opts.h" |
| 12 | #include "src/opts/SkRasterPipeline_opts.h" |
| 13 | |
| 14 | namespace SkOpts { |
| 15 | void Init_sse41() { |
| 16 | blit_row_color32 = sse41::blit_row_color32; |
| 17 | blit_row_s32a_opaque = sse41::blit_row_s32a_opaque; |
| 18 | |
| 19 | #define M(st) stages_highp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::st; |
| 20 | SK_RASTER_PIPELINE_STAGES(M) |
| 21 | just_return_highp = (StageFn)SK_OPTS_NS::just_return; |
| 22 | start_pipeline_highp = SK_OPTS_NS::start_pipeline; |
| 23 | #undef M |
| 24 | |
| 25 | #define M(st) stages_lowp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::lowp::st; |
| 26 | SK_RASTER_PIPELINE_STAGES(M) |
| 27 | just_return_lowp = (StageFn)SK_OPTS_NS::lowp::just_return; |
| 28 | start_pipeline_lowp = SK_OPTS_NS::lowp::start_pipeline; |
| 29 | #undef M |
| 30 | } |
| 31 | } |
| 32 |