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 "src/core/SkOpts.h"
9
10#define SK_OPTS_NS hsw
11#include "src/core/SkCubicSolver.h"
12#include "src/opts/SkBitmapProcState_opts.h"
13#include "src/opts/SkBlitRow_opts.h"
14#include "src/opts/SkRasterPipeline_opts.h"
15#include "src/opts/SkUtils_opts.h"
16#include "src/opts/SkVM_opts.h"
17
18namespace SkOpts {
19 void Init_hsw() {
20 blit_row_color32 = hsw::blit_row_color32;
21 blit_row_s32a_opaque = hsw::blit_row_s32a_opaque;
22
23 S32_alpha_D32_filter_DX = hsw::S32_alpha_D32_filter_DX;
24
25 cubic_solver = SK_OPTS_NS::cubic_solver;
26
27 #define M(st) stages_highp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::st;
28 SK_RASTER_PIPELINE_STAGES(M)
29 just_return_highp = (StageFn)SK_OPTS_NS::just_return;
30 start_pipeline_highp = SK_OPTS_NS::start_pipeline;
31 #undef M
32
33 #define M(st) stages_lowp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::lowp::st;
34 SK_RASTER_PIPELINE_STAGES(M)
35 just_return_lowp = (StageFn)SK_OPTS_NS::lowp::just_return;
36 start_pipeline_lowp = SK_OPTS_NS::lowp::start_pipeline;
37 #undef M
38
39 interpret_skvm = SK_OPTS_NS::interpret_skvm;
40 }
41}
42