webrender/
debug_item.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5use api::{units::*, ColorF};
6
7#[cfg_attr(feature = "capture", derive(Serialize))]
8#[cfg_attr(feature = "replay", derive(Deserialize))]
9pub enum DebugItem {
10    Text {
11        msg: String,
12        color: ColorF,
13        position: DevicePoint,
14    },
15    Rect {
16        outer_color: ColorF,
17        inner_color: ColorF,
18        rect: DeviceRect,
19        thickness: i32,
20    },
21}
22
23#[cfg_attr(feature = "capture", derive(Serialize))]
24pub struct DebugMessage {
25    pub msg: String,
26    pub timestamp: u64,
27}