#include "src/gpu/ganesh/ops/ClearOp.h"
#include "include/private/base/SkAssert.h"
#include "src/gpu/ganesh/GrOpFlushState.h"
#include "src/gpu/ganesh/GrOpsRenderPass.h"
namespace {
bool contains_scissor(const GrScissorState& a, const GrScissorState& b) { … }
}
namespace skgpu::ganesh {
GrOp::Owner ClearOp::MakeColor(GrRecordingContext* context,
const GrScissorState& scissor,
std::array<float, 4> color) { … }
GrOp::Owner ClearOp::MakeStencilClip(GrRecordingContext* context,
const GrScissorState& scissor,
bool insideMask) { … }
ClearOp::ClearOp(Buffer buffer,
const GrScissorState& scissor,
std::array<float, 4> color,
bool insideMask)
: … { … }
GrOp::CombineResult ClearOp::onCombineIfPossible(GrOp* t, SkArenaAlloc*, const GrCaps& caps) { … }
void ClearOp::onExecute(GrOpFlushState* state, const SkRect& chainBounds) { … }
}