/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrGLVertexArray_DEFINED #define GrGLVertexArray_DEFINED #include "include/gpu/ganesh/gl/GrGLTypes.h" #include "include/private/base/SkTArray.h" #include "include/private/gpu/ganesh/GrTypesPriv.h" #include "src/gpu/ganesh/GrGpuResource.h" #include <cstddef> class GrBuffer; class GrGLGpu; enum class SkSLType : char; /** * This sets and tracks the vertex attribute array state. It is used internally by GrGLVertexArray * (below) but is separate because it is also used to track the state of vertex array object 0. */ class GrGLAttribArrayState { … }; /** * This class represents an OpenGL vertex array object. It manages the lifetime of the vertex array * and is used to track the state of the vertex array to avoid redundant GL calls. */ class GrGLVertexArray { … }; #endif