flutter_flutter/shell/java_service_provider.cc
Adam Barth d86eedd1aa Connect Sky and Ganesh in SkyShell
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
2015-02-18 13:15:36 -08:00

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