setGpuTextureSize method

Future<void> setGpuTextureSize(
  1. int width,
  2. int height
)

(Android only) Update the GPU texture size.

Implementation

Future<void> setGpuTextureSize(int width, int height) async {
  if (_gpuTextureId != null) {
    await _channel.invokeMethod('setTextureSize', {
      'textureId': _gpuTextureId,
      'width': width,
      'height': height,
    });
  }
}