Flutter Engine
The Flutter Engine
scene_encoder.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_SCENE_SCENE_ENCODER_H_
6#define FLUTTER_IMPELLER_SCENE_SCENE_ENCODER_H_
7
8#include <memory>
9#include <string>
10#include <vector>
11
15
16namespace impeller {
17namespace scene {
18
19class Scene;
20
22 std::string label;
26};
27
29 public:
30 void Add(const SceneCommand& command);
31
32 private:
34
35 std::shared_ptr<CommandBuffer> BuildSceneCommandBuffer(
36 const SceneContext& scene_context,
37 const Matrix& camera_transform,
38 RenderTarget render_target) const;
39
40 std::vector<SceneCommand> commands_;
41
42 friend Scene;
43
44 SceneEncoder(const SceneEncoder&) = delete;
45
46 SceneEncoder& operator=(const SceneEncoder&) = delete;
47};
48
49} // namespace scene
50} // namespace impeller
51
52#endif // FLUTTER_IMPELLER_SCENE_SCENE_ENCODER_H_
void Add(const SceneCommand &command)
list command
Definition: valgrind.py:24
A 4x4 matrix using column-major storage.
Definition: matrix.h:37