Flutter Engine
 
Loading...
Searching...
No Matches
platform_view_layer.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_FLOW_LAYERS_PLATFORM_VIEW_LAYER_H_
6#define FLUTTER_FLOW_LAYERS_PLATFORM_VIEW_LAYER_H_
7
10
11namespace flutter {
12
13class PlatformViewLayer : public Layer {
14 public:
15 PlatformViewLayer(const DlPoint& offset, const DlSize& size, int64_t view_id);
16
17 void Preroll(PrerollContext* context) override;
18 void Paint(PaintContext& context) const override;
19
20 private:
21 DlPoint offset_;
22 DlSize size_;
23 int64_t view_id_;
24
26};
27
28} // namespace flutter
29
30#endif // FLUTTER_FLOW_LAYERS_PLATFORM_VIEW_LAYER_H_
Represents a platform view layer, including all mutations.
void Preroll(PrerollContext *context) override
FlutterPoint offset() const
G_BEGIN_DECLS FlutterViewId view_id
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27