Fix x86_64 build
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#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 {
|
||||
@@ -431,13 +430,13 @@ void PlatformViewAndroid::DispatchPointerDataPacket(JNIEnv* env,
|
||||
jint position) {
|
||||
char* data = static_cast<char*>(env->GetDirectBufferAddress(buffer));
|
||||
|
||||
blink::Threads::UI()->PostTask(ftl::WrapLambda([
|
||||
engine = engine_->GetWeakPtr(),
|
||||
packet = std::make_unique<PointerDataPacket>(data, position)
|
||||
] {
|
||||
auto engine = engine_->GetWeakPtr();
|
||||
PointerDataPacket* packet = new PointerDataPacket(data, position);
|
||||
blink::Threads::UI()->PostTask([engine, packet] {
|
||||
if (engine.get())
|
||||
engine->HandlePointerDataPacket(*packet);
|
||||
}));
|
||||
delete packet;
|
||||
});
|
||||
}
|
||||
|
||||
void PlatformViewAndroid::ReleaseSurface() {
|
||||
|
||||
Reference in New Issue
Block a user