提交 1af7a6fe 编写于 作者: C Chinmay Garde 提交者: GitHub

Update buildroot and re-enable use of C++14 on Android x86. (#3096)

上级 6f025ab0
......@@ -45,7 +45,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'f0e80ac2a4abfd5af99c57e2da3a1b0f87aecb92',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '9dcb5b06fe497f1bfd563e2c9293161070d5340c',
# Fuchsia compatibility
#
......
......@@ -24,6 +24,7 @@
#include "flutter/shell/common/engine.h"
#include "flutter/shell/common/shell.h"
#include "jni/FlutterView_jni.h"
#include "lib/ftl/functional/wrap_lambda.h"
#include "third_party/skia/include/core/SkSurface.h"
namespace shell {
......@@ -430,13 +431,13 @@ void PlatformViewAndroid::DispatchPointerDataPacket(JNIEnv* env,
jint position) {
char* data = static_cast<char*>(env->GetDirectBufferAddress(buffer));
auto engine = engine_->GetWeakPtr();
PointerDataPacket* packet = new PointerDataPacket(data, position);
blink::Threads::UI()->PostTask([engine, packet] {
blink::Threads::UI()->PostTask(ftl::WrapLambda([
engine = engine_->GetWeakPtr(),
packet = std::make_unique<PointerDataPacket>(data, position)
] {
if (engine.get())
engine->HandlePointerDataPacket(*packet);
delete packet;
});
}));
}
void PlatformViewAndroid::ReleaseSurface() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册