Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.chromoting; | |
| 6 | |
| 7 import android.content.Context; | |
| 8 | |
| 9 import com.google.vrtoolkit.cardboard.CardboardView; | |
| 10 import com.google.vrtoolkit.cardboard.Eye; | |
| 11 import com.google.vrtoolkit.cardboard.HeadTransform; | |
| 12 import com.google.vrtoolkit.cardboard.Viewport; | |
| 13 | |
| 14 import javax.microedition.khronos.egl.EGLConfig; | |
| 15 | |
| 16 /** | |
| 17 * Renderer for Cardboard view. | |
| 18 */ | |
| 19 public class VRDesktopRenderer implements CardboardView.StereoRenderer { | |
|
Sergey Ulanov
2015/07/13 19:26:19
CardboardDesktopRenderer?
shichengfeng
2015/07/13 19:51:13
Done.
| |
| 20 private final Context mActivityContext; | |
| 21 | |
| 22 public VRDesktopRenderer(Context context) { | |
| 23 mActivityContext = context; | |
| 24 } | |
| 25 | |
| 26 @Override | |
| 27 public void onSurfaceCreated(EGLConfig config) { | |
| 28 } | |
| 29 | |
| 30 @Override | |
| 31 public void onSurfaceChanged(int width, int height) { | |
| 32 } | |
| 33 | |
| 34 @Override | |
| 35 public void onNewFrame(HeadTransform headTransform) { | |
| 36 } | |
| 37 | |
| 38 @Override | |
| 39 public void onDrawEye(Eye eye) { | |
| 40 } | |
| 41 | |
| 42 @Override | |
| 43 public void onRendererShutdown() { | |
| 44 } | |
| 45 | |
| 46 @Override | |
| 47 public void onFinishFrame(Viewport viewport) { | |
| 48 } | |
| 49 } | |
| OLD | NEW |