// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_PAINT_REFCOUNTED_BUFFER_H_ #define CC_PAINT_REFCOUNTED_BUFFER_H_ #include <utility> #include <vector> #include "base/memory/ref_counted.h" #include "cc/paint/paint_export.h" namespace cc { // A trivial RefCounted wrapper for a block of data. // This is intended to minimize the number of copies when e.g. // recording large vertex/uv/index arrays to a PaintOpBuffer. template <typename T> class CC_PAINT_EXPORT RefCountedBuffer : public base::RefCounted<RefCountedBuffer<T>> { … }; } // namespace cc #endif // CC_PAINT_REFCOUNTED_BUFFER_H_