未验证 提交 4ceaafc0 编写于 作者: D Dan Field 提交者: GitHub

Make Skia cache size channel respond with a value (#11550)

上级 85810f88
......@@ -63,6 +63,9 @@ void testCanLaunchSecondaryIsolate() {
@pragma('vm:entry-point')
void testSkiaResourceCacheSendsResponse() {
final PlatformMessageResponseCallback callback = (ByteData data) {
if (data == null) {
throw 'Response must not be null.';
}
notifyNative();
};
const String json = '''{
......
......@@ -959,7 +959,9 @@ void Shell::HandleEngineSkiaMessage(fml::RefPtr<PlatformMessage> message) {
true);
}
if (response) {
response->CompleteEmpty();
std::vector<uint8_t> data = {1};
response->Complete(
std::make_unique<fml::DataMapping>(std::move(data)));
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册