@@ -4,6 +4,7 @@ use ruffle_render::blend::ExtendedBlendMode;
44pub use search:: DisplayObjectSearchWindow ;
55
66use crate :: avm2:: object:: TObject as _;
7+ use crate :: bitmap:: bitmap_data:: DirtyState ;
78use crate :: context:: UpdateContext ;
89use crate :: debug_ui:: handle:: { AVM1ObjectHandle , AVM2ObjectHandle , DisplayObjectHandle } ;
910use crate :: debug_ui:: movie:: open_movie_button;
@@ -755,6 +756,20 @@ impl DisplayObjectWindow {
755756 ui. label ( "No" ) ;
756757 }
757758 ui. end_row ( ) ;
759+
760+ ui. label ( "Dirty State" ) ;
761+ match bitmap_data. dirty_state ( ) {
762+ DirtyState :: Clean => ui. label ( "Clean" ) ,
763+ DirtyState :: CpuModified ( region) => ui. label ( format ! (
764+ "CPU Modified ({},{} to {},{})" ,
765+ region. x_min, region. y_min, region. x_max, region. y_max
766+ ) ) ,
767+ DirtyState :: GpuModified ( _, region) => ui. label ( format ! (
768+ "GPU Modified ({},{} to {},{})" ,
769+ region. x_min, region. y_min, region. x_max, region. y_max
770+ ) ) ,
771+ } ;
772+ ui. end_row ( ) ;
758773 } ) ;
759774
760775 CollapsingHeader :: new ( "Preview" )
0 commit comments