| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |