Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
10namespace flutter {
11
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
22 layer_snapshots_.clear();
23}
24
26 layer_snapshots_.push_back(data);
27}
28
29} // namespace flutter
LayerSnapshotData(int64_t layer_unique_id, const fml::TimeDelta &duration, const sk_sp< SkData > &snapshot, const SkRect &bounds)
void Clear()
Clears all the stored snapshots.
void Add(const LayerSnapshotData &data)
double duration
Definition examples.cpp:30
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