/* * Copyright 2020 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrRingBuffer_DEFINED #define GrRingBuffer_DEFINED #include "include/core/SkRefCnt.h" #include "include/private/base/SkAssert.h" #include "include/private/base/SkMath.h" #include "src/gpu/ganesh/GrGpuBuffer.h" #include <cstddef> #include <cstdint> #include <vector> class GrGpu; enum class GrGpuBufferType; /** * A wrapper for a GPU buffer that allocates slices in a continuous ring. * * It's assumed that suballocate and startSubmit are always called in the same thread, * and that finishSubmit could be called in a separate thread. */ class GrRingBuffer { … }; #endif