* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrBuffer_DEFINED
#define GrBuffer_DEFINED
#include "include/gpu/ganesh/GrTypes.h"
class GrBuffer {
public:
GrBuffer(const GrBuffer&) = delete;
GrBuffer& operator=(const GrBuffer&) = delete;
virtual ~GrBuffer() = default;
virtual void ref() const = 0;
virtual void unref() const = 0;
virtual size_t size() const = 0;
virtual bool isCpuBuffer() const = 0;
protected:
GrBuffer() = default;
};
#endif