1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! The `LayerTree` domain.
//!
//! Method names for the `LayerTree` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.
/// Provides the reasons why the given layer was composited.
///
/// Parameters:
/// - `layerId`: LayerId
///
/// Returns: `compositingReasons`, `compositingReasonIds`
pub const COMPOSITING_REASONS: &str = "LayerTree.compositingReasons";
/// Disables compositing tree inspection.
pub const DISABLE: &str = "LayerTree.disable";
/// Enables compositing tree inspection.
pub const ENABLE: &str = "LayerTree.enable";
/// Returns the snapshot identifier.
///
/// Parameters:
/// - `tiles`: array
///
/// Returns: `snapshotId`
pub const LOAD_SNAPSHOT: &str = "LayerTree.loadSnapshot";
/// Returns the layer snapshot identifier.
///
/// Parameters:
/// - `layerId`: LayerId
///
/// Returns: `snapshotId`
pub const MAKE_SNAPSHOT: &str = "LayerTree.makeSnapshot";
/// `LayerTree.profileSnapshot`
///
/// Parameters:
/// - `snapshotId`: SnapshotId
/// - `minRepeatCount`: integer (optional)
/// - `minDuration`: number (optional)
/// - `clipRect`: DOM.Rect (optional)
///
/// Returns: `timings`
pub const PROFILE_SNAPSHOT: &str = "LayerTree.profileSnapshot";
/// Releases layer snapshot captured by the back-end.
///
/// Parameters:
/// - `snapshotId`: SnapshotId
pub const RELEASE_SNAPSHOT: &str = "LayerTree.releaseSnapshot";
/// Replays the layer snapshot and returns the resulting bitmap.
///
/// Parameters:
/// - `snapshotId`: SnapshotId
/// - `fromStep`: integer (optional)
/// - `toStep`: integer (optional)
/// - `scale`: number (optional)
///
/// Returns: `dataURL`
pub const REPLAY_SNAPSHOT: &str = "LayerTree.replaySnapshot";
/// Replays the layer snapshot and returns canvas log.
///
/// Parameters:
/// - `snapshotId`: SnapshotId
///
/// Returns: `commandLog`
pub const SNAPSHOT_COMMAND_LOG: &str = "LayerTree.snapshotCommandLog";