| 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 #pragma once
6
7 #include "flutter/fml/macros.h"
8 #include "impeller/core/buffer.h"
9 #include "impeller/core/range.h"
10
11 namespace impeller {
12
13 struct BufferView {
14 std::shared_ptr<const Buffer> buffer;
15 uint8_t* contents;
16 Range range;
17
18 constexpr explicit operator bool() const { return static_cast<bool>(buffer); }
19 };
20
21 } // namespace impeller
impeller::BufferView::contents
uint8_t * contents
Definition: buffer_view.h:15
impeller::BufferView::range
Range range
Definition: buffer_view.h:16
impeller::BufferView::buffer
std::shared_ptr< const Buffer > buffer
Definition: buffer_view.h:14
range.h
buffer.h
impeller::BufferView
Definition: buffer_view.h:13
impeller::Range
Definition: range.h:13
impeller
Definition: aiks_context.cc:10