Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java

Issue 2562733002: Implement our own GLThread for VR Shell. (Closed)
Patch Set: Address bshe's comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.ui.gl; 5 package org.chromium.ui.gl;
6 6
7 import android.graphics.SurfaceTexture; 7 import android.graphics.SurfaceTexture;
8 import android.util.Log; 8 import android.util.Log;
9 9
10 import org.chromium.base.annotations.CalledByNative; 10 import org.chromium.base.annotations.CalledByNative;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 @CalledByNative 59 @CalledByNative
60 private static void detachFromGLContext(SurfaceTexture surfaceTexture) { 60 private static void detachFromGLContext(SurfaceTexture surfaceTexture) {
61 surfaceTexture.detachFromGLContext(); 61 surfaceTexture.detachFromGLContext();
62 } 62 }
63 63
64 @CalledByNative 64 @CalledByNative
65 private static void release(SurfaceTexture surfaceTexture) { 65 private static void release(SurfaceTexture surfaceTexture) {
66 surfaceTexture.release(); 66 surfaceTexture.release();
67 } 67 }
68
69 @CalledByNative
70 private static void setDefaultBufferSize(SurfaceTexture surfaceTexture, int width, int height) {
71 surfaceTexture.setDefaultBufferSize(width, height);
72 }
68 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698