Flutter Engine
The Flutter Engine
SkOpts_hsw.cpp
Go to the documentation of this file.
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#if !defined(SK_ENABLE_OPTIMIZE_SIZE)
11
12#define SK_OPTS_NS hsw
14
15namespace SkOpts {
16 void Init_hsw() {
19
20 #define M(st) ops_highp[(int)SkRasterPipelineOp::st] = (StageFn)SK_OPTS_NS::st;
24 #undef M
25
26 #define M(st) ops_lowp[(int)SkRasterPipelineOp::st] = (StageFn)SK_OPTS_NS::lowp::st;
30 #undef M
31 }
32} // namespace SkOpts
33
34#endif // SK_ENABLE_OPTIMIZE_SIZE
#define SK_RASTER_PIPELINE_OPS_ALL(M)
#define SK_RASTER_PIPELINE_OPS_LOWP(M)
static void(* just_return)(void)
static void start_pipeline(size_t, size_t, size_t, size_t, SkRasterPipelineStage *, SkSpan< SkRasterPipeline_MemoryCtxPatch >, uint8_t *tailPointer)
constexpr size_t raster_pipeline_highp_stride()
static void start_pipeline(size_t dx, size_t dy, size_t xlimit, size_t ylimit, SkRasterPipelineStage *program, SkSpan< SkRasterPipeline_MemoryCtxPatch > memoryCtxPatches, uint8_t *tailPointer)
static void ABI just_return(Params *, SkRasterPipelineStage *, F, F, F, F)
constexpr size_t raster_pipeline_lowp_stride()
StageFn just_return_lowp
Definition: SkOpts.cpp:39
void(*)(void) StageFn
Definition: SkOpts.h:72
size_t raster_pipeline_highp_stride
Definition: SkOpts.cpp:26
void(* start_pipeline_lowp)(size_t, size_t, size_t, size_t, SkRasterPipelineStage *, SkSpan< SkRasterPipeline_MemoryCtxPatch >, uint8_t *)
Definition: SkOpts.cpp:40
size_t raster_pipeline_lowp_stride
Definition: SkOpts.cpp:25
void(* start_pipeline_highp)(size_t, size_t, size_t, size_t, SkRasterPipelineStage *, SkSpan< SkRasterPipeline_MemoryCtxPatch >, uint8_t *)
Definition: SkOpts.cpp:31
StageFn just_return_highp
Definition: SkOpts.cpp:30
void Init_hsw()
Definition: SkOpts_hsw.cpp:16
#define M(PROC, DITHER)