mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL contains enough plumbing for Sky to render content to the screen using Ganesh in SkyShell. We're still missing the ability to load data off the network. R=eseidel@chromium.org, ojan@chromium.org Review URL: https://codereview.chromium.org/936883002
24 lines
644 B
C++
24 lines
644 B
C++
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "sky/shell/java_service_provider.h"
|
|
|
|
#include "jni/JavaServiceProvider_jni.h"
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
|
|
bool RegisterJavaServiceProvider(JNIEnv* env) {
|
|
return RegisterNativesImpl(env);
|
|
}
|
|
|
|
mojo::ScopedMessagePipeHandle CreateJavaServiceProvider() {
|
|
JNIEnv* env = base::android::AttachCurrentThread();
|
|
return mojo::ScopedMessagePipeHandle(
|
|
mojo::MessagePipeHandle(Java_JavaServiceProvider_create(env)));
|
|
}
|
|
|
|
} // namespace shell
|
|
} // namespace sky
|