Declare a system message channel for Skia configuration (#26262)

Fixes https://github.com/flutter/flutter/issues/25244
This commit is contained in:
Jason Simmons
2019-01-30 11:14:41 -08:00
committed by GitHub
parent 7c19ec6ca8
commit 1f2ab5a6d4

View File

@@ -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(),
);
}