chromium/components/viz/common/quads/quad_list.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_VIZ_COMMON_QUADS_QUAD_LIST_H_
#define COMPONENTS_VIZ_COMMON_QUADS_QUAD_LIST_H_

#include <stddef.h>

#include "cc/base/list_container.h"
#include "components/viz/common/quads/draw_quad.h"

namespace viz {

// A list of DrawQuad objects, sorted internally in front-to-back order. To
// add a new quad drawn behind another quad, it must be placed after the other
// quad.
class VIZ_COMMON_EXPORT QuadList : public cc::ListContainer<DrawQuad> {};

}  // namespace viz

#endif  // COMPONENTS_VIZ_COMMON_QUADS_QUAD_LIST_H_