chromium/third_party/skia/src/gpu/ganesh/GrSimpleMesh.h

/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrSimpleMesh_DEFINED
#define GrSimpleMesh_DEFINED

#include "include/core/SkRefCnt.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkDebug.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/ganesh/GrBuffer.h"

#include <cstdint>
#include <utility>

/**
 * Used to communicate simple (non-instanced, direct) draws from GrOp to GrOpsRenderPass.
 * TODO: Consider migrating every Op to make the appropriate draw directly on GrOpsRenderPass.
 */
struct GrSimpleMesh {};

inline void GrSimpleMesh::set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex) {}

inline void GrSimpleMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount,
                                     int baseIndex, uint16_t minIndexValue, uint16_t maxIndexValue,
                                     GrPrimitiveRestart primitiveRestart,
                                     sk_sp<const GrBuffer> vertexBuffer, int baseVertex) {}

inline void GrSimpleMesh::setIndexedPatterned(
        sk_sp<const GrBuffer> indexBuffer, int indexCount, int patternRepeatCount,
        int maxPatternRepetitionsInIndexBuffer, sk_sp<const GrBuffer> vertexBuffer,
        int patternVertexCount, int baseVertex) {}

#endif