Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
12#include "flutter/fml/macros.h"
17
18namespace impeller {
19namespace scene {
20
21class Scene;
22
29
31 public:
32 void Add(const SceneCommand& command);
33
34 private:
36
37 std::shared_ptr<CommandBuffer> BuildSceneCommandBuffer(
38 const SceneContext& scene_context,
39 const Matrix& camera_transform,
40 RenderTarget render_target) const;
41
42 std::vector<SceneCommand> commands_;
43
44 friend Scene;
45
46 SceneEncoder(const SceneEncoder&) = delete;
47
48 SceneEncoder& operator=(const SceneEncoder&) = delete;
49};
50
51} // namespace scene
52} // namespace impeller
53
54#endif // FLUTTER_IMPELLER_SCENE_SCENE_ENCODER_H_
void Add(const SceneCommand &command)
A 4x4 matrix using column-major storage.
Definition matrix.h:37