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 #pragma once | |
8 | 7 |
9 #include <jni.h> | 8 #include <jni.h> |
10 | 9 |
11 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
12 #include "base/callback.h" | 11 #include "base/callback.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // This class serves as a bridge for native code to call java functions inside | 15 // This class serves as a bridge for native code to call java functions inside |
17 // android SurfaceTexture class. | 16 // android SurfaceTexture class. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Java SurfaceTexture class and instance. | 50 // Java SurfaceTexture class and instance. |
52 base::android::ScopedJavaGlobalRef<jclass> j_class_; | 51 base::android::ScopedJavaGlobalRef<jclass> j_class_; |
53 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; | 52 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; |
54 | 53 |
55 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge); | 54 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge); |
56 }; | 55 }; |
57 | 56 |
58 } // namespace content | 57 } // namespace content |
59 | 58 |
60 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ | 59 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ |
OLD | NEW |