blob: f980cab61bb70d7891b71f9900259652dd169496 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#![doc(test(attr(deny(warnings))))]
#[cfg(target_os = "fuchsia")]
macro_rules! duration {
($category:expr, $name:expr $(, $key:expr => $val:expr)*) => {
fuchsia_trace::duration!($category, $name $(, $key => $val)*)
}
}
#[cfg(not(target_os = "fuchsia"))]
macro_rules! duration {
($category:expr, $name:expr $(, $key:expr => $val:expr)*) => {};
}
pub mod buffer;
mod composition;
mod renderer;
mod small_bit_set;
mod utils;
pub use crate::renderer::CpuRenderer;
#[cfg(feature = "gpu")]
pub use crate::renderer::GpuRenderer;
pub use composition::{Composition, Layer};
pub use utils::clear_buffer;
pub use surpass::painter::{
BlendMode, Channel, Color, Fill, FillRule, Func, Gradient, GradientBuilder, GradientType,
Image, Props, Rect, Style, Texture, BGR0, BGR1, BGRA, RGB0, RGB1, RGBA,
};
pub use surpass::{
AffineTransform, GeomId, GeomPresTransform, GeomPresTransformError, Order, OrderError, Path,
PathBuilder, Point,
};