Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
buffer_view.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_VIEW_H_
6#define FLUTTER_IMPELLER_CORE_BUFFER_VIEW_H_
7
8#include <memory>
10
11namespace impeller {
12
13class DeviceBuffer;
14
15struct BufferView {
16 std::shared_ptr<const DeviceBuffer> buffer;
18
19 constexpr explicit operator bool() const { return static_cast<bool>(buffer); }
20};
21
22} // namespace impeller
23
24#endif // FLUTTER_IMPELLER_CORE_BUFFER_VIEW_H_
std::shared_ptr< const DeviceBuffer > buffer
Definition buffer_view.h:16