Flutter Engine
The Flutter Engine
flow
layers
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
8
#include "flutter/display_list/skia/dl_sk_canvas.h"
9
#include "flutter/flow/layers/layer.h"
10
#include "
third_party/skia/include/core/SkPoint.h
"
11
#include "
third_party/skia/include/core/SkSize.h
"
12
13
namespace
flutter
{
14
15
class
PlatformViewLayer
:
public
Layer
{
16
public
:
17
PlatformViewLayer
(
const
SkPoint
&
offset
,
const
SkSize
&
size
, int64_t view_id);
18
19
void
Preroll
(
PrerollContext
* context)
override
;
20
void
Paint
(
PaintContext
& context)
const override
;
21
22
private
:
23
SkPoint
offset_;
24
SkSize
size_;
25
int64_t view_id_;
26
27
FML_DISALLOW_COPY_AND_ASSIGN(
PlatformViewLayer
);
28
};
29
30
}
// namespace flutter
31
32
#endif
// FLUTTER_FLOW_LAYERS_PLATFORM_VIEW_LAYER_H_
SkPoint.h
SkSize.h
flutter::Layer
Definition:
layer.h:127
flutter::PlatformViewLayer
Represents a platform view layer, including all mutations.
Definition:
platform_view_layer.h:15
flutter::PlatformViewLayer::Preroll
void Preroll(PrerollContext *context) override
Definition:
platform_view_layer.cc:16
flutter::PlatformViewLayer::PlatformViewLayer
PlatformViewLayer(const SkPoint &offset, const SkSize &size, int64_t view_id)
Definition:
platform_view_layer.cc:11
flutter::PlatformViewLayer::Paint
void Paint(PaintContext &context) const override
Definition:
platform_view_layer.cc:37
flutter::PlatformViewLayer::size
FlutterSize size() const
Definition:
FlutterMutatorView.h:30
flutter::PlatformViewLayer::offset
FlutterPoint offset() const
Definition:
FlutterMutatorView.h:29
flutter
Definition:
asset_manager.cc:10
SkPoint
Definition:
SkPoint_impl.h:163
SkSize
Definition:
SkSize.h:52
flutter::PaintContext
Definition:
layer.h:88
flutter::PrerollContext
Definition:
layer.h:55
Generated on Sun Jun 23 2024 21:54:57 for Flutter Engine by
1.9.4