blob: 2142e49b6ad4e2206be48b048c9907acd6c309d1 [file] [log] [blame]
Mike Klein7b7077c2019-06-03 17:10:59 -05001/*
2 * Copyright 2019 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#ifndef SkVMBuilders_DEFINED
9#define SkVMBuilders_DEFINED
10
11#include "src/core/SkVM.h"
12
13// SkVM builders used by both SkVMBench.cpp and SkVMTest.cpp.
14
15struct SrcoverBuilder_F32 : public skvm::Builder {
16 enum class Fmt { A8, G8, RGBA_8888 };
17 SrcoverBuilder_F32(Fmt srcFmt = Fmt::RGBA_8888,
18 Fmt dstFmt = Fmt::RGBA_8888);
19};
20
Mike Klein397fc882019-06-20 11:37:10 -050021struct SrcoverBuilder_I32_Naive : public skvm::Builder {
22 SrcoverBuilder_I32_Naive(); // 8888 over 8888
23};
24
Mike Klein7b7077c2019-06-03 17:10:59 -050025#endif//SkVMBuilders_DEFINED