| Flutter Impeller |

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>
9 #include "impeller/core/range.h"
10
11 namespace impeller {
12
13 class DeviceBuffer;
14
15 struct BufferView {
16 std::shared_ptr<const DeviceBuffer> buffer;
17 Range range;
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_
impeller::BufferView::range
Range range
Definition: buffer_view.h:17
range.h
impeller::BufferView
Definition: buffer_view.h:15
impeller::Range
Definition: range.h:14
impeller::BufferView::buffer
std::shared_ptr< const DeviceBuffer > buffer
Definition: buffer_view.h:16
impeller
Definition: aiks_blur_unittests.cc:20