From 1f2ab5a6d4699e62bc20bbd89bea551162578661 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 30 Jan 2019 11:14:41 -0800 Subject: [PATCH] Declare a system message channel for Skia configuration (#26262) Fixes https://github.com/flutter/flutter/issues/25244 --- .../flutter/lib/src/services/system_channels.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/flutter/lib/src/services/system_channels.dart b/packages/flutter/lib/src/services/system_channels.dart index 76dbcfea39..f7b9022f4d 100644 --- a/packages/flutter/lib/src/services/system_channels.dart +++ b/packages/flutter/lib/src/services/system_channels.dart @@ -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(), + ); }