Commit 579759c3 authored by dtrainor's avatar dtrainor Committed by Commit bot

Revert "Updated to GVR 1.0 SDK"

This reverts commit 80ccce30.

BUG=389343
TBR=bshe@

Review-Url: https://codereview.chromium.org/2377763003
Cr-Commit-Position: refs/heads/master@{#421352}
parent c91f160c
...@@ -488,7 +488,7 @@ deps_os = { ...@@ -488,7 +488,7 @@ deps_os = {
Var('chromium_git') + '/external/github.com/GoogleChrome/custom-tabs-client.git' + '@' + 'c51efbddc4f976c88d15c730a79feba65ca857af', Var('chromium_git') + '/external/github.com/GoogleChrome/custom-tabs-client.git' + '@' + 'c51efbddc4f976c88d15c730a79feba65ca857af',
'src/third_party/gvr-android-sdk/src': 'src/third_party/gvr-android-sdk/src':
Var('chromium_git') + '/external/github.com/googlevr/gvr-android-sdk.git' + '@' + '25e7e14413229d4644a66be77e8f8ddeb3f91fe7', Var('chromium_git') + '/external/github.com/googlevr/gvr-android-sdk.git' + '@' + 'cff15311c7c1abbe77b3c714135dccc2009ee473',
}, },
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "base/logging.h" #include "base/logging.h"
#include "chrome/browser/android/vr_shell/vr_math.h" #include "chrome/browser/android/vr_shell/vr_math.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
namespace vr_shell { namespace vr_shell {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_ #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_
#define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_ #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
#include "ui/gl/gl_bindings.h" #include "ui/gl/gl_bindings.h"
namespace vr_shell { namespace vr_shell {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <array> #include <array>
#include <cmath> #include <cmath>
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
namespace vr_shell { namespace vr_shell {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <string> #include <string>
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
namespace vr_shell { namespace vr_shell {
......
...@@ -162,7 +162,7 @@ void VrShell::InitializeGl(JNIEnv* env, ...@@ -162,7 +162,7 @@ void VrShell::InitializeGl(JNIEnv* env,
std::vector<gvr::BufferSpec> specs; std::vector<gvr::BufferSpec> specs;
specs.push_back(gvr_api_->CreateBufferSpec()); specs.push_back(gvr_api_->CreateBufferSpec());
render_size_ = specs[0].GetSize(); render_size_ = specs[0].GetSize();
swap_chain_.reset(new gvr::SwapChain(gvr_api_->CreateSwapChain(specs))); swap_chain_.reset(new gvr::SwapChain(gvr_api_->CreateSwapchain(specs)));
vr_shell_renderer_.reset(new VrShellRenderer()); vr_shell_renderer_.reset(new VrShellRenderer());
buffer_viewport_list_.reset( buffer_viewport_list_.reset(
...@@ -236,14 +236,38 @@ void VrShell::UpdateController() { ...@@ -236,14 +236,38 @@ void VrShell::UpdateController() {
} }
} }
void ApplyNeckModel(gvr::Mat4f& mat_forward) {
// This assumes that the input matrix is a pure rotation matrix. The
// input object_from_reference matrix has the inverse rotation of
// the head rotation. Invert it (this is just a transpose).
gvr::Mat4f mat = MatrixTranspose(mat_forward);
// Position of the point between the eyes, relative to the neck pivot:
const float kNeckHorizontalOffset = -0.080f; // meters in Z
const float kNeckVerticalOffset = 0.075f; // meters in Y
std::array<float, 4> neckOffset = {
{0.0f, kNeckVerticalOffset, kNeckHorizontalOffset, 1.0f}};
// Rotate eyes around neck pivot point.
auto offset = MatrixVectorMul(mat, neckOffset);
// Measure new position relative to original center of head, because
// applying a neck model should not elevate the camera.
offset[1] -= kNeckVerticalOffset;
// Right-multiply the inverse translation onto the
// object_from_reference_matrix.
TranslateMRight(mat_forward, mat_forward, -offset[0], -offset[1], -offset[2]);
}
void VrShell::DrawFrame(JNIEnv* env, const JavaParamRef<jobject>& obj) { void VrShell::DrawFrame(JNIEnv* env, const JavaParamRef<jobject>& obj) {
buffer_viewport_list_->SetToRecommendedBufferViewports(); buffer_viewport_list_->SetToRecommendedBufferViewports();
gvr::Frame frame = swap_chain_->AcquireFrame(); gvr::Frame frame = swap_chain_->AcquireFrame();
gvr::ClockTimePoint target_time = gvr::GvrApi::GetTimePointNow(); gvr::ClockTimePoint target_time = gvr::GvrApi::GetTimePointNow();
target_time.monotonic_system_time_nanos += kPredictionTimeWithoutVsyncNanos; target_time.monotonic_system_time_nanos += kPredictionTimeWithoutVsyncNanos;
head_pose_ = gvr_api_->GetHeadSpaceFromStartSpaceRotation(target_time); head_pose_ = gvr_api_->GetHeadPoseInStartSpace(target_time);
head_pose_ = gvr_api_->ApplyNeckModel(head_pose_, 1.0f);
// Bind back to the default framebuffer. // Bind back to the default framebuffer.
frame.BindBuffer(0); frame.BindBuffer(0);
...@@ -261,6 +285,16 @@ void VrShell::DrawFrame(JNIEnv* env, const JavaParamRef<jobject>& obj) { ...@@ -261,6 +285,16 @@ void VrShell::DrawFrame(JNIEnv* env, const JavaParamRef<jobject>& obj) {
void VrShell::DrawVrShell(int64_t time) { void VrShell::DrawVrShell(int64_t time) {
float screen_tilt = desktop_screen_tilt_ * M_PI / 180.0f; float screen_tilt = desktop_screen_tilt_ * M_PI / 180.0f;
gvr::Vec3f headPos = getTranslation(head_pose_);
if (headPos.x == 0.0f && headPos.y == 0.0f && headPos.z == 0.0f) {
// This appears to be a 3DOF pose without a neck model. Add one.
// The head pose has redundant data. Assume we're only using the
// object_from_reference_matrix, we're not updating position_external.
// TODO: Not sure what object_from_reference_matrix is. The new api removed
// it. For now, removing it seems working fine.
ApplyNeckModel(head_pose_);
}
forward_vector_ = getForwardVector(head_pose_); forward_vector_ = getForwardVector(head_pose_);
desktop_plane_->translation = desktop_position_; desktop_plane_->translation = desktop_position_;
...@@ -401,7 +435,6 @@ void VrShell::DrawWebVr() { ...@@ -401,7 +435,6 @@ void VrShell::DrawWebVr() {
glDisable(GL_POLYGON_OFFSET_FILL); glDisable(GL_POLYGON_OFFSET_FILL);
// Don't need to clear, since we're drawing over the entire render target. // Don't need to clear, since we're drawing over the entire render target.
glClear(GL_COLOR_BUFFER_BIT);
glViewport(0, 0, render_size_.width, render_size_.height); glViewport(0, 0, render_size_.width, render_size_.height);
vr_shell_renderer_->GetWebVrRenderer()->Draw(content_texture_id_); vr_shell_renderer_->GetWebVrRenderer()->Draw(content_texture_id_);
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include "chrome/browser/android/vr_shell/ui_elements.h" #include "chrome/browser/android/vr_shell/ui_elements.h"
#include "chrome/browser/android/vr_shell/ui_scene.h" #include "chrome/browser/android/vr_shell/ui_scene.h"
#include "device/vr/android/gvr/gvr_delegate.h" #include "device/vr/android/gvr/gvr_delegate.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
namespace content { namespace content {
class ContentViewCore; class ContentViewCore;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "base/macros.h" #include "base/macros.h"
#include "chrome/browser/android/vr_shell/vr_math.h" #include "chrome/browser/android/vr_shell/vr_math.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
#include "ui/gl/gl_bindings.h" #include "ui/gl/gl_bindings.h"
namespace vr_shell { namespace vr_shell {
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "base/trace_event/trace_event.h" #include "base/trace_event/trace_event.h"
#include "device/vr/android/gvr/gvr_delegate.h" #include "device/vr/android/gvr/gvr_delegate.h"
#include "device/vr/vr_device_manager.h" #include "device/vr/vr_device_manager.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
#include "ui/gfx/transform.h" #include "ui/gfx/transform.h"
#include "ui/gfx/transform_util.h" #include "ui/gfx/transform_util.h"
...@@ -150,9 +150,7 @@ VRPosePtr GvrDevice::GetPose() { ...@@ -150,9 +150,7 @@ VRPosePtr GvrDevice::GetPose() {
gvr::ClockTimePoint target_time = gvr::GvrApi::GetTimePointNow(); gvr::ClockTimePoint target_time = gvr::GvrApi::GetTimePointNow();
target_time.monotonic_system_time_nanos += kPredictionTimeWithoutVsyncNanos; target_time.monotonic_system_time_nanos += kPredictionTimeWithoutVsyncNanos;
gvr::Mat4f head_mat = gvr::Mat4f head_mat = gvr_api->GetHeadPoseInStartSpace(target_time);
gvr_api->GetHeadSpaceFromStartSpaceRotation(target_time);
head_mat = gvr_api->ApplyNeckModel(head_mat, 1.0f);
gfx::Transform inv_transform( gfx::Transform inv_transform(
head_mat.m[0][0], head_mat.m[0][1], head_mat.m[0][2], head_mat.m[0][3], head_mat.m[0][0], head_mat.m[0][1], head_mat.m[0][2], head_mat.m[0][3],
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#include "device/vr/android/gvr/gvr_gamepad_data_fetcher.h" #include "device/vr/android/gvr/gvr_gamepad_data_fetcher.h"
#include "device/vr/vr_device_manager.h" #include "device/vr/vr_device_manager.h"
#include "jni/GvrDeviceProvider_jni.h" #include "jni/GvrDeviceProvider_jni.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_controller.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_controller.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
using base::android::AttachCurrentThread; using base::android::AttachCurrentThread;
using base::android::GetApplicationContext; using base::android::GetApplicationContext;
...@@ -77,6 +77,9 @@ GvrDeviceProvider::GvrDeviceProvider() ...@@ -77,6 +77,9 @@ GvrDeviceProvider::GvrDeviceProvider()
main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {} main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {}
GvrDeviceProvider::~GvrDeviceProvider() { GvrDeviceProvider::~GvrDeviceProvider() {
GamepadDataFetcherManager::GetInstance()->RemoveSourceFactory(
GAMEPAD_SOURCE_GVR);
ExitPresent(); ExitPresent();
} }
...@@ -93,9 +96,16 @@ void GvrDeviceProvider::SetClient(VRClientDispatcher* client) { ...@@ -93,9 +96,16 @@ void GvrDeviceProvider::SetClient(VRClientDispatcher* client) {
} }
void GvrDeviceProvider::Initialize() { void GvrDeviceProvider::Initialize() {
if (!vr_device_) { if (!non_presenting_delegate_) {
vr_device_.reset(new GvrDevice(this, nullptr)); non_presenting_delegate_.reset(new GvrNonPresentingDelegate());
client_->OnDeviceConnectionStatusChanged(vr_device_.get(), true); if (non_presenting_delegate_->gvr_api()) {
vr_device_.reset(new GvrDevice(this, non_presenting_delegate_.get()));
client_->OnDeviceConnectionStatusChanged(vr_device_.get(), true);
GamepadDataFetcherManager::GetInstance()->AddFactory(
new GvrGamepadDataFetcher::Factory(non_presenting_delegate_.get(),
vr_device_->id()));
}
} }
} }
...@@ -113,10 +123,7 @@ void GvrDeviceProvider::ExitPresent() { ...@@ -113,10 +123,7 @@ void GvrDeviceProvider::ExitPresent() {
if (!vr_device_) if (!vr_device_)
return; return;
vr_device_->SetDelegate(nullptr); vr_device_->SetDelegate(non_presenting_delegate_.get());
GamepadDataFetcherManager::GetInstance()->RemoveSourceFactory(
GAMEPAD_SOURCE_GVR);
GvrDelegateProvider* delegate_provider = GvrDelegateProvider::GetInstance(); GvrDelegateProvider* delegate_provider = GvrDelegateProvider::GetInstance();
if (delegate_provider) if (delegate_provider)
...@@ -146,8 +153,6 @@ void GvrDeviceProvider::GvrDelegateReady(GvrDelegate* delegate) { ...@@ -146,8 +153,6 @@ void GvrDeviceProvider::GvrDelegateReady(GvrDelegate* delegate) {
DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
vr_device_->SetDelegate(delegate); vr_device_->SetDelegate(delegate);
GamepadDataFetcherManager::GetInstance()->AddFactory(
new GvrGamepadDataFetcher::Factory(delegate, vr_device_->id()));
} }
} // namespace device } // namespace device
...@@ -44,6 +44,7 @@ class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider { ...@@ -44,6 +44,7 @@ class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider {
std::unique_ptr<VRClientDispatcher> client_; std::unique_ptr<VRClientDispatcher> client_;
std::unique_ptr<GvrDevice> vr_device_; std::unique_ptr<GvrDevice> vr_device_;
std::unique_ptr<GvrNonPresentingDelegate> non_presenting_delegate_;
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
......
...@@ -54,8 +54,6 @@ GvrGamepadDataFetcher::GvrGamepadDataFetcher(GvrDelegate* delegate, ...@@ -54,8 +54,6 @@ GvrGamepadDataFetcher::GvrGamepadDataFetcher(GvrDelegate* delegate,
bool success = controller_api_->Init(options, gvr_api->GetContext()); bool success = controller_api_->Init(options, gvr_api->GetContext());
if (!success) if (!success)
controller_api_.reset(nullptr); controller_api_.reset(nullptr);
user_prefs_.reset(new gvr::UserPrefs(gvr_api->GetUserPrefs().cobj()));
} }
GvrGamepadDataFetcher::~GvrGamepadDataFetcher() {} GvrGamepadDataFetcher::~GvrGamepadDataFetcher() {}
...@@ -96,9 +94,7 @@ void GvrGamepadDataFetcher::GetGamepadData(bool devices_changed_hint) { ...@@ -96,9 +94,7 @@ void GvrGamepadDataFetcher::GetGamepadData(bool devices_changed_hint) {
pad.timestamp = controller_state_.GetLastOrientationTimestamp(); pad.timestamp = controller_state_.GetLastOrientationTimestamp();
// TODO: Query from API if avaialable. // TODO: Query from API if avaialable.
gvr::ControllerHandedness handedness = user_prefs_->GetControllerHandedness(); pad.hand = GamepadHandRight;
pad.hand = (handedness == GVR_CONTROLLER_RIGHT_HANDED) ? GamepadHandRight
: GamepadHandLeft;
if (controller_state_.IsTouching()) { if (controller_state_.IsTouching()) {
gvr_vec2f touch_position = controller_state_.GetTouchPos(); gvr_vec2f touch_position = controller_state_.GetTouchPos();
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include <string> #include <string>
#include "device/gamepad/gamepad_data_fetcher.h" #include "device/gamepad/gamepad_data_fetcher.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_controller.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_controller.h"
#include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_types.h" #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/gvr_types.h"
namespace device { namespace device {
...@@ -40,7 +40,6 @@ class GvrGamepadDataFetcher : public GamepadDataFetcher { ...@@ -40,7 +40,6 @@ class GvrGamepadDataFetcher : public GamepadDataFetcher {
private: private:
std::unique_ptr<gvr::ControllerApi> controller_api_; std::unique_ptr<gvr::ControllerApi> controller_api_;
std::unique_ptr<gvr::UserPrefs> user_prefs_;
gvr::ControllerState controller_state_; gvr::ControllerState controller_state_;
unsigned int display_id_; unsigned int display_id_;
......
...@@ -10,12 +10,13 @@ if (gvr_arch == "x64") { ...@@ -10,12 +10,13 @@ if (gvr_arch == "x64") {
} }
android_aar_prebuilt("gvr_common_java") { android_aar_prebuilt("gvr_common_java") {
aar_path = "src/ndk/lib/common_library.aar" aar_path = "src/ndk-beta/lib/common_library.aar"
jar_excluded_patterns = [ "*/protobuf/*" ]
} }
android_aar_prebuilt("gvr_base_java") { android_aar_prebuilt("gvr_base_java") {
aar_path = "src/libraries/base/base.aar" aar_path = "src/libraries/base/base.aar"
proguard_configs = [ "src/proguard-gvr.txt" ] proguard_configs = [ "proguard/base.flags" ]
ignore_manifest = true # Ignored because manifest merging is not supported (http://crbug.com/643967) ignore_manifest = true # Ignored because manifest merging is not supported (http://crbug.com/643967)
ignore_native_libraries = true ignore_native_libraries = true
} }
...@@ -36,7 +37,7 @@ source_set("libgvr") { ...@@ -36,7 +37,7 @@ source_set("libgvr") {
if (gvr_arch != "mipsel") { if (gvr_arch != "mipsel") {
copy("libgvr_copy") { copy("libgvr_copy") {
sources = [ sources = [
"src/ndk/lib/android_${gvr_arch}/libgvr.so", "src/ndk-beta/lib/android_${gvr_arch}/libgvr.so",
] ]
outputs = [ outputs = [
"${root_out_dir}/libgvr.so", "${root_out_dir}/libgvr.so",
...@@ -45,5 +46,5 @@ if (gvr_arch != "mipsel") { ...@@ -45,5 +46,5 @@ if (gvr_arch != "mipsel") {
} }
config("libgvr_config") { config("libgvr_config") {
include_dirs = [ "src/ndk/include/" ] include_dirs = [ "src/ndk-beta/include/" ]
} }
...@@ -5645,47 +5645,6 @@ freely, subject to the following restrictions: ...@@ -5645,47 +5645,6 @@ freely, subject to the following restrictions:
distribution. distribution.
****************************
OpenCV
****************************
IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
By downloading, copying, installing or using the software you agree to this license.
If you do not agree to this license, do not download, install,
copy or use the software.
Intel License Agreement
For Open Source Computer Vision Library
Copyright (C) 2000, 2001, Intel Corporation, all rights reserved.
Copyright (C) 2013, OpenCV Foundation, all rights reserved.
Third party copyrights are property of their respective owners.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistribution's of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistribution's in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The name of Intel Corporation may not be used to endorse or promote products
derived from this software without specific prior written permission.
This software is provided by the copyright holders and contributors "as is" and
any express or implied warranties, including, but not limited to, the implied
warranties of merchantability and fitness for a particular purpose are disclaimed.
In no event shall the Intel Corporation or contributors be liable for any direct,
indirect, incidental, special, exemplary, or consequential damages
(including, but not limited to, procurement of substitute goods or services;
loss of use, data, or profits; or business interruption) however caused
and on any theory of liability, whether in contract, strict liability,
or tort (including negligence or otherwise) arising in any way out of
the use of this software, even if advised of the possibility of such damage.
**************************** ****************************
openssl openssl
**************************** ****************************
...@@ -7479,6 +7438,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ...@@ -7479,6 +7438,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**************************** ****************************
zlib zlib
**************************** ****************************
...@@ -7535,409 +7495,3 @@ freely, subject to the following restrictions: ...@@ -7535,409 +7495,3 @@ freely, subject to the following restrictions:
2. Altered source versions must be plainly marked as such, and must not be 2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
****************************
googleurl
****************************
Copyright 2007, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
The file url_parse.cc is based on nsURLParsers.cc from Mozilla. This file is
licensed separately as follows:
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is
Netscape Communications Corporation.
Portions created by the Initial Developer are Copyright (C) 1998
the Initial Developer. All Rights Reserved.
Contributor(s):
Darin Fisher (original author)
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
-------------------------------------------------------------------------------
The file icu_utf.cc is from IBM. This file is licensed separately as follows:
ICU License - ICU 1.8.1 and later
COPYRIGHT AND PERMISSION NOTICE
Copyright (c) 1995-2009 International Business Machines Corporation and others
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, provided that the above
copyright notice(s) and this permission notice appear in all copies of
the Software and that both the above copyright notice(s) and this
permission notice appear in supporting documentation.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale, use
or other dealings in this Software without prior written authorization
of the copyright holder.
****************************
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
****************************
jsoncpp
****************************
The JsonCpp library's source code, including accompanying documentation,
tests and demonstration applications, are licensed under the following
conditions...
The author (Baptiste Lepilleur) explicitly disclaims copyright in all
jurisdictions which recognize such a disclaimer. In such jurisdictions,
this software is released into the Public Domain.
In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur, and is
released under the terms of the MIT License (see below).
In jurisdictions which recognize Public Domain property, the user of this
software may choose to accept it either as 1) Public Domain, 2) under the
conditions of the MIT License (see below), or 3) under the terms of dual
Public Domain/MIT License conditions described here, as they choose.
The MIT License is about as close to Public Domain as a license can get, and is
described in clear, concise terms at:
http://en.wikipedia.org/wiki/MIT_License
The full text of the MIT License follows:
========================================================================
Copyright (c) 2007-2010 Baptiste Lepilleur
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
========================================================================
(END LICENSE TEXT)
The MIT license is compatible with both the GPL and commercial
software, affording one all of the rights of Public Domain with the
minor nuisance of being required to keep the above copyright notice
and license text in the source code. Note also that by accepting the
Public Domain "license" you can re-license your copy using whatever
license you like.
****************************
libwebp
****************************
Copyright (c) 2010, Google Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of Google nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Name: Google VR SDK Name: Google VR SDK
Short Name: gvr Short Name: gvr
URL: https://github.com/googlevr/gvr-android-sdk URL: https://github.com/googlevr/gvr-android-sdk
Version: 1.0.0 Version: 0.9.0
Date: 23 Sep 2016 Date: 3 Aug 2016
Revision: 25e7e14413229d4644a66be77e8f8ddeb3f91fe7 Revision: cff15311c7c1abbe77b3c714135dccc2009ee473
License: Apache 2.0 License: Apache 2.0
License File: LICENSE License File: LICENSE
Security Critical: yes Security Critical: yes
......
# Proguard rules for commonly-shared libraries in gvr.
-keepattributes *Annotation*
# Keep natively accessed methods used by GVR.
-keep class com.google.vr.cardboard.UsedByNative
-keep @com.google.vr.cardboard.UsedByNative class *
-keepclassmembers class * {
@com.google.vr.cardboard.UsedByNative *;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment