| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ | 5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ |
| 6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ | 6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 return texture_id_; | 40 return texture_id_; |
| 41 } | 41 } |
| 42 | 42 |
| 43 const base::android::JavaRef<jobject>& j_surface_texture() const { | 43 const base::android::JavaRef<jobject>& j_surface_texture() const { |
| 44 return j_surface_texture_; | 44 return j_surface_texture_; |
| 45 } | 45 } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 const int texture_id_; | 48 const int texture_id_; |
| 49 | 49 |
| 50 // Java SurfaceTexture class and instance. | 50 // Java SurfaceTexture instance. |
| 51 base::android::ScopedJavaGlobalRef<jclass> j_class_; | |
| 52 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; | 51 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge); | 53 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace content | 56 } // namespace content |
| 58 | 57 |
| 59 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ | 58 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ |
| OLD | NEW |