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 |
23 |