45d9cc86b3
These are neat but mostly just a distraction for now. I've left all the assembly in place and unit tested to make putting these back easy when we want to. Change-Id: Id2bd05eca363baf9c4e31125ee79e722ded54cb7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/283307 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Herb Derby <herb@google.com>
26 lines
638 B
C
26 lines
638 B
C
/*
|
|
* Copyright 2019 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkVMBuilders_DEFINED
|
|
#define SkVMBuilders_DEFINED
|
|
|
|
#include "src/core/SkVM.h"
|
|
|
|
// SkVM builders used by both SkVMBench.cpp and SkVMTest.cpp.
|
|
|
|
struct SrcoverBuilder_F32 : public skvm::Builder {
|
|
enum class Fmt { A8, G8, RGBA_8888 };
|
|
SrcoverBuilder_F32(Fmt srcFmt = Fmt::RGBA_8888,
|
|
Fmt dstFmt = Fmt::RGBA_8888);
|
|
};
|
|
|
|
struct SrcoverBuilder_I32_Naive : public skvm::Builder {
|
|
SrcoverBuilder_I32_Naive(); // 8888 over 8888
|
|
};
|
|
|
|
#endif//SkVMBuilders_DEFINED
|