mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 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 "SkOpts.h" |
Mike Klein | 8caa5af | 2015-08-04 16:48:43 -0400 | [diff] [blame] | 9 | |
mtklein | 0358a6a | 2016-07-13 08:02:20 -0700 | [diff] [blame] | 10 | #define SK_OPTS_NS sse41 |
Mike Klein | 1b9b7d5 | 2018-02-27 10:37:40 -0500 | [diff] [blame] | 11 | #include "SkRasterPipeline_opts.h" |
mtklein | b4a7dc9 | 2016-03-23 06:29:12 -0700 | [diff] [blame] | 12 | #include "SkBlitRow_opts.h" |
mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 13 | |
| 14 | namespace SkOpts { |
| 15 | void Init_sse41() { |
mtklein | 0358a6a | 2016-07-13 08:02:20 -0700 | [diff] [blame] | 16 | blit_row_s32a_opaque = sse41::blit_row_s32a_opaque; |
Mike Klein | 1b9b7d5 | 2018-02-27 10:37:40 -0500 | [diff] [blame] | 17 | |
| 18 | #define M(st) stages_highp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::st; |
| 19 | SK_RASTER_PIPELINE_STAGES(M) |
| 20 | just_return_highp = (StageFn)SK_OPTS_NS::just_return; |
| 21 | start_pipeline_highp = SK_OPTS_NS::start_pipeline; |
| 22 | #undef M |
| 23 | |
| 24 | #define M(st) stages_lowp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::lowp::st; |
| 25 | SK_RASTER_PIPELINE_STAGES(M) |
| 26 | just_return_lowp = (StageFn)SK_OPTS_NS::lowp::just_return; |
| 27 | start_pipeline_lowp = SK_OPTS_NS::lowp::start_pipeline; |
| 28 | #undef M |
mtklein | 8317a18 | 2015-07-30 07:30:16 -0700 | [diff] [blame] | 29 | } |
| 30 | } |