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 #ifndef FLUTTER_IMPELLER_CORE_BUFFER_H_
6 #define FLUTTER_IMPELLER_CORE_BUFFER_H_
7 
8 #include <memory>
9 
10 namespace impeller {
11 
12 class DeviceBuffer;
13 class Allocator;
14 
15 class Buffer {
16  public:
17  virtual ~Buffer();
18 
19  virtual std::shared_ptr<const DeviceBuffer> GetDeviceBuffer(
20  Allocator& allocator) const = 0;
21 };
22 
23 } // namespace impeller
24 
25 #endif // FLUTTER_IMPELLER_CORE_BUFFER_H_
impeller::Buffer::~Buffer
virtual ~Buffer()
impeller::Buffer
Definition: buffer.h:15
impeller::Allocator
An object that allocates device memory.
Definition: allocator.h:22
impeller::Buffer::GetDeviceBuffer
virtual std::shared_ptr< const DeviceBuffer > GetDeviceBuffer(Allocator &allocator) const =0
impeller
Definition: aiks_context.cc:10