Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
flow
layer_snapshot_store.cc
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
#include "flutter/flow/layer_snapshot_store.h"
6
7
#include "flutter/fml/time/time_delta.h"
8
#include "flutter/fml/time/time_point.h"
9
10
namespace
flutter
{
11
12
LayerSnapshotData::LayerSnapshotData
(int64_t layer_unique_id,
13
const
fml::TimeDelta
&
duration
,
14
const
sk_sp<SkData>
& snapshot,
15
const
SkRect
& bounds)
16
: layer_unique_id_(layer_unique_id),
17
duration_(
duration
),
18
snapshot_(snapshot),
19
bounds_(bounds) {}
20
21
void
LayerSnapshotStore::Clear
() {
22
layer_snapshots_.clear();
23
}
24
25
void
LayerSnapshotStore::Add
(
const
LayerSnapshotData
&
data
) {
26
layer_snapshots_.push_back(
data
);
27
}
28
29
}
// namespace flutter
flutter::LayerSnapshotData
Definition
layer_snapshot_store.h:21
flutter::LayerSnapshotData::LayerSnapshotData
LayerSnapshotData(int64_t layer_unique_id, const fml::TimeDelta &duration, const sk_sp< SkData > &snapshot, const SkRect &bounds)
Definition
layer_snapshot_store.cc:12
flutter::LayerSnapshotStore::Clear
void Clear()
Clears all the stored snapshots.
Definition
layer_snapshot_store.cc:21
flutter::LayerSnapshotStore::Add
void Add(const LayerSnapshotData &data)
Definition
layer_snapshot_store.cc:25
fml::TimeDelta
Definition
time_delta.h:29
sk_sp
Definition
SkRefCnt.h:220
duration
double duration
Definition
examples.cpp:30
flutter
Definition
asset_manager.cc:10
flutter::data
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition
switches.h:41
SkRect
Definition
extension.cpp:13
Generated on Fri Apr 26 2024 06:14:03 for Flutter Engine by
1.9.8