Пример #1
0
 public ScopedFrame(
     CompositorContext context,
     GRContext gr_context,
     SKCanvas canvas,
     ExternalViewEmbedder view_embedder,
     SKMatrix root_surface_transformation,
     bool instrumentation_enabled)
 {
     this.context_       = context;
     this.gr_context_    = gr_context;
     this.canvas_        = canvas;
     this.view_embedder_ = view_embedder;
     this.root_surface_transformation_ = root_surface_transformation;
     this.instrumentation_enabled_     = instrumentation_enabled;
     context_.BeginFrame(this, instrumentation_enabled_);
 }
Пример #2
0
 public virtual ScopedFrame AcquireFrame(GRContext gr_context, SKCanvas canvas, ExternalViewEmbedder view_embedder, SKMatrix root_surface_transformation, bool instrumentation_enabled)
 {
     return(new ScopedFrame(this, gr_context, canvas, view_embedder, root_surface_transformation, instrumentation_enabled));
 }