Declare a system message channel for Skia configuration (#26262)
Fixes https://github.com/flutter/flutter/issues/25244
This commit is contained in:
@@ -224,4 +224,15 @@ class SystemChannels {
|
||||
StandardMethodCodec(),
|
||||
);
|
||||
|
||||
/// A [MethodChannel] for configuring the Skia graphics library.
|
||||
///
|
||||
/// The following outgoing methods are defined for this channel (invoked using
|
||||
/// [OptionalMethodChannel.invokeMethod]):
|
||||
///
|
||||
/// * `Skia.setResourceCacheMaxBytes`: Set the maximum number of bytes that
|
||||
/// can be held in the GPU resource cache.
|
||||
static const MethodChannel skia = MethodChannel(
|
||||
'flutter/skia',
|
||||
JSONMethodCodec(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user