public void addPerformanceOverlay(int enabledOptions, Rect bounds) { if (this._currentLayer == null) { return; } var layer = new PerformanceOverlayLayer(enabledOptions); layer.paintBounds = Rect.fromLTRB( bounds.left, bounds.top, bounds.right, bounds.bottom ); this._currentLayer.add(layer); }
public void AddPerformanceOverlay( UInt64 enabledOptions, double left, double right, double top, double bottom) { if (current_layer_ == null) { return; } var rect = new SKRect((float)left, (float)top, (float)right, (float)bottom); var layer = new PerformanceOverlayLayer(enabledOptions); layer.set_paint_bounds(rect); current_layer_.Add(layer); }