changed compositor private types to public

This commit is contained in:
Matthew Kuo 2016-01-17 04:11:58 -08:00
parent 5a954d2492
commit 58174448de

View file

@ -54,14 +54,14 @@ use util::print_tree::PrintTree;
use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg}; use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg};
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
enum UnableToComposite { pub enum UnableToComposite {
NoContext, NoContext,
WindowUnprepared, WindowUnprepared,
NotReadyToPaintImage(NotReadyToPaint), NotReadyToPaintImage(NotReadyToPaint),
} }
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
enum NotReadyToPaint { pub enum NotReadyToPaint {
LayerHasOutstandingPaintMessages, LayerHasOutstandingPaintMessages,
MissingRoot, MissingRoot,
PendingSubpages(usize), PendingSubpages(usize),
@ -225,7 +225,7 @@ struct HitTestResult {
point: TypedPoint2D<LayerPixel, f32>, point: TypedPoint2D<LayerPixel, f32>,
} }
struct PipelineDetails { pub struct PipelineDetails {
/// The pipeline associated with this PipelineDetails object. /// The pipeline associated with this PipelineDetails object.
pipeline: Option<CompositionPipeline>, pipeline: Option<CompositionPipeline>,
@ -251,7 +251,7 @@ impl PipelineDetails {
} }
#[derive(Clone, Copy, PartialEq, Debug)] #[derive(Clone, Copy, PartialEq, Debug)]
enum CompositeTarget { pub enum CompositeTarget {
/// Normal composition to a window /// Normal composition to a window
Window, Window,