Flutter Impeller
buffer.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 #include <memory>
8 
9 namespace impeller {
10 
11 class DeviceBuffer;
12 class Allocator;
13 
14 class Buffer {
15  public:
16  virtual ~Buffer();
17 
18  virtual std::shared_ptr<const DeviceBuffer> GetDeviceBuffer(
19  Allocator& allocator) const = 0;
20 };
21 
22 } // namespace impeller
impeller::Buffer::~Buffer
virtual ~Buffer()
impeller::Buffer
Definition: buffer.h:14
impeller::Allocator
An object that allocates device memory.
Definition: allocator.h:25
impeller::Buffer::GetDeviceBuffer
virtual std::shared_ptr< const DeviceBuffer > GetDeviceBuffer(Allocator &allocator) const =0
impeller
Definition: aiks_context.cc:10